summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2021-12-15 23:30:51 +0000
committerJames Le Cuirot <chewi@gentoo.org>2021-12-15 23:40:45 +0000
commit87f5afa8117141389da16ad58ed0c6dbd07462dd (patch)
treec5701d49b383558c85d9bf3f037fd0548f61abda /www-client/vivaldi
parentmedia-video/ffmpeg-chromium: Stabilise 96 on amd64 (diff)
downloadgentoo-87f5afa8117141389da16ad58ed0c6dbd07462dd.tar.gz
gentoo-87f5afa8117141389da16ad58ed0c6dbd07462dd.tar.bz2
gentoo-87f5afa8117141389da16ad58ed0c6dbd07462dd.zip
www-client/vivaldi: Add version 5.0.2497.30
Closes: https://bugs.gentoo.org/829184 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'www-client/vivaldi')
-rw-r--r--www-client/vivaldi/Manifest3
-rw-r--r--www-client/vivaldi/vivaldi-5.0.2497.30.ebuild204
2 files changed, 207 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest
index 8c5c3301261d..0dc1b7a74655 100644
--- a/www-client/vivaldi/Manifest
+++ b/www-client/vivaldi/Manifest
@@ -1,3 +1,6 @@
DIST vivaldi-stable_4.3.2439.71-1_amd64.deb 88023372 BLAKE2B d64c8816a4a85cbe866f109511a317e6e1ead6069c83615eaaa9744962858d2f5a08d74b1d620676af5d600d68b190ab3cac4912b08a9bb0f9205a17a5910cad SHA512 ae46de75cb6290dcbfe145fe7c9f99db39ab0b39690a0041e6f8d0bf49b0242aef20e5d3da5c9100132afd992fe2ddc3ab29cd1fa1ae9e0c28f431a6b5536ba3
DIST vivaldi-stable_4.3.2439.71-1_arm64.deb 82802804 BLAKE2B d9b0715a305ef010c9e9df15ecf7ec47fc45921eaaacbb1f2841c6efe8fa4194cb28e73e935448d48eb4aa0b8b5a90649b8e34e63c97ae077390e12947f1b97b SHA512 2e0a2f29cfa4ec38050283b3fbaaf4e60fdeab65de21244c13c4f309c41394f65e4ba44dd5bee195d49acaf7ed22c60f5519f35aeb758521d8a6c06ad08c4233
DIST vivaldi-stable_4.3.2439.71-1_armhf.deb 78982608 BLAKE2B daa48324f4c596b55a8579819dd9f6f341bf8ea68dc0c77ffea3f0fa623740050aca0394ef7a98b7cb772fb954bf8f848e55b25cef90a579903f1f117d87e140 SHA512 6d87de2a1ba1c0089e3071aaeb99e28b9be089cf40fd9215aba5754c43b4cd3cdeafc52ab20275b75e110785447294bdaa603a185105b4a58b21e696cd31271a
+DIST vivaldi-stable_5.0.2497.30-1_amd64.deb 86960372 BLAKE2B c6ad22a7c38add81fbe85b5e595b42181805afe9d269e966b979dc3d4450cf3bb201c99443c6c115b6d0a522df1c2790f30b14331105877db9d8912926de0449 SHA512 5972132967ddae93aa88f5c744fb5bb590f332d6cbbd509e8fb505c5728d676295dc99a07fecea5f52ffffaaa6c7911736b4e509631d859c498d07ddce0e97d4
+DIST vivaldi-stable_5.0.2497.30-1_arm64.deb 81599492 BLAKE2B 5c0b38fbee0b40eaf8fb149635769472a4d6ee74e3504f86474c9b6b04d1cb89b4a7411a74a3626937f11152e16f7b067450c560951f26cd8b4e811e6c12c059 SHA512 9311c6d8a3901c20b57a5d10d416f38814c9b92353e351548dbc4749731a665f2cdb055e836cc0afd1a622b9db132662e473fda9b6970de48389ff949731b5e6
+DIST vivaldi-stable_5.0.2497.30-1_armhf.deb 77932544 BLAKE2B 00a85e593e07f3517167198a8cdf261eaabe09e4b098cd4c958bfe209c7b01842dadfe428ca310d1997295906e477b13fab491ada73e3ab5b3017081781158a5 SHA512 c686ec6a7fb9fac881d310385ae9c81f7d0b132517b65e89baa46aab2537d1edfce028d4ec8564316dbc8b38ab10b81e3c69253d33773f0b9e12f0fc6b2282d1
diff --git a/www-client/vivaldi/vivaldi-5.0.2497.30.ebuild b/www-client/vivaldi/vivaldi-5.0.2497.30.ebuild
new file mode 100644
index 000000000000..0d11b47c0083
--- /dev/null
+++ b/www-client/vivaldi/vivaldi-5.0.2497.30.ebuild
@@ -0,0 +1,204 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CHROMIUM_VERSION="96"
+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
+}