diff options
author | James Le Cuirot <chewi@gentoo.org> | 2024-02-02 10:27:12 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2024-02-02 10:27:12 +0000 |
commit | d4fab72658cf60e5f7150260f4959477000af41f (patch) | |
tree | 1d7d2dad0c4ef41599109aad1dbe2b8039a143d1 /www-client/vivaldi-snapshot | |
parent | www-client/vivaldi: Drop old 6.5.3206.55 (diff) | |
download | gentoo-d4fab72658cf60e5f7150260f4959477000af41f.tar.gz gentoo-d4fab72658cf60e5f7150260f4959477000af41f.tar.bz2 gentoo-d4fab72658cf60e5f7150260f4959477000af41f.zip |
www-client/vivaldi-snapshot: Add version 6.6.3256.4
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.6.3256.4.ebuild | 224 |
2 files changed, 227 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index 513eed4f186b..fde42521f931 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_6.6.3238.3-1_armhf.deb 102312992 BLAKE2B fdfb1608ee97c2802 DIST vivaldi-snapshot_6.6.3249.4-1_amd64.deb 106532956 BLAKE2B d81731f975f3468e01155e41766035414a9f255c096f1182f3a19bc5c24adef5bea77bf1c9598d8bb7551d838d4ebfc299858536877f559c2091481786fb3f1c SHA512 24f4111c3d8f8bef1984d9099f13dc7f95606adda78d35c04246c0b060945cd1f195ead99561eb85d7a57cbd1920c222871e744c07596c3d84f9b45cbe806c01 DIST vivaldi-snapshot_6.6.3249.4-1_arm64.deb 100396868 BLAKE2B ead2036ac61193b73a0acf77e04fae80d53fa1b1c17dbed879f5f96fd46e2e311aa9a6bd81fdac378211948c1a0f4de6ce2d4337470f730057f4e5db6071707a SHA512 ae874e619c90bca710bfcabac117bd80b939ed24a3596d53cf68bc0344f8d6f594b9326c3366f9e9887c6953e3ffb1c9c43256c076c557bfcceab2083491f538 DIST vivaldi-snapshot_6.6.3249.4-1_armhf.deb 101822500 BLAKE2B 07881a9b7a9cae6957b54eb189b6ac82049d8563ca8cdb37a433194b47660ca9b398a5923e8e24677f7827950b03b5b4aa7041c9507ab9174fa936b41528d4ba SHA512 be706daee9e0c8acba675d32343bb31406756fc67965ae61d69a6c098f70164127666dbf8b2eb6d5cf7fb9e83cf6aafcaaf584dcd7888749b0659cffa0605d6e +DIST vivaldi-snapshot_6.6.3256.4-1_amd64.deb 106506304 BLAKE2B 3f44382fcc0cc76259d5fc0483be3819251610c1af8d6999aead7a7b3848e0df9d8e0950502fb3c207c344332a2f8b73246876065543b82db1057bb946841a46 SHA512 2f32397decbda9941fb9e3100161e204cf1e265498bfa6246809ab1da7e7a6b76c1be068cd45ac5803ffbe67e8060629411fe30c37465fc66754c80909961be3 +DIST vivaldi-snapshot_6.6.3256.4-1_arm64.deb 100409820 BLAKE2B 4e7d7dbcadce0a6774c126cee16a4d81cf19835f45ca6cd26377f4153d6720093a95a3b7540491b13bfc606e9bd60e64975551bfbedea08774cd2959f45cc513 SHA512 7645772e7e07f9e48f1edb7b966fbe06cfcec5f5732ede97796dacc4179dc71e23bb4b33eb174ea855c98be78e47f7f8a6bd6546cf2b8e9d1b0aa3b5094c296f +DIST vivaldi-snapshot_6.6.3256.4-1_armhf.deb 101815360 BLAKE2B 632bd2f7466ee73023f13f9cecc3393e0c2b49e34d990d70a5cd9094f10f1f14a41459d61f64ae8848030b0f3c3a573384f3521ea37f4883f68a592207578937 SHA512 581d2c32f0894b38a3411363876d160f97dc98f53b431d3b1f7579f9df08380613eebbb40bf696a8bac3a50bc4d92de8312d89ea875acdf5fd06b5f18a5f385b diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-6.6.3256.4.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.6.3256.4.ebuild new file mode 100644 index 000000000000..44ff1d87e5a1 --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.6.3256.4.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 +} |