diff options
author | James Le Cuirot <chewi@gentoo.org> | 2024-02-09 21:50:30 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2024-02-09 21:50:30 +0000 |
commit | 94b1e80231871b2ac8dc6e542e2543d34a65b681 (patch) | |
tree | 195ed8080142298207e3ae49c8d0466882aa7eff /www-client | |
parent | dev-tex/pgf: drop 3.1.5b (diff) | |
download | gentoo-94b1e80231871b2ac8dc6e542e2543d34a65b681.tar.gz gentoo-94b1e80231871b2ac8dc6e542e2543d34a65b681.tar.bz2 gentoo-94b1e80231871b2ac8dc6e542e2543d34a65b681.zip |
www-client/vivaldi: Add version 6.5.3206.61
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-6.5.3206.61.ebuild | 224 |
2 files changed, 227 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest index dcb7d2525b1c..eb765c688f0b 100644 --- a/www-client/vivaldi/Manifest +++ b/www-client/vivaldi/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-stable_6.5.3206.57-1_armhf.deb 102270576 BLAKE2B a68db6d499acbb2cb8 DIST vivaldi-stable_6.5.3206.59-1_amd64.deb 106982236 BLAKE2B 131d2b5b7a1d128b1f148ef5be7f9d79a5594da2ebfa5b318ae5057a320e83e3fd68f03426951f134063135899050565babc5769e5be4ad8510b4f87b4c4727e SHA512 77eab56e7141cbf0134e37ed9fb3461081be1d8ef3e17e99e89c1611498e82cf626cbd615aec64f1947482cfc224a8ab34ad130ec4d891c9eaa9139b828d77d0 DIST vivaldi-stable_6.5.3206.59-1_arm64.deb 100858812 BLAKE2B bc3f47c4f28de0c625617fddd08cb8984cb24eee299d0d809cc5cfbb9f3df3a8f23d19384f0544e692f0d4631f97d7f3d45a55c8077e7b39ebe3d49159e23ce7 SHA512 d0c20f9dd37b05ae79d3bd84e5d17e33e4f305099927f2e61a18402529f2ea58f2b9ddfa8b0aef775e9eba6528d9aa0fc989706b482763fc579e1ffac550fdf5 DIST vivaldi-stable_6.5.3206.59-1_armhf.deb 102297676 BLAKE2B 8ca4ea4bc3db1e4e0ce34cc487ed1113de56f6d483f830c48d854defb3ca34026977cf997c160dadd0f1882860aa85ad0acd7b08cee290995dd4d0c1b1fabda9 SHA512 1519d92c367c539c157b72f70ecf4804481b2de2e7b050cb61912e513dd9b5f56fa450d70335a6f029f78149bdafb455851a96fde0bdd6e870a8afc3afb770d0 +DIST vivaldi-stable_6.5.3206.61-1_amd64.deb 106979320 BLAKE2B 45e69d5b4338cfe44f36c84c438529999d2e5cefbfa30bd7773f35886c9b86ee464fc4a517284274a33587ed49cd48a715301ee0fa4dfd863b68c003ae427e55 SHA512 9cd656cd1f5e7b7be3e6e397d8dd7eda32eade962ce97dfcc5d524c81a3047caaaa80da03469487ab0cd9f48afa00c3480afa5d624c3e67f42285a95822333f9 +DIST vivaldi-stable_6.5.3206.61-1_arm64.deb 100870576 BLAKE2B d8f3d8827456a8ac52181c193fd2f9ee77fa478d50c704635eaa7bb0dee926274cb61f0a4c597db0591ec26f8a647f2e41152a7da1b2534f09c90e6fd11dcad0 SHA512 dc569b4accd9385f47b659756dd3fbecab212e15edeabf2ffa86460b18f2dd81f4e043aac12b2a3c56d30d7192cbf77d88515c81ce2a96f1fae60dd08770eb3c +DIST vivaldi-stable_6.5.3206.61-1_armhf.deb 102301448 BLAKE2B 4a1e68180c20be629210d5adbd0e5d13a68ed24557dc65a9cebc254b199353c87e189c6c248bb91b6d1e0812f294c1d8936a0fdbc59b490e71281fcd173ff0f6 SHA512 8d8a0fba650f467f0f006fa4ded265d11d783b0dcbbb3440f636d41a4977acd10f15ce08fe8823ed231dfd5980a94433b782145ef22f4363e620e700ad7cf461 diff --git a/www-client/vivaldi/vivaldi-6.5.3206.61.ebuild b/www-client/vivaldi/vivaldi-6.5.3206.61.ebuild new file mode 100644 index 000000000000..ea7dea4f525e --- /dev/null +++ b/www-client/vivaldi/vivaldi-6.5.3206.61.ebuild @@ -0,0 +1,224 @@ +# Copyright 1999-2024 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 +} |