summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2024-03-14 21:36:26 +0000
committerJames Le Cuirot <chewi@gentoo.org>2024-03-14 21:44:37 +0000
commit62a09df72cb44d9e32ee350020da0f90361bc5eb (patch)
tree7bed41b5b42097cf48235f65ee94bbc082ff666e /www-client
parentnet-firewall/firewalld: Stabilize 2.1.1 ppc64, #926971 (diff)
downloadgentoo-62a09df72cb44d9e32ee350020da0f90361bc5eb.tar.gz
gentoo-62a09df72cb44d9e32ee350020da0f90361bc5eb.tar.bz2
gentoo-62a09df72cb44d9e32ee350020da0f90361bc5eb.zip
www-client/vivaldi-snapshot: Add version 6.6.3291.3
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'www-client')
-rw-r--r--www-client/vivaldi-snapshot/Manifest3
-rw-r--r--www-client/vivaldi-snapshot/vivaldi-snapshot-6.6.3291.3.ebuild224
2 files changed, 227 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest
index 53f705841f24..70c133528728 100644
--- a/www-client/vivaldi-snapshot/Manifest
+++ b/www-client/vivaldi-snapshot/Manifest
@@ -4,3 +4,6 @@ DIST vivaldi-snapshot_6.6.3271.35-1_armhf.deb 102218064 BLAKE2B c69fd1e87232c531
DIST vivaldi-snapshot_6.6.3271.44-1_amd64.deb 107772596 BLAKE2B 1cf5ed70f1d95f853a0f0f6d809479c48c431b6a0d0acd223d0cc11510347c8fbe9d1cc5eb622585738b50e32931b3275dc832cccc442d470b4b562bac38c7c3 SHA512 e9bf9210dc8e6b93af3000fba149451bb84dddd50fe6bc5eb702def8236a3560fec627e4e5a5e77c0ba50c618a5c8c1eaacfc37d2b2c68638f6c1fa235311ab3
DIST vivaldi-snapshot_6.6.3271.44-1_arm64.deb 100850092 BLAKE2B 59fd01998f78ac8b8febf43b7f876c6dc1983ccc111993531665d9775f16188cd026628c15e4e0e42cf62c058b72e3de35fbcf2e950624143093118ed7823af6 SHA512 05107fe1216ba55d4a1416a9aa9732675566897b2bf6335b90f90dc12e8d7348294416d9f70b4f5aae089db179bb7f7122bb88331e712a8729860095f63f0eed
DIST vivaldi-snapshot_6.6.3271.44-1_armhf.deb 102185892 BLAKE2B ffb3f8a74a4d0eec68f19df824c0e878a96238800bb4e7c518e6dfbc7f46f9e0aace70559be37e5f560cdcd2cb8fcf4b4d0ba6ff302239f2063652a356366ef9 SHA512 916ec277793de553d3ffff43bb5f3bc046a27acd86c945d75eeb3931259ef94ec9ab19f3f01ced68c338165fe8d4d1839aeee2e27967e17ee3f2d1b14a8e6013
+DIST vivaldi-snapshot_6.6.3291.3-1_amd64.deb 107626288 BLAKE2B 0c03336de3d0b0abe6f8df4d50156d8c743d90ff986a738a5574138dd62ea5537b28bcae6fcd85ae4fed01375662db2e32295818d33ace122fa9d2565ec51091 SHA512 6a25486311d9809d4c8a9d467ce3d165a91449f4940fd8ccf245a0ad1c1c3a75ac93c241db6533720a9b9ff869187db08233355b1183a83e826b2aeb73356943
+DIST vivaldi-snapshot_6.6.3291.3-1_arm64.deb 100623636 BLAKE2B 83a3075fd860de031bf0cb4e5b52a257fce934c3d5bc8edb3264e0de51121cbcab1d912e701a79d52c79ca80c60c09c2d80768a8646f0b7f57227da24f5eef66 SHA512 ca7f71165901f7a5b78b54ffc3fcebec43cee78a43cadf73a29e477df81b4302e081c8382abc62bd7732527db3b926f5d7cac7e2ebd42a1022afa0bb18120e3d
+DIST vivaldi-snapshot_6.6.3291.3-1_armhf.deb 101966792 BLAKE2B 3b47a3865eb4e7dc85ada629483209a44fba862e7a239b1223e54aeb5e196d1aa9d9b11ea9187c5466f730d93d29e7bff2fc1273c7b43e4e6bbe4c8b5fd8594d SHA512 c1794569a96a20c02f6fb42f658d4e651f68be2ba6b014c1b7c586a9d10997cc5629c611448d7280ec36778af4d6578aaed825475a4027dce46d45a09934e607
diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-6.6.3291.3.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.6.3291.3.ebuild
new file mode 100644
index 000000000000..9304611c3c84
--- /dev/null
+++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.6.3291.3.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
+}