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 (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 54D40158042 for ; Fri, 25 Oct 2024 20:55:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5BF43E091D; Fri, 25 Oct 2024 20:55:41 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 418A1E091D for ; Fri, 25 Oct 2024 20:55:41 +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 56A4434301F for ; Fri, 25 Oct 2024 20:55:40 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 93865AE7 for ; Fri, 25 Oct 2024 20:55:38 +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: <1729889386.0cdb3a53343dcb7b2182b58d2edc825386407155.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-7.0.3495.5.ebuild X-VCS-Directories: www-client/vivaldi-snapshot/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: 0cdb3a53343dcb7b2182b58d2edc825386407155 X-VCS-Branch: master Date: Fri, 25 Oct 2024 20:55:38 +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: b91ded84-273e-4e87-a121-a21fc96e5b24 X-Archives-Hash: f682216e0c7fb898ca64b66f58cfb4f5 commit: 0cdb3a53343dcb7b2182b58d2edc825386407155 Author: James Le Cuirot gentoo org> AuthorDate: Fri Oct 25 20:49:46 2024 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Fri Oct 25 20:49:46 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0cdb3a53 www-client/vivaldi-snapshot: Add version 7.0.3495.5 Signed-off-by: James Le Cuirot gentoo.org> www-client/vivaldi-snapshot/Manifest | 3 + .../vivaldi-snapshot-7.0.3495.5.ebuild | 226 +++++++++++++++++++++ 2 files changed, 229 insertions(+) diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index aa5920e55f58..76ce7b254498 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_6.10.3493.3-1_armhf.deb 113900100 BLAKE2B 9417f0b6d364ea83 DIST vivaldi-snapshot_6.10.3494.33-1_amd64.deb 120942632 BLAKE2B f205c0fc5a2fab04fcebea68e18af96c2a9dd702baee3a3374b45b66a9787ab36bb8caa42b506156c4c8383a6bcba5db55ff04647351b5bec21bb67061c08a37 SHA512 ffdd2566e9b8a0e658302c15d69d25d76e08fd4ad2fb97c4434ce36ead871cd3ff215c647dd3c09195282969dcee1a1a2279eabaeb6ace1a8727da1d32f3fff7 DIST vivaldi-snapshot_6.10.3494.33-1_arm64.deb 112781712 BLAKE2B f3135263433c6ed869c6775e95b7689adf57b5803ae09cf2a5a7bc6ba71fc4d8155e88d58f0ff5021752056fff7574f2f60eee89a8a7c9c4cff7bb12c2ffe5b3 SHA512 9433ec160f307316ce8af262da9804f556232219104a1be58316436b751c65831e72fb47a25d526795f8210af721cf1600fe90618ff3652ad88f7237b6ce5274 DIST vivaldi-snapshot_6.10.3494.33-1_armhf.deb 113949428 BLAKE2B b578eb59079c304f84f88371fdacda76b10be760e2bd191bc8a788c9115dcce162b91875f2324b0bf39e20ccb711133f1f55ba96c52220965e5dcecabf2056b5 SHA512 de6a858d6dfc50c8b03424a3d747139386f282753d683cf9b4afc9e8e1f9c32a6a6693833c4c72105b8a1074937f3ab54a98889542f2b962e1c16a7f468b4955 +DIST vivaldi-snapshot_7.0.3495.5-1_amd64.deb 120919076 BLAKE2B ad42218cba3fb02ce193eaa47d7950b2c50c2ee0d037348ed02b488e0d473dc6442977a971f7c80f8867fd0f8b89bf0a79b6287bce459242b2a9085262cfef9a SHA512 749dea3739d3ef268c601fef2625ac9b56af2db79c3fb831e3ddfe1fc8e61d96c0ede69d9bc5955d70b91f24b06bfab0c9eba2e1b5fe40b54b99f0b7962e778d +DIST vivaldi-snapshot_7.0.3495.5-1_arm64.deb 112790332 BLAKE2B 1b58180762c557df8c45fbc76ff79beb7e44bac224de12172642232d4e4d96642ce3624bbd6c9500e4a7dfa958acb689ddac4085fcaf89d3c198349d615e0e28 SHA512 f6967f25fdfe11be18c8ae12607b34c59938095f14a12cd6e40502cd02c48a8967e7bb78262870fe3c2b20b535caf12b4ec3a36d998b541dd76eb1033dc8eb32 +DIST vivaldi-snapshot_7.0.3495.5-1_armhf.deb 113955392 BLAKE2B 913b20cd3722aef8a2e8e77cc07b97637d0b440fb97c6ab2069e35559cf70e361a1997c88a56f12e926293d09d687f8c7ce78eb972cab3da14a165eae70651d4 SHA512 379414951a003f54334b9681c4cca08e98a2e56e204ddefcffa30110e2b7cbf21ca9fe43d851fe6f900d8b3891203e6dac8b676f31458cc850e75827ca00c090 diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-7.0.3495.5.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-7.0.3495.5.ebuild new file mode 100644 index 000000000000..78e223893de8 --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-7.0.3495.5.ebuild @@ -0,0 +1,226 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CHROMIUM_VERSION="128" +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 + 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 toolchain-funcs 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 + +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 ) +" + +S="${WORKDIR}" +LICENSE="Vivaldi" +SLOT="0" +KEYWORDS="-* ~amd64 ~arm ~arm64" +IUSE="ffmpeg-chromium gtk proprietary-codecs qt5 qt6 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 + ) + qt6? ( dev-qt/qtbase:6[gui,widgets] ) + widevine? ( www-plugins/chrome-binary-plugins ) +" + +QA_PREBUILT="*" +CONFIG_CHECK="~CPU_FREQ" + +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. + rm kmr.pak || die # No flag for Kurmanji. + chromium_remove_language_paks + popd > /dev/null || die + + if use proprietary-codecs; then + einfo Bundled $($(tc-getSTRINGS) ${VIVALDI_HOME}/lib/libffmpeg.so | grep -m1 "^FFmpeg version ") + 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 ! use qt6; then + 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 +}