diff options
author | James Le Cuirot <chewi@gentoo.org> | 2022-12-18 13:39:10 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2022-12-18 13:39:10 +0000 |
commit | 8011aaee65e366bb761082c9d20e9ccc66c17f6e (patch) | |
tree | bf6c71015cff3ad3583a8f16f45da5aa1319d937 /www-client/vivaldi | |
parent | www-client/vivaldi-snapshot: Drop old 5.7.2876.11 (diff) | |
download | gentoo-8011aaee65e366bb761082c9d20e9ccc66c17f6e.tar.gz gentoo-8011aaee65e366bb761082c9d20e9ccc66c17f6e.tar.bz2 gentoo-8011aaee65e366bb761082c9d20e9ccc66c17f6e.zip |
www-client/vivaldi: Add version 5.6.2867.46
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'www-client/vivaldi')
-rw-r--r-- | www-client/vivaldi/Manifest | 3 | ||||
-rw-r--r-- | www-client/vivaldi/vivaldi-5.6.2867.46.ebuild | 207 |
2 files changed, 210 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest index 247988802860..ad23be5eb78b 100644 --- a/www-client/vivaldi/Manifest +++ b/www-client/vivaldi/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-stable_5.6.2867.36-1_armhf.deb 91083060 BLAKE2B 0e55ec39a3f3147b75f DIST vivaldi-stable_5.6.2867.40-1_amd64.deb 101295360 BLAKE2B bb56a5e91a8ca795740bf418d2e1051dc1536d965ad813ee0f01a992bcbe5bdaf454d4993e5ad6cdca2113d4055b7ae3a3952f966e7f61007dbb1f191374f5c7 SHA512 bf7e0b72abebc6cdc289275ebdb7a9f89cccc9cf85aea69222b39882cce0753f2a112652c81e0af411210c94d029d5e324cf59af72bcd513520c4fc85d7f5cca DIST vivaldi-stable_5.6.2867.40-1_arm64.deb 90966804 BLAKE2B f373b496df16f6dbb04b66d4582ca45d275ddae05866c5d4433ab29e93cc717025f5d193ac652d3f2fc84154247935c7e14db1c0859fa49217464c4793694b46 SHA512 8b503a39df2ed2ade3925da7a3dac020ef452b7915161f503a0303247f5c9d9a10a3ca91e4e9bd3395bad60ebe68a1f68daf72b530eaf5bed2ced60cda0bbb33 DIST vivaldi-stable_5.6.2867.40-1_armhf.deb 91092176 BLAKE2B 6ef918a818b757a1e9cc7f4f41949b9508b029474b481e883fb9304f9be9fb6face8c877aabfb7b514f58a3b10e459e7641e24eaa0ae5758586267783b4f1f6d SHA512 b9597bfbdde7a5eedbc95f4e70b9a5b664fad2d5f148ddfb9fbc5a06536dc59d3e0aa4fbf659b1db8d2dc8928d101440205b758c048b21ac83b5b76a274079e3 +DIST vivaldi-stable_5.6.2867.46-1_amd64.deb 101317084 BLAKE2B 5acc513d386f921336a2cf77b7cbd6494c0dddf1f7b7ce716af60b7a3ebfea2bfdc2912c995620e785646159f10a2de0f992f01ea7f3c0c1dad4023affe4659a SHA512 6aa8e115c3da09a250ed09a7543b37f43cfa40fadaa360fa0ecb90e896b358de56e8e94fa25c457d8b10e078a230323a35b13558ac47f259564bec97c26b3c05 +DIST vivaldi-stable_5.6.2867.46-1_arm64.deb 90960060 BLAKE2B 3e4773b47f6b3f4735388f3b4df3b387998cb6e47363bdd692a337deff8862dd4ed8572171df0b1003e45c3cd4b8f5a668f9616bf650bf058fd277cd3add3637 SHA512 9259849be4c103bfe2f25b4e6b870ea32643a90d6d4b1b9fe14563b996981fff8767cc1896a23b7890bff27d5b8c3b80912f9f3887d4753f925f5ac720f7039b +DIST vivaldi-stable_5.6.2867.46-1_armhf.deb 91091520 BLAKE2B b00f1b762168a666b10a58ee66c3e0ce97278265c29408db4608c08c279c89c076c62dea954a9bf9a364d3b74631100538829c5067970fcf18c1e9e9fe63fa27 SHA512 174aae76e72c7dfa6c2a6d07e4a61cc036b0588848b0545d48268399176c23f706c4eafd3136d89ade28f33baa35fd3608b28b757a8e74c3ff985d7e604c6102 diff --git a/www-client/vivaldi/vivaldi-5.6.2867.46.ebuild b/www-client/vivaldi/vivaldi-5.6.2867.46.ebuild new file mode 100644 index 000000000000..82e87d9746ea --- /dev/null +++ b/www-client/vivaldi/vivaldi-5.6.2867.46.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 +} |