summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2022-04-16 08:49:03 +0100
committerJames Le Cuirot <chewi@gentoo.org>2022-04-16 08:53:16 +0100
commitb12aa60f815d447c671f5f5ec0251188a6417619 (patch)
treee743fec044eb171b3f3fe35b5d57f832e11c506a /www-client
parentdev-java/icedtea-sound: Stabilize 1.0.1-r1 ppc64, #838733 (diff)
downloadgentoo-b12aa60f815d447c671f5f5ec0251188a6417619.tar.gz
gentoo-b12aa60f815d447c671f5f5ec0251188a6417619.tar.bz2
gentoo-b12aa60f815d447c671f5f5ec0251188a6417619.zip
www-client/vivaldi: Add version 5.2.2623.39
Package-Manager: Portage-3.0.30, Repoman-3.0.3 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-5.2.2623.39.ebuild204
2 files changed, 207 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest
index 8db37fe3a8d7..6964179926f6 100644
--- a/www-client/vivaldi/Manifest
+++ b/www-client/vivaldi/Manifest
@@ -4,3 +4,6 @@ DIST vivaldi-stable_5.2.2623.26-1_armhf.deb 78933556 BLAKE2B a720e04b8e34a187828
DIST vivaldi-stable_5.2.2623.33-1_amd64.deb 87793924 BLAKE2B fd76b878754902c9d50f2a57e04f9df9133f147381db36d80e7347b9f0bc9a2e3f4d469923e0749436d8132033e17aa3de2b33bc01e6e22bd7b79e480e00f863 SHA512 f41f05933ae6dac4909498375a476983d70122f8d06ce420ac119d7dd12315053d355a648821a1dacdbb7007760403b9fae5b1003abf168152efa21172a71608
DIST vivaldi-stable_5.2.2623.33-1_arm64.deb 83055396 BLAKE2B f89a28aaaca6d1c98bea1889887614d24f93727dced09b4da4305d382e01e2120af91e4345dab19fa2306f43e7b715acac055fc926dd4b7060b59bb8892a87c3 SHA512 ffadcee75732c859fdd4c410d32899fa4f01ee5aac6eae545837ad3619d7f58bcd3cd8a09b7b942d30d7fde04de1ad336136873c0680d1a6526377d96b433ab8
DIST vivaldi-stable_5.2.2623.33-1_armhf.deb 78936200 BLAKE2B f036bbcf0deece9032f5dd67fc9536c3cfc2a5ac53c27c0df8256825e89c1e51ab0efc6547980abd3de02b15d20475957fd075d1db6f95b770c8d8f44fdeb336 SHA512 f1ee7dbaea6339071c4579728bc753f31d15b99cd73ebd68f5e31b9434c04edbfa7567a8265f7e314b5cd9148009d27f6882f3fafebf4b82226621430052c30c
+DIST vivaldi-stable_5.2.2623.39-1_amd64.deb 87779676 BLAKE2B 099695c5e3bfb197c1a103e1d739dde1214d212a218d702e532c456eae41e3a7a051c4cf0dd997da0afa5a7fa2ef356782ab21447ad6ee7476cc064a6910c5c7 SHA512 bada85a789f88db239f6e08d8dd2f10dbf537b97039df99dff012b5247c5811cc5aeaef104f7776bb65344918074dcb3784638d8a6531b79ed22e4d52ba477db
+DIST vivaldi-stable_5.2.2623.39-1_arm64.deb 83033628 BLAKE2B 44964989c84a92139f36ac3980e3940480e369721d9b35852baac1a641347dcfe3d8ed46b619350d50bdecd91e20c7103f98cc02d8969f46ed9f4a02a52ba7be SHA512 128ab6aa8493af83142f5a6a88fba944607fd2c15e22eb5e58d5e3802ceadef87d348c861a0e74457a8f53739232ed8e89eb8ebd11ab2d8b276c0568624aaad7
+DIST vivaldi-stable_5.2.2623.39-1_armhf.deb 78938496 BLAKE2B dccd3b30649ae771c2ab3ea56d0e50f7373ccb308a0a398c66961a88e387c63bb97aa276134f70d24e5946f9baa409e46922043c0b6092c8370db4cfa07d77a5 SHA512 74cb138ba0b5d11a12728f57e4be243e0a3df682f5ae7d2a3cc09c296bbe5143eb5aeaa30284efbd2316d3f71325dbae00b06d4e7d87e5a78fb5b0597b09174b
diff --git a/www-client/vivaldi/vivaldi-5.2.2623.39.ebuild b/www-client/vivaldi/vivaldi-5.2.2623.39.ebuild
new file mode 100644
index 000000000000..d6cfbbe0cedf
--- /dev/null
+++ b/www-client/vivaldi/vivaldi-5.2.2623.39.ebuild
@@ -0,0 +1,204 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CHROMIUM_VERSION="100"
+CHROMIUM_LANGS="
+ af
+ am
+ ar
+ az
+ be
+ bg
+ bn
+ ca
+ 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
+ vi
+ zh-CN
+ zh-TW
+"
+
+inherit chromium-2 desktop 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}_"
+
+RE="\bamd64\b"; [[ ${KEYWORDS} =~ ${RE} ]] && SRC_URI+=" amd64? ( ${VIVALDI_BASE_URI}amd64.deb )"
+RE="\barm\b"; [[ ${KEYWORDS} =~ ${RE} ]] && SRC_URI+=" arm? ( ${VIVALDI_BASE_URI}armhf.deb )"
+RE="\barm64\b"; [[ ${KEYWORDS} =~ ${RE} ]] && SRC_URI+=" arm64? ( ${VIVALDI_BASE_URI}arm64.deb )"
+RE="\bx86\b"; [[ ${KEYWORDS} =~ ${RE} ]] && SRC_URI+=" x86? ( ${VIVALDI_BASE_URI}i386.deb )"
+
+LICENSE="Vivaldi"
+SLOT="0"
+IUSE="proprietary-codecs widevine"
+RESTRICT="bindist mirror"
+
+RDEPEND="
+ app-accessibility/at-spi2-atk:2
+ app-accessibility/at-spi2-core:2
+ dev-libs/atk
+ 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]
+ proprietary-codecs? ( media-video/ffmpeg-chromium:${CHROMIUM_VERSION} )
+ widevine? ( www-plugins/chrome-binary-plugins )
+"
+
+QA_PREBUILT="*"
+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
+
+ 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.${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
+}