diff options
author | James Le Cuirot <chewi@gentoo.org> | 2023-03-25 22:29:05 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2023-03-25 22:29:05 +0000 |
commit | 6975abcd89da37b022b7add2d08da171c73e5dad (patch) | |
tree | 16209ce1215fe8b4b421bba0a5c0b55e1b763a6e /www-client | |
parent | net-p2p/syncthing: drop 1.22.2 (diff) | |
download | gentoo-6975abcd89da37b022b7add2d08da171c73e5dad.tar.gz gentoo-6975abcd89da37b022b7add2d08da171c73e5dad.tar.bz2 gentoo-6975abcd89da37b022b7add2d08da171c73e5dad.zip |
www-client/vivaldi-snapshot: Add version 5.8.2970.3
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'www-client')
-rw-r--r-- | www-client/vivaldi-snapshot/Manifest | 3 | ||||
-rw-r--r-- | www-client/vivaldi-snapshot/vivaldi-snapshot-5.8.2970.3.ebuild | 216 |
2 files changed, 219 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index 0493f8692172..526aad980c8e 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_5.8.2950.3-1_armhf.deb 90793860 BLAKE2B cfa0db482f430bf1c6 DIST vivaldi-snapshot_5.8.2955.3-1_amd64.deb 102187676 BLAKE2B 02bcd74ac2962b1658fc33d60eec1503942de83fe2ad286f1acfb16aac4563ce129464b20bd3ff1952d9e790aedb5381e08b9d7d780c76789ef8e436c8a45887 SHA512 9875ac97b0280a2e1c197cd2354ef57b9dd678d742eddcca2582abb726a2a9466e0e80297154c2deb77d6fece9fb4c5320d434f33be6af1c67a21592b1cca353 DIST vivaldi-snapshot_5.8.2955.3-1_arm64.deb 91700956 BLAKE2B 978ecdfc77da4b005eb33ace8a4de42008dd1c33f5c469f67a864b36ba606b174c37753aff57e16a7da97142b2e577baaeac04969fa599f0d5972adb9128316f SHA512 67db24d0b40b0afae9bb658e0b0c7984bc91a123a4fed4cafa6d72dcc7e2e943b9e175a4dc714278f9f52293868d0bd7022f4bb59e234af62c645549ee312d38 DIST vivaldi-snapshot_5.8.2955.3-1_armhf.deb 91397548 BLAKE2B a6677ff044f823a2b693a1edbbce32105ca1d17fafbfd2a8a6f1accae96c1c14379cfa9c9acda6c554c1de360c51d32b4059c226c99022b1489d033c10f4406f SHA512 1e8b4303f114bf58785f70eb730240b7feabb207648ee5f7418afe3e281e25433d7d5ffe19c83f071a67bc8f5a60e360f2816b9a6afd67e076d63a3fd47ca6ec +DIST vivaldi-snapshot_5.8.2970.3-1_amd64.deb 103027168 BLAKE2B 5ce43f91c5f24fbb80a3dfbf4976bc5cd14ce080f74d34c2ae4843bea2e3b945d32e1d8a058fbc66c7ebb4c82b5b14f078776f0fa998dbccf7eec2fac8f36621 SHA512 33fa39ed9255dbe41780ec01f2d8e8172ce6b84ffdee89939cb32040cfaf1f8f03f18bafb76555fbc52b4e97d71e3f2e6e59735887db364cf21eefb67d1a5118 +DIST vivaldi-snapshot_5.8.2970.3-1_arm64.deb 92635600 BLAKE2B e4f3c06074cc7d0ec218172666569a93bfaacaa45e2aa2cfa88606b4c774e98cf70381cd58a5b4c0e4a0b02b85a978a4cc31249bf85c3ee3d0fdc41df3d8c3a6 SHA512 0822daa5572d13cd0774e1eed78baa1883b6db5a493719558ab0ed49bd129d4cd489972ca43d36fc91349496e55a74f88e8147197b10319c387a8fc058af7cf3 +DIST vivaldi-snapshot_5.8.2970.3-1_armhf.deb 92473192 BLAKE2B e23a5acef5453067f8620056a353c143e87a043daf00555fafd264feb4a76bccd3b99763bb978050e1c508c34f59f7e21ed234ab21998eb5a07ab16a6dd1aa3c SHA512 fec8f5993f4bc7c204a70884621671bb051d377a301140a92788a24ccc23d597a52f1faffba846cca7a18bd79cf681bd0ca5203e90d9012a9a42e771b8716436 diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-5.8.2970.3.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.8.2970.3.ebuild new file mode 100644 index 000000000000..9c296c0f9dbd --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.8.2970.3.ebuild @@ -0,0 +1,216 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CHROMIUM_VERSION="106" +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="gtk proprietary-codecs qt5 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] + gtk? ( gui-libs/gtk:4 x11-libs/gtk+:3 ) + proprietary-codecs? ( media-video/ffmpeg-chromium:${CHROMIUM_VERSION} ) + qt5? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + ) + 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 + + if ! use qt5; then + rm ${VIVALDI_HOME}/libqt5_shim.so || 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 +} |