diff options
author | James Le Cuirot <chewi@gentoo.org> | 2023-02-14 09:29:43 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2023-02-14 09:29:43 +0000 |
commit | 41194412f15f1506ddd322d922759605443e849c (patch) | |
tree | cf7c0ddbf251646a3a35728d241df5048ee9adf3 /www-client | |
parent | app-admin/rex: Fix test dependencies (diff) | |
download | gentoo-41194412f15f1506ddd322d922759605443e849c.tar.gz gentoo-41194412f15f1506ddd322d922759605443e849c.tar.bz2 gentoo-41194412f15f1506ddd322d922759605443e849c.zip |
www-client/vivaldi-snapshot: Add version 5.7.2921.41
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.7.2921.41.ebuild | 216 |
2 files changed, 219 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index 1577d87134d7..ca9fce4297a4 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_5.7.2921.29-1_armhf.deb 90777880 BLAKE2B 8631e31e44256a97a DIST vivaldi-snapshot_5.7.2921.33-1_amd64.deb 101546700 BLAKE2B f61bdb8753f540293702521ce4c97b3e83b844bff5481f54fc1a79a1919a341c449374f59121b901224beedd853bd9cbc9d87934f8b6820c67f815d3d60642ec SHA512 0b58725982668fa0b1be6fc4cc4e57f19733b361708f99d852c501b67accecee71fa79274e5ffc13d58b6de30f0172685d45cf522c5782433c8dd9230bca950a DIST vivaldi-snapshot_5.7.2921.33-1_arm64.deb 91100108 BLAKE2B ad546e91cf8e56a17bd0fb74b9088ed6a9171d774eabc712a5d00082ae06bd8b5034227c9b461cd030ff5044ad9c890ae74cdfb66fe790a517357bc9d4444fd3 SHA512 03572f39b4f1abaafa185f4cf8fa0c4811005315e4e023e2582243cad69c7d74e3711262166bd9543049027b1537a276b06742846d91eda7df8d45f11dfb3ddd DIST vivaldi-snapshot_5.7.2921.33-1_armhf.deb 90791320 BLAKE2B b24511e0b3f66e19f19797e73781739ead2d760f27b35e24e66e513b5eb82535dca43b00656dffd9a451d56cd69d44b0ae9ca1ac9e943051ef9d0309ddec1bdf SHA512 230c568b6292bb880001e0e3d1a1058270cffcacaa403467ac8afaf57fb4ee495203e2b5dc132d738ccff6e9d75b37c0b2b4e6bb74d70c249013f251e9eeef4f +DIST vivaldi-snapshot_5.7.2921.41-1_amd64.deb 101576476 BLAKE2B 958e924f7882226d8a00f8e6a8a72b6b4eadf961841eed7548a7682638a538fdb259faea3bb5f3b2511a2fa2bad9eb77cc602b2a0a4b2c8f52f599a91f1b1f74 SHA512 a93638e9e41e27ad8fff9b396bd880d603598de52e4d8342e67dfa3bd6a67207b3220d0c5ed43785e3facbcc4f2870bbf4f4aab58535a3c0e394eb4747d9d3a2 +DIST vivaldi-snapshot_5.7.2921.41-1_arm64.deb 91105188 BLAKE2B 514f785e9e9b6d2f47c5424f7b43105e9adb77b4c793190cd3323927f896e7e09f7b9b49a9af9ab711a81b147613490433c772910db1d27f82a927728c5c9567 SHA512 0bd54f1c5fd6baeae551e3f24b9a4ed9522bc5342e2342ffe708becce406f3229c88e59a82e6a1026ac53375578093d3e0f4510cffa75267f875d575c6b046e9 +DIST vivaldi-snapshot_5.7.2921.41-1_armhf.deb 90776464 BLAKE2B e5675c7b4d51ad95f246f66e34f3b44b5de2e8463c9d388b5b459b3bcfb3bfff196b81688cb69e70839950b99948b366559756ac787a889e5862a5906c446a68 SHA512 69a5f1f23f400da823166f1e9bb1235b6445c704cb8e42fdb7a50d00abca48599d032b4fdcdad2fe10795741b8b769fe2e9503d237119dfbd87c1a96051b3ef0 diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-5.7.2921.41.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.7.2921.41.ebuild new file mode 100644 index 000000000000..9c296c0f9dbd --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.7.2921.41.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 +} |