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 3DDA2158089 for ; Sat, 4 Nov 2023 22:08:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2D2752BC016; Sat, 4 Nov 2023 22:08:47 +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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 13C212BC016 for ; Sat, 4 Nov 2023 22:08:47 +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 30846335CCD for ; Sat, 4 Nov 2023 22:08:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 848181255 for ; Sat, 4 Nov 2023 22:08:44 +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: <1699135705.aee48ee59534c2552f916852f59c3dfddadaac78.chewi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/vivaldi/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-client/vivaldi/Manifest www-client/vivaldi/vivaldi-6.4.3160.41.ebuild X-VCS-Directories: www-client/vivaldi/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: aee48ee59534c2552f916852f59c3dfddadaac78 X-VCS-Branch: master Date: Sat, 4 Nov 2023 22:08:44 +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: c4bcd4db-859f-4703-a6f0-568577dea5fb X-Archives-Hash: bcb949b2daa2fe937d2410c215667163 commit: aee48ee59534c2552f916852f59c3dfddadaac78 Author: James Le Cuirot gentoo org> AuthorDate: Sat Nov 4 22:06:31 2023 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Sat Nov 4 22:08:25 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aee48ee5 www-client/vivaldi: Add version 6.4.3160.41 Signed-off-by: James Le Cuirot gentoo.org> www-client/vivaldi/Manifest | 3 + www-client/vivaldi/vivaldi-6.4.3160.41.ebuild | 223 ++++++++++++++++++++++++++ 2 files changed, 226 insertions(+) diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest index 70c2d5b71c52..3cf0b860a5a9 100644 --- a/www-client/vivaldi/Manifest +++ b/www-client/vivaldi/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-stable_6.2.3105.58-1_armhf.deb 95611036 BLAKE2B d2fdb40abec586f2a2d DIST vivaldi-stable_6.4.3160.34-1_amd64.deb 105391600 BLAKE2B 1aba3713c1ae01ae581f93ac61ab79d29f5e79f5eb6f3e74b25920e04afc43858f3d98e58159c0665d5b03df76fb42c3b2c1a0abb6a5ee901a1e15e9b01ae716 SHA512 cf0149fde9aba2fc72b8bdf3cb73bb69585f72e0679e4af3079fa6b64df30ca17ddfdf2040558c34f80c2bdfb8db2deae6a1083a0d5b11afedc89c191229518a DIST vivaldi-stable_6.4.3160.34-1_arm64.deb 100076788 BLAKE2B bbe976280c73440595f20d49807f19f0038ab9c46098c7fe4125dc058827dec7439fdb665a8871769a61d6955bff501713d34c426c57c06e0ee2a8468ffdf564 SHA512 a66472b4a6dabd5d9a9719043563fae8e797c9a9dacf9a2f3a205f1990e2e6a708329737bf4b0baa7ea4a05b55dc9f0ca5933845f2ba47a10d67f36f6b523da9 DIST vivaldi-stable_6.4.3160.34-1_armhf.deb 100708512 BLAKE2B c744c3a77c85ae588033cdae944bb0f8a561b0207705395f0c703a312a13ce37d3119853dc803be7cbeecd79d5145df92b35c49d26d82db5ae83054290d49bf7 SHA512 79934f968cd650549e79f10a6b224432dbb17dbca3c8048dfc55a91c35da7ca83facd0dc77fb8c178a8b375708e1c3875ee40e81f33a804fdbb105193a7a8614 +DIST vivaldi-stable_6.4.3160.41-1_amd64.deb 105682124 BLAKE2B ea4531595a8efa583099dd118500c4c9dbd115d1f4c156f344ad53ce085128b7a374682bd83b41e384fe74dc292f875b6c4426d9a66f30f41b446d3c97a3ead8 SHA512 f5a1d5aa27224ee7a8574aed184f3de5176fca67f43e6459e8941dbb3b977cda5ece2557a9bc2777e958434ed6d5928c55bbc6e8bc5c150e84b28fc0558994b2 +DIST vivaldi-stable_6.4.3160.41-1_arm64.deb 100297480 BLAKE2B 094173fda5a34456093cc834f1c9fa9eab0617c1f62351fbd518a4a30018c2999b54bf69e71a7d86c4eb7b16c74d3388644201d4258e8f6ea6c610d15f34f79d SHA512 88d10bc11e0ebac9ebfcce4dc1621d3eac9407b5dd4e5e5e87f5c158b6703bbb4871b53a0218c050a72aac15b46ad09f91c8c0ab2a5bbc4bc0e71eb04c6c65a2 +DIST vivaldi-stable_6.4.3160.41-1_armhf.deb 100947840 BLAKE2B bae54369ea71ba429ec6e1ccba130c703bb54ac26f60903911d0f4ac519a4dda943e84e16408256627d0aa3e56521e0199c66b7db3a97e464bb5e463a7ad8b83 SHA512 59f3f3efcfa2bc12a6f05e9955593541284d0cfed2e1adb090673efd3e04849f944539324da2565f855f0b7b9b1d397cae976b107628b0fc0a01296acc93680f diff --git a/www-client/vivaldi/vivaldi-6.4.3160.41.ebuild b/www-client/vivaldi/vivaldi-6.4.3160.41.ebuild new file mode 100644 index 000000000000..9d522c106aff --- /dev/null +++ b/www-client/vivaldi/vivaldi-6.4.3160.41.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 +}