diff options
author | James Le Cuirot <chewi@gentoo.org> | 2024-12-05 23:01:45 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2024-12-05 23:01:45 +0000 |
commit | 46ee2c7fd3aa2b48a60112aaca1eacccab637269 (patch) | |
tree | 218cab916be8d708b8a9caeaf1b4cd4cc6022382 /www-client | |
parent | dev-vcs/hg-evolve: add 11.1.6, drop 11.1.5 (diff) | |
download | gentoo-46ee2c7fd3aa2b48a60112aaca1eacccab637269.tar.gz gentoo-46ee2c7fd3aa2b48a60112aaca1eacccab637269.tar.bz2 gentoo-46ee2c7fd3aa2b48a60112aaca1eacccab637269.zip |
www-client/vivaldi: Add version 7.0.3495.23
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'www-client')
-rw-r--r-- | www-client/vivaldi/Manifest | 3 | ||||
-rw-r--r-- | www-client/vivaldi/vivaldi-7.0.3495.23.ebuild | 226 |
2 files changed, 229 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest index f64c9250830a..f879888596c5 100644 --- a/www-client/vivaldi/Manifest +++ b/www-client/vivaldi/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-stable_7.0.3495.15-1_armhf.deb 113982572 BLAKE2B 517f9fbc4218dc8db7 DIST vivaldi-stable_7.0.3495.18-1_amd64.deb 120944332 BLAKE2B 57dd825fca6385859698b11a7307415858560d3af9c2cf7069ae5f03031f3c2cf890c16db19e8344076c593c0cc392234c1ca58cd41d7d98fd0c0890413ee2a6 SHA512 678e965af99f477a95b52b2276091a52f244a9cb1f96f69d9078e66d7e4aa298d89c18ee016719cc1827fab6c0ca35f6b25444dd31aa3012035df7cbb789de8d DIST vivaldi-stable_7.0.3495.18-1_arm64.deb 112827716 BLAKE2B 3070b350f593a26aececaa351648f2810b3636e45f43905ce1cad293994fa74847bad0e876851d1ac2826060134a2d9edf696436f1bcaf2f8225a9c215732eb3 SHA512 75180bae0a0cc7ebc79b848282084737fd29ba1e4e0d80ce0739876041f04ebb1ca385a14b7e0c33cce5b4a270e999923b5e236924a31d29a47a967baa27a8b1 DIST vivaldi-stable_7.0.3495.18-1_armhf.deb 113958620 BLAKE2B 8cb77b2d64c074a154bc1c0a16e0f9e4ddf2d89933096dd216e5ec0293427c5ddd777cb34aba0641806c20915c729f4d10b84a7f2eadefdb3dde7e1418b579b0 SHA512 d8e2d3cd77627ed6c14b1ded8ee4b004a28a25fbd4f33633576e6eb5b13c260c2d278e526a15d42587bfb45dda2a2b2267b4b0299b136f50bd8396e8888f33d6 +DIST vivaldi-stable_7.0.3495.23-1_amd64.deb 120947796 BLAKE2B a4022b67bfeb394716b6d4d1d56703791076e7cd3040f187128ce6c2ea226cb9f4f7da0a6313bb71dc1f2cda0627bd70c84d767bf25e40b2ea6da73c42411bae SHA512 7a325aff7fe53c4eaab654b72ba3d64cc3e3e83b4171a95600a6b11ce30a5ce52ae4241c3b3e9b43b25c1dfac470acb25039509c6daa9e005dff119c5e2266ae +DIST vivaldi-stable_7.0.3495.23-1_arm64.deb 112832528 BLAKE2B cb77135ef961509083d590ed392ccff58f1af32c13a21113e3568bc41e62dea35f5f7bfa844f725c29b710d96539f5fbbb9a0472c6ebba521489f4a270bb2ca7 SHA512 231d413b80c81a38fb23a37ffa389104d4e909d32a79741a0a4a98278acaf489acab343d01340954626b61c5dd9ca907b52417863f9fe84e0a352a0b2cffda52 +DIST vivaldi-stable_7.0.3495.23-1_armhf.deb 113976328 BLAKE2B e24282354059087f9d5219acf0afdcfac3c7889903614f13dfd8aaceedd33073ada94f586671ea66fa40f3bee523ef9dad014b8c45c3b45fbb0a7865cbaaa88d SHA512 1cec7ea372ef0d289745ea5cd1c89ceafaaecdadfe21f04b57dead08ac9c281e70ff19fe66fee41c7bdeee8a2ca3682b19b075c27e4c975488c008fd62696199 diff --git a/www-client/vivaldi/vivaldi-7.0.3495.23.ebuild b/www-client/vivaldi/vivaldi-7.0.3495.23.ebuild new file mode 100644 index 000000000000..8063fc01d0e9 --- /dev/null +++ b/www-client/vivaldi/vivaldi-7.0.3495.23.ebuild @@ -0,0 +1,226 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CHROMIUM_VERSION="128" +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 + 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 toolchain-funcs 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 + +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 ) +" + +S="${WORKDIR}" +LICENSE="Vivaldi" +SLOT="0" +KEYWORDS="-* ~amd64 ~arm ~arm64" +IUSE="ffmpeg-chromium gtk proprietary-codecs qt5 qt6 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 + 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 + ) + qt6? ( dev-qt/qtbase:6[gui,widgets] ) + widevine? ( www-plugins/chrome-binary-plugins ) +" + +QA_PREBUILT="*" +CONFIG_CHECK="~CPU_FREQ" + +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. + rm kmr.pak || die # No flag for Kurmanji. + chromium_remove_language_paks + popd > /dev/null || die + + if use proprietary-codecs; then + einfo Bundled $($(tc-getSTRINGS) ${VIVALDI_HOME}/lib/libffmpeg.so | grep -m1 "^FFmpeg version ") + 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 ! use qt6; then + 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 +} |