diff options
author | James Le Cuirot <chewi@gentoo.org> | 2022-11-27 21:18:57 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2022-11-27 21:18:57 +0000 |
commit | cf821fa644aedacc35fa253f7679ca1ae1106fef (patch) | |
tree | b2ab293a76ad2990a28407153e2f96942dbe1bbb /www-client | |
parent | www-client/vivaldi-snapshot: Add version 5.6.2861.3 (diff) | |
download | gentoo-cf821fa644aedacc35fa253f7679ca1ae1106fef.tar.gz gentoo-cf821fa644aedacc35fa253f7679ca1ae1106fef.tar.bz2 gentoo-cf821fa644aedacc35fa253f7679ca1ae1106fef.zip |
www-client/vivaldi: Add version 5.5.2805.48
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.5.2805.48.ebuild | 207 |
2 files changed, 210 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest index 9eff89155dc3..75c06784add8 100644 --- a/www-client/vivaldi/Manifest +++ b/www-client/vivaldi/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-stable_5.5.2805.42-1_armhf.deb 90298740 BLAKE2B 3733407f1de4194a871 DIST vivaldi-stable_5.5.2805.44-1_amd64.deb 101050748 BLAKE2B a37a03682e80364a232ccd3177867b3d305429460b4286b5a9aa30b6ef6a0a7e4930f9f660eb8d1567c45c80cf268395272be11031d0d36572e37b48b5dd66bd SHA512 cec51d0e1e55742166a0f2899858d1d99a205d690a64eb74d150fa4efae09951a2feb096bc0245c717dff05490be6097694a4e1bad786fd505f24e334daa698a DIST vivaldi-stable_5.5.2805.44-1_arm64.deb 90974952 BLAKE2B 873842827f8e8c5c3655e56d42dda77edf384e6f588b30888cb7ccb068df72f960f526338869ef2efc02aadc35e2d3891d983ce52f0d2e1c0a83c828bf07e193 SHA512 324a9466086480de0365e687881c9b6499982dfe83974fc09c265f027a3f362f3bc03d838ced7c0f5cffa2d8b770a76231799e7b786d57d8e0cbdfecf946b11a DIST vivaldi-stable_5.5.2805.44-1_armhf.deb 90304364 BLAKE2B 91dd85a133bd290f3bdf6808ba87e592cecdd085f4d2f493d165f145fdeb64d04611430cd74770199d1f9593cabef07b42bf30ceebc2da75cc495cf47d8b32d0 SHA512 82cb32f35243514d163f841c36c67832d637bafa73ba5cce903afe9006ab0ce748837ab07aa39b1ccee6cd98bef2f245f4955983495524243027012f50873538 +DIST vivaldi-stable_5.5.2805.48-1_amd64.deb 101014816 BLAKE2B 73b2345b4fdc0e4e64bb1cc229a78ef2e1fd940b4a6b9339e6512099e1d06ec6475ca4ebf2e61bd6bdd3ace1238016bde4fa1006c8f46e0f8df3fec9a1b5bd04 SHA512 63834b78d58e867e13a0465cfcc2c8f92a8b189e04684db3955adf5d9d6e9857f389e33bf7967b9d90589b4bbe490fd7c02d1fe6a27ca3b5eec537e611465f9c +DIST vivaldi-stable_5.5.2805.48-1_arm64.deb 90952376 BLAKE2B 049201c1dfc480d94fd76c61242d31eb9b195fdc55189b8baaa3be837e279ff9461cc670e42e55f9a94eec054d7ecc75813274ff2c2f224b25c7804c3601ca5d SHA512 317461cc5e23fcd7af2d3eba3e6df226c50ae6748cd296269a7d3eda5ce0977c1ee7ff442ad87d2fb381103cf08ae3b2448f22b4128009b085a93a27382e3cd4 +DIST vivaldi-stable_5.5.2805.48-1_armhf.deb 90299920 BLAKE2B c4153c4bf0be3d65b7a6e0309dd24393aa3908de68e914ff2d377ee3e6bdad6bcbe6cfa77fc86a843c2a9986c0b9d02b6e093f905b67e69b70a9c2783e01b453 SHA512 f67905c8804e78d25188cfda42403cf69f9c8a6f957c049b4264fdf2797d199000ae342be6380770e1b29613876e21c11e772217750c48837a6aba6e79dddf59 diff --git a/www-client/vivaldi/vivaldi-5.5.2805.48.ebuild b/www-client/vivaldi/vivaldi-5.5.2805.48.ebuild new file mode 100644 index 000000000000..82e87d9746ea --- /dev/null +++ b/www-client/vivaldi/vivaldi-5.5.2805.48.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 +} |