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 8D5CB158013 for ; Fri, 15 Dec 2023 14:32:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D78992BC024; Fri, 15 Dec 2023 14:32:25 +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 BFCBE2BC024 for ; Fri, 15 Dec 2023 14:32:25 +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 02BB4335D76 for ; Fri, 15 Dec 2023 14:32:25 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 73115119 for ; Fri, 15 Dec 2023 14:32:23 +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: <1702650714.80285b931441d15ecc95dac783013fc3dbdfa4a1.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.5.3206.38.ebuild X-VCS-Directories: www-client/vivaldi-snapshot/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: 80285b931441d15ecc95dac783013fc3dbdfa4a1 X-VCS-Branch: master Date: Fri, 15 Dec 2023 14:32:23 +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: 95778a67-2ab5-4877-96e3-e8e5e157f39e X-Archives-Hash: 41fc4ac1239c97c00e20e11fe0b0ece9 commit: 80285b931441d15ecc95dac783013fc3dbdfa4a1 Author: James Le Cuirot gentoo org> AuthorDate: Fri Dec 15 14:20:19 2023 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Fri Dec 15 14:31:54 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80285b93 www-client/vivaldi-snapshot: Add version 6.5.3206.38 Signed-off-by: James Le Cuirot gentoo.org> www-client/vivaldi-snapshot/Manifest | 3 + .../vivaldi-snapshot-6.5.3206.38.ebuild | 224 +++++++++++++++++++++ 2 files changed, 227 insertions(+) diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index b13f750d5742..26982ee7a0ce 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_6.5.3206.29-1_armhf.deb 102259264 BLAKE2B 4b413ae0561c1855 DIST vivaldi-snapshot_6.5.3206.33-1_amd64.deb 106764976 BLAKE2B 6e729b11894a84f3c97e98a442bc34372c1ccf1e8a7fffa1b5e49ca274db7622fb89f3ff447a011a9ef2a8c2fb7eddc434acd083c1dead5420c685a57320f1ff SHA512 dd803247dc42c2fb3de96c4db09e40f5f7ac11a52b01c2daa151cdeb1d8aa6946f9990c6f2627777825147bdfc7ed563d51b62e54e413d17108210c80f090d9b DIST vivaldi-snapshot_6.5.3206.33-1_arm64.deb 100813748 BLAKE2B 7bbe0545412af9db0f9d0a675e58f93d440dfd916381c7a9fc33c4107ed1568c6d1de11fa030e01c5542626aa24077893e33f65e9fa5209dbd2da1f6cea2c7d5 SHA512 3f3bd53ac3dc32c0187fb757f3c6eee898d93195f18b044d182b74995d09dcd0fb36f75cd5d145c1ed80ad90ab7d115a5911ec17691e2ae98b23850528844b10 DIST vivaldi-snapshot_6.5.3206.33-1_armhf.deb 102263852 BLAKE2B c6aa16c576f058d14beb555ee877a7a36b4b184fe47e499a29202ad2f4d94aa7d717d03c25a56c7ef6c1b368cf728d1b2db1a4e66b4b8f4ecc02f670032e6eee SHA512 36933762994acd7ef3a898256e9a94ccd833cbb5012dc3b405199e3bb9511de8321a9bf3b1f8b6cf6493dd857dc5016628bf007df66ada3c1dc396ee68755116 +DIST vivaldi-snapshot_6.5.3206.38-1_amd64.deb 106955180 BLAKE2B 7d2e4a68e0f7228bdbc6ecf1991d979a47e497ef14b62aa63d70bc53d27f99c727e20f6d124ca6f690df0fe26497a5e2b0a92f551d2c5bc6e1711abddecbdf9f SHA512 5b378cc96f1b3cf481d94e6bc9f192a4244cbb6e99832f19bfc3f31f04fd4ba978fd35d62cf9737578e9947a2a823b0f16e960d3bd2be097b58c932b5c07db38 +DIST vivaldi-snapshot_6.5.3206.38-1_arm64.deb 100829516 BLAKE2B d3c2370cc3b3082e379615912f8752b429ef603608b9b959c41756acbbbd60efc1d60d4ae95a1b1ac20a1a90abf515538dd6606c14ddf93dc09807f6372b8c5f SHA512 ac301d5062b9896a100b45ad6c5f8a84ed34e6d56937141466014a26a905eea5ecae3c95adb92d7c195a4eb0e9b16e8f965825e07a4b23c59e687073b3beb126 +DIST vivaldi-snapshot_6.5.3206.38-1_armhf.deb 102255704 BLAKE2B c1c345dfa6310a44e6f43d38193ee4cca9ce81d1125acdabdc0f584f8adf47c682f3d6e5f980e380a5be4a3aed83ba3383e1587b083fc684d9259822b1ec20db SHA512 1dad43933e91148b0e81a28df8f3b8ec0377a7c1fffc5fab36de38a3bd446feb2189e9aaa53ff5da7c61b4cfec45336be3acdd2b760655e06adb52d487532bca diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-6.5.3206.38.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.5.3206.38.ebuild new file mode 100644 index 000000000000..1cb4e268a82f --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.5.3206.38.ebuild @@ -0,0 +1,224 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CHROMIUM_VERSION="120" +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 +}