diff options
author | James Le Cuirot <chewi@gentoo.org> | 2023-10-03 08:57:45 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2023-10-03 08:57:45 +0100 |
commit | 719a5f6eac7f6a578ccfaa2e4de1c1b337ba49c1 (patch) | |
tree | ceede33b4e73b1bb60f345193502114838083cab /www-client | |
parent | dev-java/javax-mail: style update, drop ExcessiveLineLength (diff) | |
download | gentoo-719a5f6eac7f6a578ccfaa2e4de1c1b337ba49c1.tar.gz gentoo-719a5f6eac7f6a578ccfaa2e4de1c1b337ba49c1.tar.bz2 gentoo-719a5f6eac7f6a578ccfaa2e4de1c1b337ba49c1.zip |
www-client/vivaldi-snapshot: Add version 6.4.3152.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-6.4.3152.3.ebuild | 223 |
2 files changed, 226 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index 9174a84b0595..59d154299736 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_6.3.3134.3-1_armhf.deb 98470284 BLAKE2B 4ea365612f53e5a46f DIST vivaldi-snapshot_6.4.3149.7-1_amd64.deb 105288416 BLAKE2B 6493cc927f86e4f4b3ac1276375e2aae9de3687b52a8f44dd4e1d87100ca9d20627a5e8cbd184f40cfb4ba41ddac417e66c312724082075dc48b653220ca82d3 SHA512 ebd704815959e7b43ab85a4129db989efce91e2bf581d32a88a6a4733447fd4bd47ff2792e7112e390ce03c63858b9c14a3f4f0a94ca17421d90ebd5bc5a8a34 DIST vivaldi-snapshot_6.4.3149.7-1_arm64.deb 99926304 BLAKE2B d2429d9c31c3008085b3b583d9c2556e1350f3754c88731d39901a57f9eba8dfa81e36ccb3bc6a7ecb957db42fb773ff6a9caddbbd99bd556e51b02d22de645c SHA512 5c113afcaf81d6537b38c73d1e9e19cfe7284b2f5d208c87055f342f93642f24dd224d54a11f060c25a033b3783ab963dce54c8312e413438e8875c842e84b08 DIST vivaldi-snapshot_6.4.3149.7-1_armhf.deb 100604364 BLAKE2B 523f6b3765f21ebd1f19a3df0d856b043433f3106e12b5aba21b7ac35a54fcd67c3b54e8383c6822df6f6dd058706349ec4c4a8bf39e82e5b557b465461f77d3 SHA512 76a54cc7ab48ed24cf0edba955ef225e988c48b988b1d1a89e88620ccbecb75637a2f2eb7d6db89dc61571b0f88104f739d889ca3911a8dddcf93c2eb98ab348 +DIST vivaldi-snapshot_6.4.3152.3-1_amd64.deb 105343600 BLAKE2B c03a581b9cfac49f0c6a31559cacf9f32f8087bb91b3e8b1d6638f348ef291be82b4eea15df782f001b4ea8f06a7abadda910bbee9a53fb41391eb6a2d69e201 SHA512 1e4c7754c486860368910850f2fbd84705b65d6cb809714d0ac952b5b69daab253108046ac3ad9c2950572b38bcb9769aa4a8f28f6761c1d3adafe695bfa9b5d +DIST vivaldi-snapshot_6.4.3152.3-1_arm64.deb 99999572 BLAKE2B 100b08d686ff5a4481d86433de84124fcb3c18e14667eb12b9a59fb895a4cfd9d336ec5975d07e9917a9bf0fcc315f7d480c46dd64bf087bdda946295ee78641 SHA512 d67a6b770cac56d76e99e553c15b7bf2335abe05b4f396b97d0f603b0bfc315e998ad9b5efaf93001965a784a40e72460e2c5add957f9807809cec701827a8f8 +DIST vivaldi-snapshot_6.4.3152.3-1_armhf.deb 100634272 BLAKE2B 2bdc32ff04260dfd7c1a38870f7a8ed2aecd7a57bed8884aeed00e0e82026834e15573756eebd10c95c5c808d2a4350aaefc7ba5700e80542c90fb815ca421ac SHA512 808a13d581e8321c727c688033950de8a40321132aeb96c580da4d7c11da56c750f498bfa1d41291d526237474e4d5cc76c1a0b8ea8162929b5a0b3302590851 diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-6.4.3152.3.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.4.3152.3.ebuild new file mode 100644 index 000000000000..9d522c106aff --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.4.3152.3.ebuild @@ -0,0 +1,223 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CHROMIUM_VERSION="114" +CHROMIUM_LANGS=" + af + am + ar + az + be + bg + bn + ca + ca-valencia + 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 linux-info 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}_" + +SRC_URI=" + amd64? ( ${VIVALDI_BASE_URI}amd64.deb ) + arm? ( ${VIVALDI_BASE_URI}armhf.deb ) + arm64? ( ${VIVALDI_BASE_URI}arm64.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="*" +CONFIG_CHECK="~CPU_FREQ" +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 + + if ! false; then # use qt6; then (TODO) + rm ${VIVALDI_HOME}/libqt6_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 +} |