diff options
author | James Le Cuirot <chewi@gentoo.org> | 2023-10-01 09:52:45 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2023-10-01 09:59:40 +0100 |
commit | d4df48c56fad59b850b6ab2db3443ad55d7fe0b1 (patch) | |
tree | de05dae92e8f4636fdeb27b2ab54fde13629a096 | |
parent | app-admin/mkosi: add 17.1 (diff) | |
download | gentoo-d4df48c56fad59b850b6ab2db3443ad55d7fe0b1.tar.gz gentoo-d4df48c56fad59b850b6ab2db3443ad55d7fe0b1.tar.bz2 gentoo-d4df48c56fad59b850b6ab2db3443ad55d7fe0b1.zip |
www-client/vivaldi-snapshot: Add version 6.4.3149.7
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
-rw-r--r-- | www-client/vivaldi-snapshot/Manifest | 3 | ||||
-rw-r--r-- | www-client/vivaldi-snapshot/vivaldi-snapshot-6.4.3149.7.ebuild | 223 |
2 files changed, 226 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index 7972f4617433..b0e282fdedaa 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_6.3.3120.3-1_armhf.deb 97712580 BLAKE2B 9d6b1d68ad451c7705 DIST vivaldi-snapshot_6.3.3134.3-1_amd64.deb 102775196 BLAKE2B c7773ffa84ee889bd0cba997c97436cb3201546ed062af3701e430d5754806ecd5122d0f097f63d98bba5fdc49508d1df0372b65730145ec5b7ec2f30ef775aa SHA512 eab27f7905bf6fe14517580a21106283b4f9af787a145d8fe75fb6844c234179dbb11a6d08d0c7a182435b010c587eecbecc9e92440f6034860ca689f87f662e DIST vivaldi-snapshot_6.3.3134.3-1_arm64.deb 97911668 BLAKE2B 154dcdf8299a8207cc0063477dd2839df386d4c8c1d32d33005c4ee957dc4782f0a1e1fb5add7cb2b6fa8b274b3ebb278c1580f3d8568ec81b31852e5e8f4ff5 SHA512 3d2fbb617711429abdb145e8b92bbbf2dafecc685d58675e306f55e449b586fc50c7cf11cbcb3eb2e801460fa3467e548202aa75d1798a6c31a578088a391ee2 DIST vivaldi-snapshot_6.3.3134.3-1_armhf.deb 98470284 BLAKE2B 4ea365612f53e5a46f5a922f50d30c9f7a12f9deddd0b43abcce275d7fef0d4699cead9ad6c99fd0ceafa272a52509009700f79ddc1ffb058316f7ac2b560d56 SHA512 9d900659d319e6ab130b1ed94c405e25b566d0c5946a30ef850a9f9cf6d4e12e09b1dc9f7b68abf14907c9a119feb32a09862d4c7e53fc5e6275d4b2be820b23 +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 diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-6.4.3149.7.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.4.3149.7.ebuild new file mode 100644 index 000000000000..9d522c106aff --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.4.3149.7.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 +} |