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 10F0315808B for ; Sat, 19 Feb 2022 09:40:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5B4FDE07D9; Sat, 19 Feb 2022 09:40:51 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 30A5BE07D9 for ; Sat, 19 Feb 2022 09:40:51 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 3421B343726 for ; Sat, 19 Feb 2022 09:40:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BD1002EB for ; Sat, 19 Feb 2022 09:40:48 +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: <1645263630.23b8c242abc2785244ab784eaa6cce434029f30e.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.2.2581.4.ebuild X-VCS-Directories: www-client/vivaldi-snapshot/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: 23b8c242abc2785244ab784eaa6cce434029f30e X-VCS-Branch: master Date: Sat, 19 Feb 2022 09:40:48 +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: 0bcc44b6-2cca-446b-a72c-6a85a779d484 X-Archives-Hash: 97729600b19f5dd7a7701cad9a5c465f commit: 23b8c242abc2785244ab784eaa6cce434029f30e Author: James Le Cuirot gentoo org> AuthorDate: Sat Feb 19 09:38:38 2022 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Sat Feb 19 09:40:30 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23b8c242 www-client/vivaldi-snapshot: Add version 5.2.2581.4 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: James Le Cuirot gentoo.org> www-client/vivaldi-snapshot/Manifest | 3 + .../vivaldi-snapshot-5.2.2581.4.ebuild | 204 +++++++++++++++++++++ 2 files changed, 207 insertions(+) diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index a25d6637dd25..921290ec5100 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_5.1.2567.31-1_armhf.deb 78109368 BLAKE2B f7fb36fe555acce04 DIST vivaldi-snapshot_5.1.2567.38-1_amd64.deb 87339208 BLAKE2B 1b0621fedbc9463891d4a91b5ade9067cae114b372e674e128d7e855ecc22c9cd8b65b8e6fe1f68b8e3575f923574f223e992e93a234ca38b08ddd975ddcbf5b SHA512 069c746fdab910ec86fcc056f51aa6fe88505217bb219815c8c229c6cd739875d965f9a91f2fc4b93dc7c167111561011aa668b8826b36e728a92eb0e80782c4 DIST vivaldi-snapshot_5.1.2567.38-1_arm64.deb 82241668 BLAKE2B b66e562a3db72ea2e03238f1353b5ab19566af496dac89a625c60e7325aff33693a715d4cf1ea83d86ad460425f3d967a4b849abd5cc2f05de0b209776513137 SHA512 d27bf50fd7ca682b728928666dd9d8cbc7ba7e328efa1fddf3ed0cd0c9895b0642bffb8a212c3a3766f2cadb37c944c541e35c8eb95cab6c9c6e376be3423ef5 DIST vivaldi-snapshot_5.1.2567.38-1_armhf.deb 78097860 BLAKE2B 108c462ade0ccce1bec84252c50bb972383e20818240ec4b5059766425536df6aab621ad8f30d591791e47f3a4e764cc03b7b826d643df42bb182e8d3f34f572 SHA512 92bddcb70ddb1831301c4765baa257869d2ba594d096c6470fda5d891102a2113fc470e1eeb3d8189a97aee566ca832d4ea7e47514b45ee8f2e3eb9a9caf7105 +DIST vivaldi-snapshot_5.2.2581.4-1_amd64.deb 87359688 BLAKE2B def2b93401849f4b3b65628ba1806424d440fa6d42b2366c4481931484ff62c333b530eccf4bdc6b2f20bdd70e763e3b859cdfb3c5172b08328ee46098b2b1c9 SHA512 0a9225950753e7e4ac32b004d96bb7b786e623d8fee4869db8c9302e285b7dba6ee8861f834851ddcfe4e9817a77fdff4a8e81fa6f694dbca1d65aa0e01346a5 +DIST vivaldi-snapshot_5.2.2581.4-1_arm64.deb 82265240 BLAKE2B 23466bf4425a104dfbe375b55ef0e5b601c5a7980199a082eb6f67692058520475ccf9e0e4efde2c8c30a1b62df7ca8bef467c1a7ec8a31687069ed674c0a918 SHA512 7660a284c93e6402959647b7aa80d6c08b84a677268320f07a1294cb791f29cbae6a69b90ef476a85e3ca4c1ca380c88f70907fa2f3bb94077b56b73e0cc3249 +DIST vivaldi-snapshot_5.2.2581.4-1_armhf.deb 78113780 BLAKE2B 1620921be32b07892dc0839fcbb26e11b1341ce65b82b01e5538538660cd8b3ba861a12c292547b6094877856f3e669eb5627f1d28eb1fc8366ff48984d09354 SHA512 4d1796ccde13b606311786fa04a496f30fb438d328c3db5099a8ec0364598fab59d37ebe5df4111109fff12c308d1cb43244b7699ebaea0278cf873b4ba70d8f diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-5.2.2581.4.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.2.2581.4.ebuild new file mode 100644 index 000000000000..a0fb3fa96f92 --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.2.2581.4.ebuild @@ -0,0 +1,204 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CHROMIUM_VERSION="96" +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 + 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-atk:2 + app-accessibility/at-spi2-core:2 + 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] + 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 +}