diff options
author | James Le Cuirot <chewi@gentoo.org> | 2022-10-15 13:39:12 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2022-10-15 13:39:12 +0100 |
commit | ca2561dd4e775a59295b5b8b3f6c935ecf3f86d2 (patch) | |
tree | 1e0edd9a83ce8b4de098d7c690018cfbd6a0fd28 /www-client/vivaldi | |
parent | app-emacs/transient: add dependency on app-emacs/compat (diff) | |
download | gentoo-ca2561dd4e775a59295b5b8b3f6c935ecf3f86d2.tar.gz gentoo-ca2561dd4e775a59295b5b8b3f6c935ecf3f86d2.tar.bz2 gentoo-ca2561dd4e775a59295b5b8b3f6c935ecf3f86d2.zip |
www-client/vivaldi: Add version 5.5.2805.38
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.5.2805.38.ebuild | 207 |
2 files changed, 210 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest index 41169259918d..5e4aaf148550 100644 --- a/www-client/vivaldi/Manifest +++ b/www-client/vivaldi/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-stable_5.5.2805.32-1_armhf.deb 90294488 BLAKE2B 1565fcb97f83f77fd79 DIST vivaldi-stable_5.5.2805.35-1_amd64.deb 101010184 BLAKE2B b023e36173fc96536225dd305ec56dac2bb4c73f43d5c1109b538c6f7575380d16fad5e78486423d24ff4bc530f499f763e53de3d8aa5c2270258ae933ee4b16 SHA512 b7a81e48b4a6d2eba1d840539e5dfeff01b37277f807bf2b190d025c9a533cc86af3d15fea75138e0920de797e289faef4a8037380bb0f49ffeed52fd36a52ad DIST vivaldi-stable_5.5.2805.35-1_arm64.deb 90977892 BLAKE2B 1f2d4a27eca8c947e3c4c98d9cf24a443c21fb46f89bf8329d780814b5409537ee73d6fcceefee85eea6aa5aa9df8c8ba32688880453d55b1f7cfa173a104464 SHA512 dab213679a9ad2548224437f8e9831ae58b783d74a87be3946d2bfac994f5ac6ac3a2e06a18c2ccc832130ba90d1953647fec1836b14a4e112e47ba75c647f0f DIST vivaldi-stable_5.5.2805.35-1_armhf.deb 90280488 BLAKE2B 2df3c5586f543068ec8e5a0927ce986a51a587eeedd22a2f1350f9a77f4c283e7455e0e55a56243bdd08615375df13e61f1ff92dc419f2e8bf44d90065efe5b9 SHA512 d402a4eb3db9dff523d0a148ce3c53dc3fe9ccd2090ba4141cafccd99702d84ffe48ca43d6ea3c251698eb6a7416fee56614a2ba09a61973bf0658bba2a79628 +DIST vivaldi-stable_5.5.2805.38-1_amd64.deb 101000188 BLAKE2B e3d629528e05a57a99bcde68d8639c18d0c5ecba273aecff524f680adfd0a8c6dbc42be7feaf33e03c2508a0a34b7c24a9544c67883bc3510a090c3b27cda253 SHA512 b2e2631eee036053bb0b157799d56d76e9ac4d504b611e77e9e09aa35fb837e8dd3d4f8e93347e0221eefe492248229a3ea3d8bdd8c23db7a8c83311ab34c1d7 +DIST vivaldi-stable_5.5.2805.38-1_arm64.deb 90946476 BLAKE2B c6c7e21656b6e568295a7a89aeabc5cdb0f44707d9fc54c3d83b0ea261cad65eb4105feb01fea2e9d2f7a2973ea901014347accab61af95312714318da3f19b1 SHA512 b0f4a07dca572865517a9176ba769096a9600fd636ed1c0cda5bd3e459b0378fa229ad2607b14b476d7aa7ce7613e440c761bd5278f53aefcf6223bcce43d154 +DIST vivaldi-stable_5.5.2805.38-1_armhf.deb 90270580 BLAKE2B 024e77f1c9391093a5e16af2296d09da73d884f6539c21d74577f56b66f897f948f6b69004908f87fcd5daead54d4dfb6cdce83ec104ea796d3d97b5c837c524 SHA512 47fd3d0eca790377dd580a52be879209bd55a1227c9f24b1596813d0f6516fde27a288f3a025d8147243025e8397ca443d5a80325069dee1c27d8f5c6081fa27 diff --git a/www-client/vivaldi/vivaldi-5.5.2805.38.ebuild b/www-client/vivaldi/vivaldi-5.5.2805.38.ebuild new file mode 100644 index 000000000000..82e87d9746ea --- /dev/null +++ b/www-client/vivaldi/vivaldi-5.5.2805.38.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 +} |