summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2022-02-19 09:33:24 +0000
committerJames Le Cuirot <chewi@gentoo.org>2022-02-19 09:40:20 +0000
commite168ffba2dcaeac3458bce1ce68dea5f93a24f07 (patch)
treed16a46b313c71e7fe10a93fce364cd1e68cfede2 /www-client
parentsys-apps/gentoo-functions: Stabilize 0.15 arm, #833648 (diff)
downloadgentoo-e168ffba2dcaeac3458bce1ce68dea5f93a24f07.tar.gz
gentoo-e168ffba2dcaeac3458bce1ce68dea5f93a24f07.tar.bz2
gentoo-e168ffba2dcaeac3458bce1ce68dea5f93a24f07.zip
www-client/vivaldi: Add version 5.1.2567.49
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.1.2567.49.ebuild204
2 files changed, 207 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest
index 7fa7b4e06e29..d260d3fdde31 100644
--- a/www-client/vivaldi/Manifest
+++ b/www-client/vivaldi/Manifest
@@ -4,3 +4,6 @@ DIST vivaldi-stable_5.0.2497.51-1_armhf.deb 77933792 BLAKE2B 483a3ab88c37303c9fa
DIST vivaldi-stable_5.1.2567.39-1_amd64.deb 87347696 BLAKE2B 534ac7ab2d40b2d4b931a090debe5916ace470547418333ccf093194e438d2cfbc045314d186caa18e39b1534f111d918ec61859c51f6c009fd508e03772cb5b SHA512 b43dc241611b19369a65a7d688f05639a8268fe97a8e06cf6d266b3802614482acd2368befcc3c3b15597847d55fc8f6c4bf9e42d6ac48d8dc797e162972ca29
DIST vivaldi-stable_5.1.2567.39-1_arm64.deb 82256068 BLAKE2B 1ba9e77cb3e8262749e7464da365f0c198abeb69c40cd16fa4ab8ca6ad7c784f88eccaa70acbca7d5ac5f4213cdb106c49f0f7da023b5eee23655b9b02c00b00 SHA512 607c2b1d7c091aa8822123340f28459887a4b05eba5bc03a9475c5b0745d07dff8664556507989332aba6f7885f9deaa39df1131e152a5680be475fe8d3213f0
DIST vivaldi-stable_5.1.2567.39-1_armhf.deb 78106432 BLAKE2B 2ca0b3241c744886d433f0a9636a2c09bc7c5466137d4a2cb5e09e4b731264fcf3eb366746ca603e22daf8c4341ec68ffe5d9b6017b9840f397aea5ac30a71a5 SHA512 00c1a4eb494f881b3e803a732c1afbe328dd6237aa382e38f1bbe5f89cab2878d60d30aa0b30f4fc94e663203c0bdab0d43c566a936ec9405112a4238791e393
+DIST vivaldi-stable_5.1.2567.49-1_amd64.deb 87373176 BLAKE2B fbe4f7447fafb6aef68387f96157a1d65d547f879f8e8cab64562109a517bb0ace2317a857ad1cb3b7eeb83516d166fcb153565c9239e90ed24327555cc806f0 SHA512 b85155a2a0be028da917624c2252ec7d30a2651d1d61b2b9e2cb5aac5f922b87d6a1d3cbbc5b470f75e9d606569090a0e7d5b0938bef19075eae4b4e607698d0
+DIST vivaldi-stable_5.1.2567.49-1_arm64.deb 82304792 BLAKE2B 6217c4e2fd3f2bc3d54e66f83d563c7c15a5d5bbecd962e1676671240bde2f0d0d8dbf2b5bdb715c1ea41afd510d67462df00d11bb0cff69f9948e17a25231a6 SHA512 7c31177d28fd1df2be3b523345e5fa120b5a54a9d81a29850fa6bcba57073d7974ad8751ecff295d84e0d69771fb2f17b6642d0646e8050ba4cf70faab4e672d
+DIST vivaldi-stable_5.1.2567.49-1_armhf.deb 78151044 BLAKE2B a2c0e678b8fb562fa0395da75f27d0f65592e9108ee3c8d01525a5d801c3211741779df3b924212aaf85383c941928a76e7c877aa59601032f6868f9b04aaa74 SHA512 f365495f3e7904e74afa89856acf128c88defb5dd3a90014f4b626ed33c05607176846190b45b255d1c7ac95b8d24d699794cd55ab6f73b9da5e42ea23962f99
diff --git a/www-client/vivaldi/vivaldi-5.1.2567.49.ebuild b/www-client/vivaldi/vivaldi-5.1.2567.49.ebuild
new file mode 100644
index 000000000000..a0fb3fa96f92
--- /dev/null
+++ b/www-client/vivaldi/vivaldi-5.1.2567.49.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="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
+}