diff options
author | James Le Cuirot <chewi@gentoo.org> | 2024-02-18 09:28:56 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2024-02-18 09:34:20 +0000 |
commit | 3c2ed84f71197a6ff6ff9ce867610657a6708408 (patch) | |
tree | 1c1275c22b7238511a3eb21da3f63033009ac7ba /www-client | |
parent | dev-perl/Spreadsheet-ParseExcel: add github upstream metadata (diff) | |
download | gentoo-3c2ed84f71197a6ff6ff9ce867610657a6708408.tar.gz gentoo-3c2ed84f71197a6ff6ff9ce867610657a6708408.tar.bz2 gentoo-3c2ed84f71197a6ff6ff9ce867610657a6708408.zip |
www-client/vivaldi-snapshot: Add version 6.6.3271.4
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'www-client')
-rw-r--r-- | www-client/vivaldi-snapshot/Manifest | 3 | ||||
-rw-r--r-- | www-client/vivaldi-snapshot/vivaldi-snapshot-6.6.3271.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 8bbc31683cef..8bf3fb3c45fc 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_6.6.3256.4-1_armhf.deb 101815360 BLAKE2B 632bd2f7466ee7302 DIST vivaldi-snapshot_6.6.3265.3-1_amd64.deb 107965908 BLAKE2B e76ed486ba9a49df374aea50b097620ce5caf429ec96003ef113cdc5eb29112316a800530e796d5adcba52a70696a44c358d912f0168fb4734cb00b480e6ad50 SHA512 521b0f0a064fc2ab5fd6954b6a82ad9aeaae03b7cc64403851502a8260ea3419e26342db2539fce72c96a1bd61ae40c60a3dd577271fea559b1f652cb463fdf3 DIST vivaldi-snapshot_6.6.3265.3-1_arm64.deb 100839292 BLAKE2B 04e1da781fa2ab88cae3f1485119e54fedf67ca6ae0a648a9c561a7a8e2dc87b365c1a13ec91e2a245f9ae39b0bef0ae554eb795138e01a6f4e2e87b9bfd457e SHA512 513f13af66a0cc484d7fa50358d5f3a9133cf88d6dd8e56baffec856ef32a13acfbe9d40715c8e61d1a12f8b0bc044eb55fa2bceedc2ac9586d5994a7e2488f2 DIST vivaldi-snapshot_6.6.3265.3-1_armhf.deb 102208420 BLAKE2B 463dc3757205c99ca4ef7117406cfac87c52e79c0c8c095ecc85465c21454a3b0b2d7b0c47a7d436f72c96de664bb000c95d5f42f56df073397835babc2dba9d SHA512 1fa0b655504550cecec5ce7b6b5578d14ed1aa468e291d8d94af6d7cb980699aeaaa22e4747269d0343af1291051b10ab43c710904d27640890015c37ebb9bed +DIST vivaldi-snapshot_6.6.3271.4-1_amd64.deb 107907712 BLAKE2B 23edb7c0df347c85e8c711b32a43e750b46af894a3dae9b585680b37bae220040c969645e5f4a4041ec2d0465d8491d9faf4bb25c30d58f59d949003daf8c02e SHA512 5d6cb836fb26df6baa7547b133795cb9f93b0a0adff39250295cb937da00c15a07e6068a654636de7db46ebdd0e6876522eed5eb98ea693e00289a013ca498bb +DIST vivaldi-snapshot_6.6.3271.4-1_arm64.deb 100885568 BLAKE2B a78391a6157b26d133d7549f44cc325a2c7f906e882ba0a2fdbe277c398a56da9f90acac94502421ed2b2cde1867cf3da0eb80e79456c929c90f59a7c595c67b SHA512 6b41c1a16888c5089ef0eed852844015ec13705a353a0fbe88c22a3abf09928a976d9ed1cb8b801eb8de0d76e2f1f2ec9f3ab1400608588cb0510ad9c67d9fac +DIST vivaldi-snapshot_6.6.3271.4-1_armhf.deb 102241252 BLAKE2B 1d4a866b9f2fd54b21026cfa26d1e5f741d59ddd435d3b4359266d7d6f5782b31e7213ed4c95ed6ef7c36083aee37d10174f6a37f81605e45dd150ffbd9e9894 SHA512 e1ec72e33df2093bb2fa71f7b0e59bca935261984b47938cb975083473697c4ecb3b0d90aa18881e103a659cc69469c7b2d70036b5cd45000ade1974517ab491 diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-6.6.3271.4.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.6.3271.4.ebuild new file mode 100644 index 000000000000..9304611c3c84 --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.6.3271.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="121" +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 +} |