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 9B5BA158041 for ; Sun, 25 Feb 2024 23:14:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BEBD4E29C4; Sun, 25 Feb 2024 23:14:00 +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 9A4E4E29C4 for ; Sun, 25 Feb 2024 23:14:00 +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 929AB33BF60 for ; Sun, 25 Feb 2024 23:13:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F242314B1 for ; Sun, 25 Feb 2024 23:13:57 +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: <1708902723.0a929b1875a89d165db95073e50a007f9664f41c.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.6.3271.35.ebuild X-VCS-Directories: www-client/vivaldi-snapshot/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: 0a929b1875a89d165db95073e50a007f9664f41c X-VCS-Branch: master Date: Sun, 25 Feb 2024 23:13:57 +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: 74e0cf75-49ed-499c-b5d0-6654da315861 X-Archives-Hash: 959a68941e3cc97762afa9cf95834e8c commit: 0a929b1875a89d165db95073e50a007f9664f41c Author: James Le Cuirot gentoo org> AuthorDate: Sun Feb 25 23:12:03 2024 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Sun Feb 25 23:12:03 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a929b18 www-client/vivaldi-snapshot: Add version 6.6.3271.35 Signed-off-by: James Le Cuirot gentoo.org> www-client/vivaldi-snapshot/Manifest | 3 + .../vivaldi-snapshot-6.6.3271.35.ebuild | 224 +++++++++++++++++++++ 2 files changed, 227 insertions(+) diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index e21f66956a09..10a683092928 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -1,6 +1,9 @@ DIST vivaldi-snapshot_6.6.3265.3-1_amd64.deb 107965908 BLAKE2B e76ed486ba9a49df374aea50b097620ce5caf429ec96003ef113cdc5eb29112316a800530e796d5adcba52a70696a44c358d912f0168fb4734cb00b480e6ad50 SHA512 521b0f0a064fc2ab5fd6954b6a82ad9aeaae03b7cc64403851502a8260ea3419e26342db2539fce72c96a1bd61ae40c60a3dd577271fea559b1f652cb463fdf3 DIST vivaldi-snapshot_6.6.3265.3-1_arm64.deb 100839292 BLAKE2B 04e1da781fa2ab88cae3f1485119e54fedf67ca6ae0a648a9c561a7a8e2dc87b365c1a13ec91e2a245f9ae39b0bef0ae554eb795138e01a6f4e2e87b9bfd457e SHA512 513f13af66a0cc484d7fa50358d5f3a9133cf88d6dd8e56baffec856ef32a13acfbe9d40715c8e61d1a12f8b0bc044eb55fa2bceedc2ac9586d5994a7e2488f2 DIST vivaldi-snapshot_6.6.3265.3-1_armhf.deb 102208420 BLAKE2B 463dc3757205c99ca4ef7117406cfac87c52e79c0c8c095ecc85465c21454a3b0b2d7b0c47a7d436f72c96de664bb000c95d5f42f56df073397835babc2dba9d SHA512 1fa0b655504550cecec5ce7b6b5578d14ed1aa468e291d8d94af6d7cb980699aeaaa22e4747269d0343af1291051b10ab43c710904d27640890015c37ebb9bed +DIST vivaldi-snapshot_6.6.3271.35-1_amd64.deb 107729472 BLAKE2B 7841f307cfd0ec72eaf7c4b3273552177185899a166e53b9a0b44d8590142e8fbecf80a73d128debde6965c61c4ea45f24f834c92315047d3c953b8a441c6bc3 SHA512 4b1020d9c6b1376ff95993bdb4970f7593a5e20370ba66d7fee679b9600e2779c8c0bbce6d85d7ae5ff7209cf01ca8d0f88e9e89571791d72bca7e312e746ea6 +DIST vivaldi-snapshot_6.6.3271.35-1_arm64.deb 100842372 BLAKE2B 510d84d912376cba9bb5379957b2958cfbe488c8f06e6e0a8e551e10a445b75eb53c9ec0dc08f2907673d8c7824ca44303ee343e69118673983f29c32cffe50f SHA512 5b8b64e1931d7a694c06b38e547c8fedaf0cc0f13fa20123ee89f54cf51437edfc01e9bf5254104f92701fb3c5ba518f2cdb84548a3fdbaaa917a78480c698b0 +DIST vivaldi-snapshot_6.6.3271.35-1_armhf.deb 102218064 BLAKE2B c69fd1e87232c53115966c3ee4c595e54fbf615cba1a97fec5b26b3b5d97a1fe6cddee07f309ac2e41fba0931976b27b35f2bc43720da5cc95f3734a4d10fdf8 SHA512 6e8f870d44e2d3189c78b71ae2d1b8fa2ad0ee82cfc6155ac7b76453cddcc85b8ed936ed07a5e887f43661213448edfcca043a971b3086bbabd04e1b527f8824 DIST vivaldi-snapshot_6.6.3271.4-1_amd64.deb 107907712 BLAKE2B 23edb7c0df347c85e8c711b32a43e750b46af894a3dae9b585680b37bae220040c969645e5f4a4041ec2d0465d8491d9faf4bb25c30d58f59d949003daf8c02e SHA512 5d6cb836fb26df6baa7547b133795cb9f93b0a0adff39250295cb937da00c15a07e6068a654636de7db46ebdd0e6876522eed5eb98ea693e00289a013ca498bb DIST vivaldi-snapshot_6.6.3271.4-1_arm64.deb 100885568 BLAKE2B a78391a6157b26d133d7549f44cc325a2c7f906e882ba0a2fdbe277c398a56da9f90acac94502421ed2b2cde1867cf3da0eb80e79456c929c90f59a7c595c67b SHA512 6b41c1a16888c5089ef0eed852844015ec13705a353a0fbe88c22a3abf09928a976d9ed1cb8b801eb8de0d76e2f1f2ec9f3ab1400608588cb0510ad9c67d9fac DIST vivaldi-snapshot_6.6.3271.4-1_armhf.deb 102241252 BLAKE2B 1d4a866b9f2fd54b21026cfa26d1e5f741d59ddd435d3b4359266d7d6f5782b31e7213ed4c95ed6ef7c36083aee37d10174f6a37f81605e45dd150ffbd9e9894 SHA512 e1ec72e33df2093bb2fa71f7b0e59bca935261984b47938cb975083473697c4ecb3b0d90aa18881e103a659cc69469c7b2d70036b5cd45000ade1974517ab491 diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-6.6.3271.35.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.6.3271.35.ebuild new file mode 100644 index 000000000000..9304611c3c84 --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.6.3271.35.ebuild @@ -0,0 +1,224 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CHROMIUM_VERSION="121" +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="ffmpeg-chromium gtk proprietary-codecs qt5 widevine" +RESTRICT="bindist mirror" +REQUIRED_USE="ffmpeg-chromium? ( proprietary-codecs )" + +RDEPEND=" + >=app-accessibility/at-spi2-core-2.46.0:2 + 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? ( + !ffmpeg-chromium? ( >=media-video/ffmpeg-6.1-r1:0/58.60.60[chromium] ) + ffmpeg-chromium? ( 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$(usex ffmpeg-chromium .${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 +}