summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2024-01-07 14:31:48 +0000
committerJames Le Cuirot <chewi@gentoo.org>2024-01-07 14:35:50 +0000
commit41b671defcb0584790f5184975dfb82bf3e5658c (patch)
tree92d5806e1b567accb09a9f855822d107a4ce2467 /www-client
parentnet-libs/libquotient: drop 0.8.1.2 (diff)
downloadgentoo-41b671defcb0584790f5184975dfb82bf3e5658c.tar.gz
gentoo-41b671defcb0584790f5184975dfb82bf3e5658c.tar.bz2
gentoo-41b671defcb0584790f5184975dfb82bf3e5658c.zip
www-client/vivaldi: Add version 6.5.3206.50
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'www-client')
-rw-r--r--www-client/vivaldi/Manifest3
-rw-r--r--www-client/vivaldi/vivaldi-6.5.3206.50.ebuild224
2 files changed, 227 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest
index 1219e5bc0a2d..36ab597d8771 100644
--- a/www-client/vivaldi/Manifest
+++ b/www-client/vivaldi/Manifest
@@ -4,3 +4,6 @@ DIST vivaldi-stable_6.5.3206.42-1_armhf.deb 102277588 BLAKE2B dd6a610192dcbe115f
DIST vivaldi-stable_6.5.3206.48-1_amd64.deb 106997692 BLAKE2B e8877c250b87fe0bbeff8054aea7173646c3086847cde10c0c84093c31401be9ee1af5fd9466c14984aeab2ae15ebe28729920a0ef1dd7047bcba2197f4cddec SHA512 eda3ed610933b88f4f005408c42b2c31a883ffa62a4cf6759969538ab27c3b49a02dbb93c9b0e47dd84cccf65b806aa35b661d43aeb6020f0a1846ff8c5af04c
DIST vivaldi-stable_6.5.3206.48-1_arm64.deb 100871784 BLAKE2B 8af9de4f30899cce7a45f7c5c1c0ab9bc9e6d2fea8f295b39a157d17e3d6ad24808805d1526eb789cd1c67025ec1b9fd86a28cf5057844368327bfb51190153e SHA512 2cee3406a5a7b8c89942c198143874bc2c7b4fd40ae76016f94493cae4baaad9db7cef46be807933573ee682fd28de494edbe0191c5628d202735afefe86aaee
DIST vivaldi-stable_6.5.3206.48-1_armhf.deb 102282592 BLAKE2B 827f7d544d8927661d33eb60686ff7603ca7aa3090d940784ede9b0eac8c942b1d4ed0588ddf45a7166b815bb6cbb1e38fa5477d2cb860d90e3e9318f2a040df SHA512 f3f3670d31b42183eb7c226a82b8fb065162e72b1321f6556cc2b06819053da5adf72ff1934f7437f020cf3d0dcd3ce40904977f3defa41ce6a281677ff4f836
+DIST vivaldi-stable_6.5.3206.50-1_amd64.deb 106997072 BLAKE2B 64e3d502ad5c2e3d657c9d3a8d79fab2ec2e96eaa437d5fdd8d50747ffad003bb21ee57c2dad6bee6877b67f51c4c48c0df8b9a861ad255bdd8fca4fc88c2517 SHA512 0a3a5bfa60374eddaf7d6cd45c1d702719993db77caa94b641b03a306bc020226f753e1557f3de332694f63a53f5ab65e5d278a674085eff9979efeeb962f3f9
+DIST vivaldi-stable_6.5.3206.50-1_arm64.deb 100873932 BLAKE2B 544dacdcec653e3c8a22696ffae0115dad7c2e2c953f7812d1be40353de333407231f0106fe842b60520f6987aeb98a7b2bfb7b416c4dd5cbf773ff8218779e2 SHA512 d734e1df774198c1e9174d4dc1861060ba0c2c58a76a0e34657eb4ff96fbe92e0cd1f2963a24694d72c05662113d7ee6f38ef2dac073f8169d1c9a1128a135ab
+DIST vivaldi-stable_6.5.3206.50-1_armhf.deb 102279324 BLAKE2B 805084c8e944a22195ac08c90f092344f87b64e91beb1067b2e291e513d7740409bd64bec3291e35443d39b6064491174b5cc5ec7ff510a5f112b675a2e150cb SHA512 638e75fdbe84bfb373dc4d8270d671500bd00476ffe34154882b23a90274f95871ce123edc84e342084607a7a5e344cdd213459a9d758eba630c8009901b8cf7
diff --git a/www-client/vivaldi/vivaldi-6.5.3206.50.ebuild b/www-client/vivaldi/vivaldi-6.5.3206.50.ebuild
new file mode 100644
index 000000000000..ea7dea4f525e
--- /dev/null
+++ b/www-client/vivaldi/vivaldi-6.5.3206.50.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
+}