diff options
author | James Le Cuirot <chewi@gentoo.org> | 2023-12-23 21:24:34 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2023-12-23 21:48:11 +0000 |
commit | eeb6b14715d8ed23279d7bf1bb0255149a5de724 (patch) | |
tree | 5f2dff90291930d30fd2440e4d15b47dd21b369a /www-client/vivaldi | |
parent | media-video/ffmpeg-chromium: Stabilise 120 on amd64 (diff) | |
download | gentoo-eeb6b14715d8ed23279d7bf1bb0255149a5de724.tar.gz gentoo-eeb6b14715d8ed23279d7bf1bb0255149a5de724.tar.bz2 gentoo-eeb6b14715d8ed23279d7bf1bb0255149a5de724.zip |
www-client/vivaldi: Add version 6.5.3206.42
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'www-client/vivaldi')
-rw-r--r-- | www-client/vivaldi/Manifest | 3 | ||||
-rw-r--r-- | www-client/vivaldi/vivaldi-6.5.3206.42.ebuild | 224 |
2 files changed, 227 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest index 22eb06ea3541..0553478955b6 100644 --- a/www-client/vivaldi/Manifest +++ b/www-client/vivaldi/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-stable_6.4.3160.47-1_armhf.deb 100960588 BLAKE2B 6154c7c2e482d10c36 DIST vivaldi-stable_6.5.3206.39-1_amd64.deb 106977464 BLAKE2B 199383dfe17abef1efb936ad6370256b19aa2078d6924237fb9f7b5a20c5a6d3f7162077e8e0f7ede67911db4f61e389a7866e0c96f59b2fc387204968c1af97 SHA512 bb9255ea4d08ad0353a9df34d0903762dacc356ffd57b2d9393780bd37eb7d55e481ff74c9ea7b88b1f355830133c21f04eb7b7b458ccdb7f932588bda3e45bb DIST vivaldi-stable_6.5.3206.39-1_arm64.deb 100850000 BLAKE2B 96cdc6897c960ee82e28bf091e18f2c13e01181f323a0ed92a8f4f80942c5660d0ad526bce1d54bf1bc1e8ea21358622a6b5d281dadfd1d971672739c49bb5c5 SHA512 905bb3b7cf9a348d93532825f822b06dc35de37acb09a6c8ba5d453bb4c69afc67c47e3fceac20b9ccec53f7debae07489ee4c83d073767d9522cd6bc617b0c0 DIST vivaldi-stable_6.5.3206.39-1_armhf.deb 102305368 BLAKE2B 8728b06c410165fb59205fecb6153ff99d8a2116197c2d1a6e0b08fa688a2fe536d57b7a2457c4e15bdc319a49ac9e9fa726feb3fbbcdeb19025078600614cb0 SHA512 d1a8c906b85f579438d78fcde7970c0890048605b46e97ebb15955e381837737959f027245a5af23051f0b78e29095ad2ee3304bc875d9df2903396623882200 +DIST vivaldi-stable_6.5.3206.42-1_amd64.deb 106971608 BLAKE2B db05360c888afa94613e60b468b222867bbcd66debbf8048d9c83dbde8bfead3eb051ab290afc4d203820cd3e64dc735175d7fe409147906b2a29ff6f423e46f SHA512 25516546299853e27526df4c2ea50229ec65b0d8c27db4beca9ac5a0e2ef225dd57062801df7733aa433da3a43bd71c130631b121f0fb4caf2e2f08dd175147d +DIST vivaldi-stable_6.5.3206.42-1_arm64.deb 100858156 BLAKE2B c90325601775d25f0d61403e57df03c9a718db4bb7fae64d750a1905977d8e7af4335282c1de873e3c047859aaae1d69e947b4176f7a5f5b27adb86ad1183c0c SHA512 126565af7cff611c595340544ce937357d6a9eda4d7621f1394348349cac21df7ea00268aa97e463037cd4016ab9fc88ce70d7be4d6b2807a15cd9e606b7d511 +DIST vivaldi-stable_6.5.3206.42-1_armhf.deb 102277588 BLAKE2B dd6a610192dcbe115faf96956ba9e4489e5c7f4986bae2cd26c62520f216ba8fb3b6833fba505be703459ce20a0c7ee624cde3e30288c9bfaeb3ae94892a855e SHA512 4c772df5f208f69a910a3b0991b74a0febf8a9059b4b088a668b2a82f28d8f0247c05024f928b326aad2cf21e34c2c49896c3916c1539a69183ce7923f33c90e diff --git a/www-client/vivaldi/vivaldi-6.5.3206.42.ebuild b/www-client/vivaldi/vivaldi-6.5.3206.42.ebuild new file mode 100644 index 000000000000..1cb4e268a82f --- /dev/null +++ b/www-client/vivaldi/vivaldi-6.5.3206.42.ebuild @@ -0,0 +1,224 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CHROMIUM_VERSION="120" +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="ffmpeg-chromium gtk proprietary-codecs qt5 widevine" +RESTRICT="bindist mirror" +REQUIRED_USE="ffmpeg-chromium? ( proprietary-codecs )" + +RDEPEND=" + >=app-accessibility/at-spi2-core-2.46.0:2 + 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? ( + !ffmpeg-chromium? ( >=media-video/ffmpeg-6.1-r1:0/58.60.60[chromium] ) + ffmpeg-chromium? ( 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$(usex ffmpeg-chromium .${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 +} |