diff options
author | James Le Cuirot <chewi@gentoo.org> | 2024-02-02 10:25:10 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2024-02-02 10:25:10 +0000 |
commit | ec035d4ea198a1ce9f545bd96d1c3d41bac862ab (patch) | |
tree | 222d0da150e49bc282f22ea4845d79bfa29fa9da /www-client | |
parent | dev-dotnet/dotnet-sdk: bump to 8.0.101 (diff) | |
download | gentoo-ec035d4ea198a1ce9f545bd96d1c3d41bac862ab.tar.gz gentoo-ec035d4ea198a1ce9f545bd96d1c3d41bac862ab.tar.bz2 gentoo-ec035d4ea198a1ce9f545bd96d1c3d41bac862ab.zip |
www-client/vivaldi: Add version 6.5.3206.59
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.59.ebuild | 224 |
2 files changed, 227 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest index f1f370d04afd..72fd5f383803 100644 --- a/www-client/vivaldi/Manifest +++ b/www-client/vivaldi/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-stable_6.5.3206.55-1_armhf.deb 102286752 BLAKE2B 301a41bc56616bf495 DIST vivaldi-stable_6.5.3206.57-1_amd64.deb 106941900 BLAKE2B e5995860ee060d2189b4551932724437957d7a1f9cac3f664b5c77ec5e917a8891f2087a612acbf53f4fb05202bf03667b1702919d92a546524ac1d263085c79 SHA512 7e27232195e6d229f58133c248535d41b55dd1c28753a8d28874af7bc8256c652c4620d3c6ee4c2a902b9f3096fc0193dd8309ea1c72dc632c39666e2a19e954 DIST vivaldi-stable_6.5.3206.57-1_arm64.deb 100880024 BLAKE2B fb98c1842e51d52b085ebf98b6c23de92391f2955c1f8ba4e191c4961479f38423c247b171aa5929b269939a3b6d8fb4744d2804f96309b95c4187150a6469a5 SHA512 42280d7510b61db4d1338bee3e8a95952107194045dc31a625d6eee0531d335a6bb7395b11fff41d102a92b3974bf6165a79b9d1ba03dd8e084fed405142fa73 DIST vivaldi-stable_6.5.3206.57-1_armhf.deb 102270576 BLAKE2B a68db6d499acbb2cb83a217146abbf89516f1f69c5d76817b03a730edc824e6e513374ee9fc6275c9a705976520d14eb8abec00550eb9348d84547cc230ba93f SHA512 35184f704abdf8e6ae4fc8850a2e554be5916a45eb029868aa759f2071f9112294e34b2ad7768bfd11309b30b26e7175f70964d8130384f72bf50a94e0b84970 +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 diff --git a/www-client/vivaldi/vivaldi-6.5.3206.59.ebuild b/www-client/vivaldi/vivaldi-6.5.3206.59.ebuild new file mode 100644 index 000000000000..ea7dea4f525e --- /dev/null +++ b/www-client/vivaldi/vivaldi-6.5.3206.59.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 +} |