diff options
author | James Le Cuirot <chewi@gentoo.org> | 2023-10-18 22:38:01 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2023-10-18 22:38:01 +0100 |
commit | eaaa14384b70a7cf4e770a788dd8ccb670a44152 (patch) | |
tree | b685b475c9fdbd433b84feacf3e23a4633188b55 /www-client/vivaldi-snapshot | |
parent | mail-filter/maildrop: add 3.1.6 (diff) | |
download | gentoo-eaaa14384b70a7cf4e770a788dd8ccb670a44152.tar.gz gentoo-eaaa14384b70a7cf4e770a788dd8ccb670a44152.tar.bz2 gentoo-eaaa14384b70a7cf4e770a788dd8ccb670a44152.zip |
www-client/vivaldi-snapshot: Add version 6.4.3160.27
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'www-client/vivaldi-snapshot')
-rw-r--r-- | www-client/vivaldi-snapshot/Manifest | 3 | ||||
-rw-r--r-- | www-client/vivaldi-snapshot/vivaldi-snapshot-6.4.3160.27.ebuild | 223 |
2 files changed, 226 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index f8578e7f15dd..37dddad8edcf 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_6.4.3152.3-1_armhf.deb 100634272 BLAKE2B 2bdc32ff04260dfd7 DIST vivaldi-snapshot_6.4.3160.25-1_amd64.deb 105369496 BLAKE2B e65fd968ceac08496a50da41029f38fb05a143bebc4b4ac81db79f709bb2a42f9eca32acd2c87ec7407ba6fe0d43973ca7323e5cd58e6b496daaf7543bdb677b SHA512 8e026b6d8be21052a7317ad26ffd1c21d8a669898559bd382acc15c1ab25b59b4395425860333d9aec2927834deb61c0953c398307ca6ff15ad77389447ebeda DIST vivaldi-snapshot_6.4.3160.25-1_arm64.deb 100094744 BLAKE2B 7386db4164426aedc26aa86483f1937eee1a52ff99829960250975dd0c8eeb2f1f02b22e25702afa2b7deab1bed026d7aa0b3741759b2da5a773c551058d7133 SHA512 c1f1d2eb7447dba16cf2622d9d8323b5d35723f3f038d51e09f8e72cf98a69689413e982c2e6c40421ed7a8e44acbecb5ef5bb1fcb4dfacc35109a6eef7567c5 DIST vivaldi-snapshot_6.4.3160.25-1_armhf.deb 100694448 BLAKE2B 34fcc914147ed604674e6f2e0d2fd3766013186c7f5321e942cd0bf63258e03f3df37a27d10df49a53173dd0417fc496fcdf1477ac18520411fe744bad949d0e SHA512 bcb0961543a1e111d796b3cee2c27224737378819c46b7eca8808bb430e25388ebcb97814bee66673f5be03d0eeaba7d7bb8436fa86b0dc05fb8da2c9e543186 +DIST vivaldi-snapshot_6.4.3160.27-1_amd64.deb 105370432 BLAKE2B f5d500ca50012ddb8bce6c8c5dae966899f3abc5b1df954fdf578eb0a0f47b2938182d65025b1ce8a2c6fa78d805034d35a705ff15f5f5ac25c368411897e5df SHA512 b6845398ee1429695e69bbe21523822982205bc17cedc2549edb2f81aae4f995f396259ec08b3459828dbfee7db40b98ba6c4f6dda3bdcec94d2e4f94dd0e57b +DIST vivaldi-snapshot_6.4.3160.27-1_arm64.deb 100032248 BLAKE2B 47f3ca6da75803724d7e6c3f936714555b7f3b4bb1af797995087ddd6ef282b4beb3a12e14d55d0be95716e00e2126f8e3acaa195c6bfd3ce5ea9d04fde62b8e SHA512 6d578a32a074b00740f44043cd2fa1e91a82703a772fdcf34a4123564a17f2f4913f087d53ae5b2429a66e25c26c01fd7c629d190e2757b874b01cb5c2aba77a +DIST vivaldi-snapshot_6.4.3160.27-1_armhf.deb 100692040 BLAKE2B 37104305d3bd6ec204889f21e9b03fef24a6fd06208f31fc45f834ca0c2f269d11d9c60a6b2772ff1acb7398a9db3544ccd5d1cb229c78a87c01190839d1cdfc SHA512 11a85c9283dc87a5f9acd79652294007ddd643805ecbe866f0f3cdbffd9977bfe03750a75e95c4a25d4d697eb2d679e7f3d37f0db3fa68a4013ce6e6d440887e diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-6.4.3160.27.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.4.3160.27.ebuild new file mode 100644 index 000000000000..9d522c106aff --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.4.3160.27.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 +} |