From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1407257-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 54D61158091
	for <garchives@archives.gentoo.org>; Sun, 12 Jun 2022 08:25:44 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 833B9E08E5;
	Sun, 12 Jun 2022 08:25:43 +0000 (UTC)
Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 6C7BDE08E5
	for <gentoo-commits@lists.gentoo.org>; Sun, 12 Jun 2022 08:25:43 +0000 (UTC)
Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 44854341585
	for <gentoo-commits@lists.gentoo.org>; Sun, 12 Jun 2022 08:25:42 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 7D2ED44B
	for <gentoo-commits@lists.gentoo.org>; Sun, 12 Jun 2022 08:25:40 +0000 (UTC)
From: "James Le Cuirot" <chewi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "James Le Cuirot" <chewi@gentoo.org>
Message-ID: <1655022224.a9555cfd2b42496e229f93ebe3d851dd3b7b5926.chewi@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/vivaldi/
X-VCS-Repository: repo/gentoo
X-VCS-Files: www-client/vivaldi/Manifest www-client/vivaldi/vivaldi-5.3.2679.55.ebuild
X-VCS-Directories: www-client/vivaldi/
X-VCS-Committer: chewi
X-VCS-Committer-Name: James Le Cuirot
X-VCS-Revision: a9555cfd2b42496e229f93ebe3d851dd3b7b5926
X-VCS-Branch: master
Date: Sun, 12 Jun 2022 08:25:40 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: ae6b9802-10b0-4eaa-9370-8c6d9a2a685c
X-Archives-Hash: 431fa58bc17fc71bfad9db0b7bc0c11e

commit:     a9555cfd2b42496e229f93ebe3d851dd3b7b5926
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 12 08:23:44 2022 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sun Jun 12 08:23:44 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9555cfd

www-client/vivaldi: Add version 5.3.2679.55

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.55.ebuild | 206 ++++++++++++++++++++++++++
 2 files changed, 209 insertions(+)

diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest
index 29ddb2458c03..669f803b2934 100644
--- a/www-client/vivaldi/Manifest
+++ b/www-client/vivaldi/Manifest
@@ -4,3 +4,6 @@ DIST vivaldi-stable_5.3.2679.38-1_armhf.deb 81282548 BLAKE2B 6e26a5e0e740c124982
 DIST vivaldi-stable_5.3.2679.51-1_amd64.deb 89850024 BLAKE2B 5f45dd28a5d56c8d880e2dcf0f1598e12d7db16dfcf06cdd68b18727aa514e9522b79c61b4e0c8b4b00cc6321901fdc7af13253c955bf33e30eee554895645ca SHA512 1e5cf8f1726ada045c73cee3ac8e50f8eaafc4c5b5694f01a0bbb4f69d4f7b98ed53ac29dfb4456efd8fe9b9728b47ba4d259d8cf9a2ba1251015cb828197470
 DIST vivaldi-stable_5.3.2679.51-1_arm64.deb 81641628 BLAKE2B 08103d71a52fe4a4bbc7781fabca59e0beda3fe01083d908389f52f3b07d08c52277863e25f5beb8a31f2089dd41a4056aec18bdb63725bf555df1b783e68e8b SHA512 0f80082927e95343600eb578dc74bc9e98b2619ae6749b94fd40522959673ffe5a307324fe72fc5f3a19524aaa0cf0cb08d41073b313661f508c38f2c7365cc7
 DIST vivaldi-stable_5.3.2679.51-1_armhf.deb 81302368 BLAKE2B e5f017b712153b892b58fe4d4bcb29dea814681fa31c33eadc37bf8241863639dbbb21c444a1f30a8ee724405cce74926d31fe3b9e442174566d6abad226001c SHA512 4c17c111eb9232d8319e10dc8d098e4ccd4242fc7d7615a468f7456875485b29b4a4266216cd131b1c2ed5802f258d0304673bb86cff1b34e0b16559dac5ff1e
+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

diff --git a/www-client/vivaldi/vivaldi-5.3.2679.55.ebuild b/www-client/vivaldi/vivaldi-5.3.2679.55.ebuild
new file mode 100644
index 000000000000..cc815568ad94
--- /dev/null
+++ b/www-client/vivaldi/vivaldi-5.3.2679.55.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
+}