diff options
author | James Le Cuirot <chewi@gentoo.org> | 2022-12-08 09:05:16 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2022-12-08 09:05:16 +0000 |
commit | a6e01265b33789f00a9a950b38b5293c44a6ff3b (patch) | |
tree | e61e900789fcf9790c550052094598332435d699 /www-client | |
parent | media-sound/rosegarden: bump to 22.12 (diff) | |
download | gentoo-a6e01265b33789f00a9a950b38b5293c44a6ff3b.tar.gz gentoo-a6e01265b33789f00a9a950b38b5293c44a6ff3b.tar.bz2 gentoo-a6e01265b33789f00a9a950b38b5293c44a6ff3b.zip |
www-client/vivaldi: Add version 5.6.2867.36
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'www-client')
-rw-r--r-- | www-client/vivaldi/Manifest | 3 | ||||
-rw-r--r-- | www-client/vivaldi/vivaldi-5.6.2867.36.ebuild | 207 |
2 files changed, 210 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest index d4e11dc22174..330735c7e4c2 100644 --- a/www-client/vivaldi/Manifest +++ b/www-client/vivaldi/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-stable_5.5.2805.48-1_armhf.deb 90299920 BLAKE2B c4153c4bf0be3d65b7a DIST vivaldi-stable_5.5.2805.50-1_amd64.deb 101024132 BLAKE2B f5369555468a97509c61f955106d9bd0ec996303f22e8e5d917718e8a7be4901ca1e3f9e1710c6480f0ff75d5e4a4e661d0a4c743c98bb30e3773000239f70c5 SHA512 0bface1a7279bc2d8d8fe1b756d9e10fc24747c53b180783a652eef15d5479bed981ad8d2aab90698d8cac560d5b0cd3d9ccf08e9c8838ed199b6cbdb9479c20 DIST vivaldi-stable_5.5.2805.50-1_arm64.deb 90957324 BLAKE2B b489409752c124cc4c61027165a40175b58a2343f63aebe5ac38a52e1df2cdda6b1c51c9454244cba89f19b9c8cab1db785fb2506497adf93f76aba775c983cb SHA512 ee06c2174ba79e5eeb89fab5bccd077b218190158f0d9f432101f11937af5e9a0e8247b98278090ebbfe364144f8235cc80187810558e14d76fe2a330d8f7899 DIST vivaldi-stable_5.5.2805.50-1_armhf.deb 90313028 BLAKE2B fc0052c9420876cfe98f8fa672f4be28cf3cdfa7781a41760625bbafb7c59bcf68383a7800b2e8a8e7d99d1a11a388b6802cb6cb2a3776622c24f6a9f4eb9c93 SHA512 436b28af483d399d385ead98c6d75b55a62e4b8ceeb110db2d5fcfea1b8e934789853870507757462e666f15703f463a401c3c4e757e30f577909d867c6bc47e +DIST vivaldi-stable_5.6.2867.36-1_amd64.deb 101345128 BLAKE2B 3564571be574a47468bbb9446509f1afef72acd7d0987700fcf696c9fc57e82d0f69dc5a35cb2a29736e0ef32a2aaf72034606416a519faaa4d807adaac3ac96 SHA512 15dc97d2f5281e392f947e44fd9ee818b05990304aaaf65cedc2d7fa56760b1eab31ec471626f0669d5c007fa20cab5afe9d8b495c3d58f343a613e7ef134145 +DIST vivaldi-stable_5.6.2867.36-1_arm64.deb 90951148 BLAKE2B 212ae2e91dac89ec15626d8138dfd808ba0a60f2bbf727fa36a692ed6305830e6c72a336a5f80638fed1a8837c49a8dfe17f0216b1a2893dafc211b14ba4a710 SHA512 e7414e7e9b9699c2fab1265108ba937d979bc75c0ad7926c0ceccc0e25a47879194e8013a388aebe800d769897975cad5ecfaaebdeee464193e47d7d665478a1 +DIST vivaldi-stable_5.6.2867.36-1_armhf.deb 91083060 BLAKE2B 0e55ec39a3f3147b75fbbd949439bcbc361b7ae303851ad2e4786a500fd9650ea2458d7ffaf32ce467ab233b9b434b2a9979d2dda8f2dd199a48d9cb240326a9 SHA512 f5de2f569bf6268957df4e4d77a95d550bd259211b1aaa7b2a302036fbe1d2e31f08c276f389c27a6ea756b9d658a6386853ca6168ec9fc63408bbc67682d273 diff --git a/www-client/vivaldi/vivaldi-5.6.2867.36.ebuild b/www-client/vivaldi/vivaldi-5.6.2867.36.ebuild new file mode 100644 index 000000000000..82e87d9746ea --- /dev/null +++ b/www-client/vivaldi/vivaldi-5.6.2867.36.ebuild @@ -0,0 +1,207 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CHROMIUM_VERSION="102" +CHROMIUM_LANGS=" + af + am + ar + az + be + bg + bn + ca + 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 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}_" + +RE="\bamd64\b"; [[ ${KEYWORDS} =~ ${RE} ]] && SRC_URI+=" amd64? ( ${VIVALDI_BASE_URI}amd64.deb )" +RE="\barm\b"; [[ ${KEYWORDS} =~ ${RE} ]] && SRC_URI+=" arm? ( ${VIVALDI_BASE_URI}armhf.deb )" +RE="\barm64\b"; [[ ${KEYWORDS} =~ ${RE} ]] && SRC_URI+=" arm64? ( ${VIVALDI_BASE_URI}arm64.deb )" +RE="\bx86\b"; [[ ${KEYWORDS} =~ ${RE} ]] && SRC_URI+=" x86? ( ${VIVALDI_BASE_URI}i386.deb )" + +LICENSE="Vivaldi" +SLOT="0" +IUSE="proprietary-codecs 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] + || ( gui-libs/gtk:4 x11-libs/gtk+:3 ) + proprietary-codecs? ( media-video/ffmpeg-chromium:${CHROMIUM_VERSION} ) + widevine? ( www-plugins/chrome-binary-plugins ) +" + +QA_PREBUILT="*" +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 + + 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 +} |