From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1401175-garchives=archives.gentoo.org@lists.gentoo.org> 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 0DB18158091 for <garchives@archives.gentoo.org>; Thu, 26 May 2022 22:15:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BB631E0864; Thu, 26 May 2022 22:15:25 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A0AE2E0864 for <gentoo-commits@lists.gentoo.org>; Thu, 26 May 2022 22:15:25 +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 4B6963415C0 for <gentoo-commits@lists.gentoo.org>; Thu, 26 May 2022 22:15:24 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 83CC134E for <gentoo-commits@lists.gentoo.org>; Thu, 26 May 2022 22:15:22 +0000 (UTC) From: "James Le Cuirot" <chewi@gentoo.org> 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" <chewi@gentoo.org> Message-ID: <1653603196.17823fc9c27d2a39fe01dd037f8241825317f191.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.3.2679.16.ebuild X-VCS-Directories: www-client/vivaldi-snapshot/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: 17823fc9c27d2a39fe01dd037f8241825317f191 X-VCS-Branch: master Date: Thu, 26 May 2022 22:15:22 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 20ce2123-6f42-42d9-9bf1-e913731a9f28 X-Archives-Hash: 1421198571af138678e618abe9263af6 commit: 17823fc9c27d2a39fe01dd037f8241825317f191 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> AuthorDate: Thu May 26 22:13:16 2022 +0000 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> CommitDate: Thu May 26 22:13:16 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17823fc9 www-client/vivaldi-snapshot: Add version 5.3.2679.16 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> www-client/vivaldi-snapshot/Manifest | 3 + .../vivaldi-snapshot-5.3.2679.16.ebuild | 195 +++++++++++++++++++++ 2 files changed, 198 insertions(+) diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index 13ee296c37f0..457c1fa26ebd 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -1,6 +1,9 @@ DIST vivaldi-snapshot_5.3.2669.3-1_amd64.deb 87863044 BLAKE2B 03d6cb87bc98b99e3eb1fe8c7c22f96c8b21eba9b7866ea5f26103b16151ed219ff44a3612f24939208f0030e20667c44e4d7a935b7282269a85eeb3ef618a3c SHA512 3be4fa4ef3420bf65aec57d2491465205832312680227c13721af198c087a413342dbed0c2a3e24aa58fb500e90a8df998160b41be566385a4f7450a8aeec253 DIST vivaldi-snapshot_5.3.2669.3-1_arm64.deb 83143148 BLAKE2B a969d05577499a9cda3832166b26edd471641108fa145d6979e825dccd4910801ba562c0a64fd3f7603e4d6cba47b7b3df176d31396b718707b8df4bc7fbb5dc SHA512 34d32a5baf8cd067ba49d4271af158b4516831b4b1748b42af9a9f0509ed3caad782fe20ee6378f2617349b49a829492bc00b497a19e1ff1074e7520e2aeb51d DIST vivaldi-snapshot_5.3.2669.3-1_armhf.deb 78989456 BLAKE2B fc9ea373d8f340a83ae7ae8d85a4190e1789c1706b15557f3d56d5321f633fd63377861e5f1ea1674f70f14e368c77df5a54da960c74179077c25042a998ea7f SHA512 1a2ceeebed215617ee9234ad320a41d291cf017554420eeaabde780f662536af620770a7b7e32948af927da1448e90e0ce42ee427c0bc0d66699d23a5fdd44ca +DIST vivaldi-snapshot_5.3.2679.16-1_amd64.deb 88876716 BLAKE2B 77c7eb4a93c96f8a094a83a897c69bc3d05b87cb2c8d3e0e1c68d3961d0a7ded168d48a00786ad10dc4aa8912ea487648182721a9bf5573416c434286384713b SHA512 ba27299cf1bcd244ae7d7293556831f2e60d6d473fe842eaf2bde5645398e6ab4e8d1ec570292e35cfb896128c8614fe9d0e084d46ea060e9e7c168a9cb3ab55 +DIST vivaldi-snapshot_5.3.2679.16-1_arm64.deb 80648248 BLAKE2B 2f8b32c501acde38c7f726fc5842a509eaa8fe0e524a668cc37eca162043f177b7b8fdd7cd70760735bf7de579a63269271d101f3cff63e8d4c4adb7f17f3caa SHA512 c2df28cc3c08084917746db207323d3929edcb7045ce09daba6efbfbb5d9c193ef30ef9b050945fccab417f574f56f108962a730d1e20b2511be907d9e099865 +DIST vivaldi-snapshot_5.3.2679.16-1_armhf.deb 80307212 BLAKE2B 8572a1c4bb3111cbf67ed27d52d35e8f6f2ec335a568d5fa476dc70a44514fa50cfc9d413041547b921a91f9f1f99d19d33a209909cb144090a55c083d5bdf1a SHA512 4f10a0148699b8fea1780a53899b5efd5e20ac11584b3e61dfe6374f468482a8c9067c5a972bb2ad63a06aaac8387bf55bb63941577a4f077bee832df467684b DIST vivaldi-snapshot_5.3.2679.3-1_amd64.deb 88855108 BLAKE2B 8054051c32fd07e4ee160170a6761c3fb26efcd4a851ab21fdb4d7fc59c6b8284a8e8ea74cf4c98fac77b98162ae3f5b10a2311b85c3ca54a23a9f5472732d83 SHA512 c069192d254dee0a181d123bd0ddd976bebe78e7ce4d70e9525308477ea9d8300b84de98545ab847160f680c730ba257cab4681e990a4ca2b7dc5564b6f30cda DIST vivaldi-snapshot_5.3.2679.3-1_arm64.deb 80641012 BLAKE2B 8319e885e453a5cb25ef809e55536f032ee1e5af9d0d7b699e33b3579767264e2754059a3ead6b3fad651c19c541c8f0f2361358dbdcffc3067c5b1bd8bcd499 SHA512 70c17bedd257eb0c39116e9e9d3951c2585afb482d82a163ce1c16d96985576cc1489ce87ffa6fbade74889ad33d7cfa1e0c8921f0c2819923c99de7a9210889 DIST vivaldi-snapshot_5.3.2679.3-1_armhf.deb 80299864 BLAKE2B 31282b15c203d86369ad806459f4f6d02dd546a63d0ee6957b946b62f896175467d08b8e599a9c95b18dc61b329af70efe0c9bb7c73f0b6c71fde7680151a8ac SHA512 54bb10cd4477f97cca4058e49b187fba2d47f8fd83bfc1bdd7527afe78d2e3664a9536c291c479874b284fe2128d5f18006efe878593f6c9111a14f8162fb773 diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-5.3.2679.16.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.3.2679.16.ebuild new file mode 100644 index 000000000000..b696aa81a090 --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.3.2679.16.ebuild @@ -0,0 +1,195 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CHROMIUM_VERSION="100" +CHROMIUM_LANGS=" + af + am + ar + bg + bn + ca + cs + da + de + de-CH + el + en-GB + en-US + eo + es + es-419 + es-PE + et + fa + fi + fil + fr + fy + gd + gu + he + hi + hr + hu + id + io + it + ja + jbo + kab + kn + ko + ku + lt + lv + ml + mr + ms + nb + nl + nn + pl + pt-BR + pt-PT + ro + ru + sc + sk + sl + sr + 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-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] + || ( 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 +}