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) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A642F158089 for ; Thu, 26 Oct 2023 20:32:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EA6CB2BC090; Thu, 26 Oct 2023 20:32:58 +0000 (UTC) Received: from smtp.gentoo.org (dev.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 D46142BC090 for ; Thu, 26 Oct 2023 20:32:58 +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 F37BD335C20 for ; Thu, 26 Oct 2023 20:32:57 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3D3DA1180 for ; Thu, 26 Oct 2023 20:32:56 +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: <1698352247.e4b622426f136d374bfc180c1643829d033f6612.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-6.4.3160.33.ebuild X-VCS-Directories: www-client/vivaldi-snapshot/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: e4b622426f136d374bfc180c1643829d033f6612 X-VCS-Branch: master Date: Thu, 26 Oct 2023 20:32:56 +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: 69bb212e-7b11-43a1-8fc4-616cacb6ca0a X-Archives-Hash: eaaa4041e6612b9bb2d3f47acb42b15f commit: e4b622426f136d374bfc180c1643829d033f6612 Author: James Le Cuirot gentoo org> AuthorDate: Thu Oct 26 20:30:21 2023 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Thu Oct 26 20:30:47 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4b62242 www-client/vivaldi-snapshot: Add version 6.4.3160.33 Signed-off-by: James Le Cuirot gentoo.org> www-client/vivaldi-snapshot/Manifest | 3 + .../vivaldi-snapshot-6.4.3160.33.ebuild | 223 +++++++++++++++++++++ 2 files changed, 226 insertions(+) diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index 40aed3e68219..b53c1a37ba75 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_6.4.3160.27-1_armhf.deb 100692040 BLAKE2B 37104305d3bd6ec2 DIST vivaldi-snapshot_6.4.3160.29-1_amd64.deb 105397452 BLAKE2B 85dca6a5e4ae8601c8b5e30808c5ec8cd08a4222518112961c2f1a18e4c06b8e52b1f3729f8a7c54661352b43dc2f8c218c64175408ac442b0a1433be2614d14 SHA512 7bf386dbbff574a02581da178ad53611b022f70be2d1adb0168da586d3700af812a459403dfcd71f9e75ed344e88b8c984e1813ad45e4c309470f67e45e3b7b4 DIST vivaldi-snapshot_6.4.3160.29-1_arm64.deb 100050036 BLAKE2B cf0c061c85ced1aa5fffc9fed3f1ccaff12682727e46d5f61cb6ac91c8dd0ab5c2ee961fbd903cb1014b809e1fd726b383e4008056519a64c8885bb9b8ce8b5a SHA512 b536056b0740bff1c8eb504ea2f6a9c8a50e250bed1a2c21f5983537f312c3412e874092dcbf8d879f693a67fd84e0b51a2b8b6074ac6b66d57f5d5d36017df3 DIST vivaldi-snapshot_6.4.3160.29-1_armhf.deb 100673320 BLAKE2B bda01a3c03bf162ca0e3944e251efafcb9a2f27f20c82f8fcab237b16215053caa31fa4e3eb3ae94dabdfedb1cafabbec5c6da65456397f04cccc254246847e0 SHA512 5479a7afeac7c60eb059ec6e5199ed1daa4f5464e65460e7e58ddf89d39c5bf231a8f8c8d94c6c93bc4bb5c626afb876d32de69e77233b453180ec1a91b85bc9 +DIST vivaldi-snapshot_6.4.3160.33-1_amd64.deb 105419060 BLAKE2B 2c3b55f590fcc6540efdcaf3fdcfbeaaede17b9a0288e5efd46f8e6124a9b0014c57e919eed30bb9a1b734194b41cfd0467ca7dd68108dce72e12af5452fda7d SHA512 48ba52e690378153b361e1c2a8d078fc5b3d9c053ea4bb8160ad8da71067788aaa47458a6b4c8728c11610d6c4e055569a56b1ea099e55d52745208c7761e0a3 +DIST vivaldi-snapshot_6.4.3160.33-1_arm64.deb 100041416 BLAKE2B d42409612de8a4507bbafccf5bf6a23fdc88462e74c50321d10aefed523db50d904c5c4cdc2336ba8385332813b4e1058ad9935c75f709c22bc66ff70cc8da7b SHA512 1bda927fcd6a13695540f45874842448be8a56a4aed731b940e11d9b40bf3113ae3564b1411966b17ce1b3ce9ac98a41cb1d52bfed08283d2bf02ff9eab4cf43 +DIST vivaldi-snapshot_6.4.3160.33-1_armhf.deb 100674444 BLAKE2B 01132c32981809bde5fb43da2286d92d6ba6fb484cfe9bf5399ee2077e826a99c27868f9fec9e1af67d1095def117af8feeb07e6905631bbe6f4fa73bc81f416 SHA512 046abeb0f300ad369f85c1d5137420bdc662d5e58d1b210a65273593ec51cf05d6b65f11b4073382d962142339307ff237b39179f6aa89b6a74b64fab6bcdd94 diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-6.4.3160.33.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.4.3160.33.ebuild new file mode 100644 index 000000000000..9d522c106aff --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.4.3160.33.ebuild @@ -0,0 +1,223 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CHROMIUM_VERSION="114" +CHROMIUM_LANGS=" + af + am + ar + az + be + bg + bn + ca + ca-valencia + 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 linux-info 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}_" + +SRC_URI=" + amd64? ( ${VIVALDI_BASE_URI}amd64.deb ) + arm? ( ${VIVALDI_BASE_URI}armhf.deb ) + arm64? ( ${VIVALDI_BASE_URI}arm64.deb ) +" + +LICENSE="Vivaldi" +SLOT="0" +IUSE="gtk proprietary-codecs qt5 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] + gtk? ( gui-libs/gtk:4 x11-libs/gtk+:3 ) + proprietary-codecs? ( media-video/ffmpeg-chromium:${CHROMIUM_VERSION} ) + qt5? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + ) + widevine? ( www-plugins/chrome-binary-plugins ) +" + +QA_PREBUILT="*" +CONFIG_CHECK="~CPU_FREQ" +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 + + if ! use qt5; then + rm ${VIVALDI_HOME}/libqt5_shim.so || die + fi + + if ! false; then # use qt6; then (TODO) + rm ${VIVALDI_HOME}/libqt6_shim.so || 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 +}