diff options
author | James Le Cuirot <chewi@gentoo.org> | 2024-02-10 09:58:22 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2024-02-10 17:53:28 +0000 |
commit | fc02c8008b9f5130748a140a834fd56dd8f3a363 (patch) | |
tree | d1af3cf20e849ccd9bdba91a9c2be6e4acc25a1e /www-client | |
parent | media-video/ffmpeg-chromium: Version bump to 121 (diff) | |
download | gentoo-fc02c8008b9f5130748a140a834fd56dd8f3a363.tar.gz gentoo-fc02c8008b9f5130748a140a834fd56dd8f3a363.tar.bz2 gentoo-fc02c8008b9f5130748a140a834fd56dd8f3a363.zip |
www-client/vivaldi-snapshot: Add version 6.6.3265.3
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'www-client')
-rw-r--r-- | www-client/vivaldi-snapshot/Manifest | 3 | ||||
-rw-r--r-- | www-client/vivaldi-snapshot/vivaldi-snapshot-6.6.3265.3.ebuild | 224 |
2 files changed, 227 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index 174d072cec16..141f07881a95 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_6.6.3249.4-1_armhf.deb 101822500 BLAKE2B 07881a9b7a9cae695 DIST vivaldi-snapshot_6.6.3256.4-1_amd64.deb 106506304 BLAKE2B 3f44382fcc0cc76259d5fc0483be3819251610c1af8d6999aead7a7b3848e0df9d8e0950502fb3c207c344332a2f8b73246876065543b82db1057bb946841a46 SHA512 2f32397decbda9941fb9e3100161e204cf1e265498bfa6246809ab1da7e7a6b76c1be068cd45ac5803ffbe67e8060629411fe30c37465fc66754c80909961be3 DIST vivaldi-snapshot_6.6.3256.4-1_arm64.deb 100409820 BLAKE2B 4e7d7dbcadce0a6774c126cee16a4d81cf19835f45ca6cd26377f4153d6720093a95a3b7540491b13bfc606e9bd60e64975551bfbedea08774cd2959f45cc513 SHA512 7645772e7e07f9e48f1edb7b966fbe06cfcec5f5732ede97796dacc4179dc71e23bb4b33eb174ea855c98be78e47f7f8a6bd6546cf2b8e9d1b0aa3b5094c296f DIST vivaldi-snapshot_6.6.3256.4-1_armhf.deb 101815360 BLAKE2B 632bd2f7466ee73023f13f9cecc3393e0c2b49e34d990d70a5cd9094f10f1f14a41459d61f64ae8848030b0f3c3a573384f3521ea37f4883f68a592207578937 SHA512 581d2c32f0894b38a3411363876d160f97dc98f53b431d3b1f7579f9df08380613eebbb40bf696a8bac3a50bc4d92de8312d89ea875acdf5fd06b5f18a5f385b +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 diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-6.6.3265.3.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.6.3265.3.ebuild new file mode 100644 index 000000000000..9304611c3c84 --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.6.3265.3.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 +} |