commit:     b07a84e4a9015730ffab9d197dc0d599062e3573
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 18 07:30:29 2022 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sat Jun 18 07:33:32 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b07a84e4

www-client/vivaldi: Add version 5.3.2679.58

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 www-client/vivaldi/Manifest                   |   3 +
 www-client/vivaldi/vivaldi-5.3.2679.58.ebuild | 206 ++++++++++++++++++++++++++
 2 files changed, 209 insertions(+)

diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest
index 9f83a7972378..73006a0fba4d 100644
--- a/www-client/vivaldi/Manifest
+++ b/www-client/vivaldi/Manifest
@@ -4,3 +4,6 @@ DIST vivaldi-stable_5.3.2679.51-1_armhf.deb 81302368 BLAKE2B 
e5f017b712153b892b5
 DIST vivaldi-stable_5.3.2679.55-1_amd64.deb 89894036 BLAKE2B 
0af9e0e5d1d934ff65f4fee31793c22d2ffabceaa0fac22e9d88f3933bd9a5727444b9fccdf0a2ba46e7da433b92e47714a5d40bf20ba671f00c8537cbea89c3
 SHA512 
0e004b57e8e3070c813a52f3655d820b5a9090562c03954acdef1b57f18c0a288007953e48504df0da7c091551efbc3bd678d8173473185a4117576850ede70b
 DIST vivaldi-stable_5.3.2679.55-1_arm64.deb 81645288 BLAKE2B 
b6891464bd0cf88166b110f5127bb69ad856123a24014728a00cf16a642f95891e6f0af0714441d7c92e99075cfa9f2ba1b8959b5ef3997dfd34fc325fe7f9be
 SHA512 
7e6332b174f5d570f4843ff5a6befc083b1332d0decd85a032ee95720a44462d81d92d9d3b8f3c36d8f4701fe670bd01535dcfab1a8c2ac19da2817be0f13dde
 DIST vivaldi-stable_5.3.2679.55-1_armhf.deb 81274636 BLAKE2B 
a35a228b96790eaf64199ffe53a14a01bd6ebe032d4d0445bde7c4aa76d917d530ec0de2513d675a07c95702224526e4cab8d5ca49258dfb9b7988f8a0f97a9d
 SHA512 
c3e867fd83b6603ed79dbdaf6c0410182162994cea726df6c56fc7065dd7f00fdeebf1747abf31f532b2e7b250a132d236bfaa29421ef07d75bf0819d349ad40
+DIST vivaldi-stable_5.3.2679.58-1_amd64.deb 89868852 BLAKE2B 
8370f7e366feed589e316c71b82006039bc7b2a310754a2d45e45739e773c062ff227184508bb0f821842c9994da819e19f9bce9a584e279700b96b92b1543a2
 SHA512 
348a7cf50d935c6046c19d944e9a04bd7e6c7bab458196cea30a1cd69052284b41bbb423e4bbb3ed0593303033c6f9848386aabfaed5de54d1bff9e1610b7029
+DIST vivaldi-stable_5.3.2679.58-1_arm64.deb 81641544 BLAKE2B 
8b5753937312185bec8c38db451edc67d62eb3e755dcacc624b03de5ab7605be5f024bdcb1965c356d49168bc5e277a51ad38454c0d907d4dbd17e5e1ca1debc
 SHA512 
5cba9787e14068564fbb7a27eff176171eccc267f663eea19764afcd228e959d0e23cbc48503adef6dcf0cd81e7ead69ee1c98337e6a882aff675af61d3d2800
+DIST vivaldi-stable_5.3.2679.58-1_armhf.deb 81281656 BLAKE2B 
063ec6982a771377b83f21aa4471fadd91b470d0a283361f033842aaa33d71ba628d78a7ac01893e4e45fc3db93a7f482fe6b7e2380a308f2266f078f9d9c949
 SHA512 
74b7496f7247e4e8caa114b7918f78ac98266c7b32300193858dcb080ff24273a3ea0a0d2bb7a8e9e72dd22346e4da1c2a9736979dbc22ed610042a8f05e3faa

diff --git a/www-client/vivaldi/vivaldi-5.3.2679.58.ebuild 
b/www-client/vivaldi/vivaldi-5.3.2679.58.ebuild
new file mode 100644
index 000000000000..cc815568ad94
--- /dev/null
+++ b/www-client/vivaldi/vivaldi-5.3.2679.58.ebuild
@@ -0,0 +1,206 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CHROMIUM_VERSION="102"
+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
+       ur
+       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]
+       || ( gui-libs/gtk:4 x11-libs/gtk+:3 )
+       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
+}

Reply via email to