diff options
author | James Le Cuirot <chewi@gentoo.org> | 2024-04-21 21:26:30 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2024-04-21 21:35:28 +0100 |
commit | e49d6ec5b4bae081894031f7c42ef83d46a056e1 (patch) | |
tree | 03db456b19473fcca9737b53622499273e05ab2d /www-client/vivaldi-snapshot | |
parent | dev-util/debootstrap: add 1.0.134, add myself as maintainer (diff) | |
download | gentoo-e49d6ec5b4bae081894031f7c42ef83d46a056e1.tar.gz gentoo-e49d6ec5b4bae081894031f7c42ef83d46a056e1.tar.bz2 gentoo-e49d6ec5b4bae081894031f7c42ef83d46a056e1.zip |
www-client/vivaldi-snapshot: Add version 6.7.3329.9
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'www-client/vivaldi-snapshot')
-rw-r--r-- | www-client/vivaldi-snapshot/Manifest | 3 | ||||
-rw-r--r-- | www-client/vivaldi-snapshot/vivaldi-snapshot-6.7.3329.9.ebuild | 231 |
2 files changed, 234 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index 6544af261758..35a02dc993ae 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_6.6.3291.3-1_armhf.deb 101966792 BLAKE2B 3b47a3865eb4e7dc8 DIST vivaldi-snapshot_6.7.3316.3-1_amd64.deb 107501496 BLAKE2B 71a7e09d493643d3a6331a30cafd763bb1c200b95f1601df0d9d2878372d14201f8e72e96646c92776d38970e6e32a08831ebfee6c32ceffabcd849ae4b17d55 SHA512 3abc375340bac60a574c4dc4c3042cfd864ae7a4e0febc2fbe310693a92022e592a9de4399472c8c46ae4580dc25ca4c07cb6a667ced97e0ddf5aeeb84f7b6e6 DIST vivaldi-snapshot_6.7.3316.3-1_arm64.deb 100611568 BLAKE2B aa6e54aab1e00aa7ca27f8c5e9c4d005b5cca75f3561f30ef7be303750be12c1f8133270177a6f009431ca57574fd5395d2b97d95b2fd01e0ae63fce7bfa47c4 SHA512 ccb04e312c76152fb78cff0fb9d36dbd31a90c3288c9ec7039ae1fcbd1e70d6a1d4b9bba772890176d12c85ef28b7d38c59ffce6752d47b4d5f4113284bd91f3 DIST vivaldi-snapshot_6.7.3316.3-1_armhf.deb 101953560 BLAKE2B caa94f62edb14cf008a4d777125f71b6513fbb6436d92140fdf4e6bffaadd69e2b70bce0fd870c7a05e04373b86c1fe86468da18be821a10948affa7b70e2545 SHA512 90cfe9ab4c2f97d9c0bc483a06670b036d7f29641cf84c531f612e8667031f51a5e464414d27da76eddd38701934a23d99c27261bcc5a53875c9468765c70860 +DIST vivaldi-snapshot_6.7.3329.9-1_amd64.deb 108466920 BLAKE2B db98be5d895312cca41683794532ab8dd5245407f9367f3d3d08e14eaaecc0f5ad5367cbabd8ec02e05bfbcc1cdbada4a36882c04dab9ed4e8c3af5abfce664a SHA512 99c9ee584b8fb449db9e50a3aa522c30ad8f45fc6427a2a337ebfbfb1c0546261b5019c6defb107149f56191b1b118a1304b5735d89ade5bd355a1ec27e84d48 +DIST vivaldi-snapshot_6.7.3329.9-1_arm64.deb 99162468 BLAKE2B 2e2c4b82e5e3ea7efb2ecb93b5f5bb05a765a300cd17d7702af57924544cfd3ec4276b457b8e40b0a48048fbfd18d9ef7244b589c008c602ca03b5b8009bf784 SHA512 ee4d1cb20ab1f0ef1614ba42533d9ea212077b9f91bb407414e3b7ca677dfabdcdedd47ea59bbe7712a8766baae6be9bc0362a5fc01714959ec9841e87911cd1 +DIST vivaldi-snapshot_6.7.3329.9-1_armhf.deb 100312184 BLAKE2B 1d3aaf6e4c2a40367ec1596fc77328fba6d39b79a2adfa18c4d36da3a5aad1750555b91d64ff64d092349298f6cc932110725789c9a81599b1e7b69fc8b0a99c SHA512 355d285591c1cdf58f6e9fe8a4428be6056600b7303ab22f9bd1e0dba87020d59161bc58692c4c37da97e522153145548f07d11b2acd1fca8c72f2e4b3633ea4 diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-6.7.3329.9.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.7.3329.9.ebuild new file mode 100644 index 000000000000..ac289a86107d --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.7.3329.9.ebuild @@ -0,0 +1,231 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CHROMIUM_VERSION="124" +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 + +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 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[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 + ) + qt6? ( dev-qt/qtbase:6[gui,widgets] ) + 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. + 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 + + # Bug #928519, #928520. + if ! use amd64; then + rm ${VIVALDI_HOME}/relayproxy-linux || 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 +} |