From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 71576158021 for ; Thu, 15 Dec 2022 14:24:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6156AE07A5; Thu, 15 Dec 2022 14:24:33 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 438F6E07A5 for ; Thu, 15 Dec 2022 14:24:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 21617340EA9 for ; Thu, 15 Dec 2022 14:24:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4DD2254C for ; Thu, 15 Dec 2022 14:24:30 +0000 (UTC) From: "James Le Cuirot" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "James Le Cuirot" Message-ID: <1671114166.d40044b4ef73eee5bc6ecd8b862e06c4521c4e49.chewi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/vivaldi-snapshot/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-client/vivaldi-snapshot/Manifest www-client/vivaldi-snapshot/vivaldi-snapshot-5.7.2881.6.ebuild X-VCS-Directories: www-client/vivaldi-snapshot/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: d40044b4ef73eee5bc6ecd8b862e06c4521c4e49 X-VCS-Branch: master Date: Thu, 15 Dec 2022 14:24:30 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 9a8d5799-ca85-4c00-95d8-5c29f1461cf7 X-Archives-Hash: c47776bd3b19e710531328c77e84000f commit: d40044b4ef73eee5bc6ecd8b862e06c4521c4e49 Author: James Le Cuirot gentoo org> AuthorDate: Thu Dec 15 14:22:46 2022 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Thu Dec 15 14:22:46 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d40044b4 www-client/vivaldi-snapshot: Add version 5.7.2881.6 Signed-off-by: James Le Cuirot gentoo.org> www-client/vivaldi-snapshot/Manifest | 3 + .../vivaldi-snapshot-5.7.2881.6.ebuild | 207 +++++++++++++++++++++ 2 files changed, 210 insertions(+) diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index 8b5c97d9e4c3..6515631ed205 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_5.6.2867.32-1_armhf.deb 91077136 BLAKE2B 7cc546a408a1d6bc3 DIST vivaldi-snapshot_5.7.2876.11-1_amd64.deb 101306092 BLAKE2B 02bebfdd23e3ff8c658d5d760911b30e4228e4a4ff744a5ea126c8523300f6313192e207bfabc14e0e8673f21fe104b059cfa9acf65e605027323540a6703595 SHA512 7e3b91318681a478f260c5df6f2cf9fe0454b29abcde5a7fb8758e75f979ac77e05edfd6fe79adf4c28d999abfaee59a76a82fb0de75f08ec67824ff99c747f7 DIST vivaldi-snapshot_5.7.2876.11-1_arm64.deb 90955988 BLAKE2B 36f23f66a51c8de9c3243eeeab59cd9ebd2f9aa9cf15f68a6018ab770558c79d776ae72c95f89ebd2b8005bfc28ccb610ce725e100295b00cd8b07104d711047 SHA512 98aed92600e5d288cfc62cd4c88fba0f7a1035183f44fd725a0f2e388c0e283b9a13957a6bb7ec46599b15bc596541704bfa309f124d049ada5c681adc6cacec DIST vivaldi-snapshot_5.7.2876.11-1_armhf.deb 91095176 BLAKE2B 7322e5d5e17665b4a36b7f26fc8e02b658174fea156258055dcfee8ec3d4b48199d337fb25e8ec46a70de51e4c73e22ec9e909d1f6feb4c679691b49a288119a SHA512 1f6acff34c974964a20f88bb3c8832b2a49ea4ac6ad7fbaf361292185f3eb9521d67a3c049a537fc46284522086a7b52e1f81a50ea29569d98da76a1eca92182 +DIST vivaldi-snapshot_5.7.2881.6-1_amd64.deb 101314176 BLAKE2B 65fdd3db27d2ed50023246f0bf3fa38c202941be8fc5f3eb5adaf364b056aaaa8220a344430276d46c1edb02e4e7178230637f8ea62e3a70c5f5bbacddbcd750 SHA512 ec083d7070a2582a5c5018e9559cdf89d81e782f154cefd7d006c5e6a20addb7500b58113411ee214b0f4fee699f7c294eb10be8bbb5632f870d2defc8ae109a +DIST vivaldi-snapshot_5.7.2881.6-1_arm64.deb 90962952 BLAKE2B 7eba4105e1ebf600a5edc7cb1ff78e9881255696b5cb90a03f2c8b457d2d8f09315de910035a5b112ca38409a0a77a8fefc958dd917303e8c42869d1590a5d7c SHA512 22aa78d2bd1501191eaddb9b5cc320397721609820db01834aefaa58f64c56d098f9e96e7a1b74c575d70c16ee5b993889eb6b58cee6af025c930a3b2d7ace42 +DIST vivaldi-snapshot_5.7.2881.6-1_armhf.deb 91093100 BLAKE2B aafaf5539771af3f8239f8d3c3e713022bc7a8e0600b9cb344026f267159e9b9abc58a44329c08e970636395937e2c7aa250c0489244146ad5a3283fc9527580 SHA512 4102d84b835c537382c9dc199c72ffd77f16813498ffb3f3995e0cadfc21fb793e2d3873b61e12d0a3852433963fd979333bfaf1b1bd60bb4a26ccdc170be506 diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-5.7.2881.6.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.7.2881.6.ebuild new file mode 100644 index 000000000000..82e87d9746ea --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.7.2881.6.ebuild @@ -0,0 +1,207 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CHROMIUM_VERSION="102" +CHROMIUM_LANGS=" + af + am + ar + az + be + bg + bn + ca + cs + da + de + de-CH + el + en-GB + en-US + eo + es + es-419 + es-PE + et + eu + fa + fi + fil + fr + fy + gd + gl + gu + he + hi + hr + hu + hy + id + io + is + it + ja + jbo + ka + kab + kn + ko + ku + lt + lv + mk + ml + mr + ms + nb + nl + nn + pa + pl + pt-BR + pt-PT + ro + ru + sc + sk + sl + sq + sr + sr-Latn + sv + sw + ta + te + th + tr + uk + ur + vi + zh-CN + zh-TW +" + +inherit chromium-2 desktop unpacker xdg + +VIVALDI_PN="${PN/%vivaldi/vivaldi-stable}" +VIVALDI_HOME="opt/${PN}" +DESCRIPTION="A browser for our friends" +HOMEPAGE="https://vivaldi.com/" + +if [[ ${PV} = *_p* ]]; then + DEB_REV="${PV#*_p}" +else + DEB_REV=1 +fi + +KEYWORDS="-* ~amd64 ~arm ~arm64" +VIVALDI_BASE_URI="https://downloads.vivaldi.com/${VIVALDI_PN#vivaldi-}/${VIVALDI_PN}_${PV%_p*}-${DEB_REV}_" + +RE="\bamd64\b"; [[ ${KEYWORDS} =~ ${RE} ]] && SRC_URI+=" amd64? ( ${VIVALDI_BASE_URI}amd64.deb )" +RE="\barm\b"; [[ ${KEYWORDS} =~ ${RE} ]] && SRC_URI+=" arm? ( ${VIVALDI_BASE_URI}armhf.deb )" +RE="\barm64\b"; [[ ${KEYWORDS} =~ ${RE} ]] && SRC_URI+=" arm64? ( ${VIVALDI_BASE_URI}arm64.deb )" +RE="\bx86\b"; [[ ${KEYWORDS} =~ ${RE} ]] && SRC_URI+=" x86? ( ${VIVALDI_BASE_URI}i386.deb )" + +LICENSE="Vivaldi" +SLOT="0" +IUSE="proprietary-codecs widevine" +RESTRICT="bindist mirror" + +RDEPEND=" + || ( + >=app-accessibility/at-spi2-core-2.46.0:2 + ( app-accessibility/at-spi2-atk dev-libs/atk ) + ) + dev-libs/expat + dev-libs/glib:2 + dev-libs/nspr + dev-libs/nss + media-libs/alsa-lib + media-libs/mesa[gbm(+)] + net-print/cups + sys-apps/dbus + x11-libs/cairo + x11-libs/libdrm + x11-libs/libX11 + x11-libs/libxcb + x11-libs/libXcomposite + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libxkbcommon + x11-libs/libXrandr + x11-libs/pango[X] + || ( gui-libs/gtk:4 x11-libs/gtk+:3 ) + proprietary-codecs? ( media-video/ffmpeg-chromium:${CHROMIUM_VERSION} ) + widevine? ( www-plugins/chrome-binary-plugins ) +" + +QA_PREBUILT="*" +S="${WORKDIR}" + +src_unpack() { + unpack_deb ${A} +} + +src_prepare() { + # Rename docs directory to our needs. + mv usr/share/doc/{${VIVALDI_PN},${PF}}/ || die + + # Decompress the docs. + gunzip usr/share/doc/${PF}/changelog.gz || die + + # The appdata directory is deprecated. + mv usr/share/{appdata,metainfo}/ || die + + # Remove cron job for updating from Debian repos. + rm etc/cron.daily/${PN} ${VIVALDI_HOME}/cron/${PN} || die + rmdir etc/{cron.daily/,} ${VIVALDI_HOME}/cron/ || die + + # Remove scripts that will most likely break things. + rm -vf ${VIVALDI_HOME}/update-{ffmpeg,widevine} || die + + pushd ${VIVALDI_HOME}/locales > /dev/null || die + rm ja-KS.pak || die # No flag for Kansai as not in IETF list. + chromium_remove_language_paks + popd > /dev/null || die + + if use proprietary-codecs; then + rm ${VIVALDI_HOME}/lib/libffmpeg.so || die + rmdir ${VIVALDI_HOME}/lib || die + fi + + eapply_user +} + +src_install() { + mv */ "${D}" || die + dosym ../../${VIVALDI_HOME}/${PN} /usr/bin/${VIVALDI_PN} + fperms 4711 /${VIVALDI_HOME}/vivaldi-sandbox + + local logo size + for logo in "${ED}"/${VIVALDI_HOME}/product_logo_*.png; do + size=${logo##*_} + size=${size%.*} + newicon -s "${size}" "${logo}" ${PN}.png + done + + if use proprietary-codecs; then + dosym ../../usr/$(get_libdir)/chromium/libffmpeg.so.${CHROMIUM_VERSION} \ + /${VIVALDI_HOME}/libffmpeg.so.$(ver_cut 1-2) + fi + + if use widevine; then + dosym ../../usr/$(get_libdir)/chromium-browser/WidevineCdm \ + /${VIVALDI_HOME}/WidevineCdm + else + rm "${ED}"/${VIVALDI_HOME}/WidevineCdm || die + fi + + case ${PN} in + vivaldi) dosym ${VIVALDI_PN} /usr/bin/${PN} ;; + vivaldi-snapshot) dosym ${PN} /${VIVALDI_HOME}/vivaldi ;; + esac +}