diff options
author | James Le Cuirot <chewi@gentoo.org> | 2022-10-29 10:18:13 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2022-10-29 10:18:13 +0100 |
commit | 2526ba30fdcb0a197c4c5de0de52b564133c36b2 (patch) | |
tree | 8f23e2e30a4ef29e4a0218307cff833788a76489 /www-client/vivaldi | |
parent | sci-geosciences/owntracks-recorder: Bump to 0.9.2, drop old 0.9.1 (diff) | |
download | gentoo-2526ba30fdcb0a197c4c5de0de52b564133c36b2.tar.gz gentoo-2526ba30fdcb0a197c4c5de0de52b564133c36b2.tar.bz2 gentoo-2526ba30fdcb0a197c4c5de0de52b564133c36b2.zip |
www-client/vivaldi: Add version 5.5.2805.42
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.42.ebuild | 207 |
2 files changed, 210 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest index c29886855b3b..3e4f2e90f890 100644 --- a/www-client/vivaldi/Manifest +++ b/www-client/vivaldi/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-stable_5.5.2805.35-1_armhf.deb 90280488 BLAKE2B 2df3c5586f543068ec8 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 +DIST vivaldi-stable_5.5.2805.42-1_amd64.deb 101047880 BLAKE2B d4fef75e6383ee16b6dd61286f23be516769f5e0d71a1dfc0136b2bd695e89071cfe103b858b1d064ce36613ae8ffbffb7893510f6253fc85f45158296a711a3 SHA512 f428fa27def0c2ca4cce45052b7933e8d88d61ad87c1fe76287e8c2b30efb9e56f548f429936ade29960826a85fa1a8f039f9a67a3d18d1fc90275fa7b8d075a +DIST vivaldi-stable_5.5.2805.42-1_arm64.deb 90976904 BLAKE2B 2c123fda23f2021b1ec1d4e9e5209285e2e16c5750c442cfc1667674c845968608e5edee6f1d6ea744706d45e24667924020909f13f9b7e975bc9c33ef672c0c SHA512 0505f5c9383e04d8d691a516ed9fa2d04c488b0f1ed705973e2f310d5134f255b66bc9f703f33b9b9e594d7df8f6c339a2fd7232b2d30b41c8ee54012898077b +DIST vivaldi-stable_5.5.2805.42-1_armhf.deb 90298740 BLAKE2B 3733407f1de4194a871a2cd7a80560a790f4820117a865e21704d46b464e2e027510a7a524223af772bc6a2094804cdcc6309e2c3a2441476f778af2f3449ccf SHA512 70a2532c5b4664fb1fb3f01fe18d6f75b3ceacadeacb193256a55a37fcb016b3968d00f170d79558e70aafd8f2628ce93e5960b22ce895201b514d378e540340 diff --git a/www-client/vivaldi/vivaldi-5.5.2805.42.ebuild b/www-client/vivaldi/vivaldi-5.5.2805.42.ebuild new file mode 100644 index 000000000000..82e87d9746ea --- /dev/null +++ b/www-client/vivaldi/vivaldi-5.5.2805.42.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 +} |