From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1365890-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 BF93F15808B
	for <garchives@archives.gentoo.org>; Tue,  8 Feb 2022 22:05:11 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 7C58BE0869;
	Tue,  8 Feb 2022 22:05:09 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id EF893E0869
	for <gentoo-commits@lists.gentoo.org>; Tue,  8 Feb 2022 22:05:08 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id CEC3D340C5B
	for <gentoo-commits@lists.gentoo.org>; Tue,  8 Feb 2022 22:05:07 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 2E3382CC
	for <gentoo-commits@lists.gentoo.org>; Tue,  8 Feb 2022 22:05:06 +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: <1644357885.603e9a1652a2cef3c5bf74c2f43479d7a5f06b0e.chewi@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/vivaldi-snapshot/
X-VCS-Repository: repo/gentoo
X-VCS-Files: www-client/vivaldi-snapshot/Manifest www-client/vivaldi-snapshot/vivaldi-snapshot-5.1.2567.31.ebuild
X-VCS-Directories: www-client/vivaldi-snapshot/
X-VCS-Committer: chewi
X-VCS-Committer-Name: James Le Cuirot
X-VCS-Revision: 603e9a1652a2cef3c5bf74c2f43479d7a5f06b0e
X-VCS-Branch: master
Date: Tue,  8 Feb 2022 22:05:06 +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: 8ca77e38-b1cc-4c41-a248-49b16b0e4956
X-Archives-Hash: 62c2048eac323d2f4f83dd7b368f9d8e

commit:     603e9a1652a2cef3c5bf74c2f43479d7a5f06b0e
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Tue Feb  8 21:55:00 2022 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Tue Feb  8 22:04:45 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=603e9a16

www-client/vivaldi-snapshot: Add version 5.1.2567.31

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

 www-client/vivaldi-snapshot/Manifest               |   3 +
 .../vivaldi-snapshot-5.1.2567.31.ebuild            | 204 +++++++++++++++++++++
 2 files changed, 207 insertions(+)

diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest
index 7976813ffb4c..b074812a4179 100644
--- a/www-client/vivaldi-snapshot/Manifest
+++ b/www-client/vivaldi-snapshot/Manifest
@@ -4,3 +4,6 @@ DIST vivaldi-snapshot_5.1.2567.22-1_armhf.deb 78108904 BLAKE2B 42265fd79649455e1
 DIST vivaldi-snapshot_5.1.2567.24-1_amd64.deb 87352852 BLAKE2B 983462bcd71bd53e1fe2bf493ea0a6f465b958446633699118ac4cf824b2c8947c49ebf84a254443f42393620ec827e94fea2becbae3cd64eae288551f0b22d1 SHA512 d3346e96c3c40c79ce18bdfe07d67643b17b46cb2be10aca4d05742f3c307e6106a2893bb44e7a3f1b83ab697a6d5d285e0c066c2fc87cb5cc50dc57eadfeca9
 DIST vivaldi-snapshot_5.1.2567.24-1_arm64.deb 82227660 BLAKE2B 72eb6f00f3f6857f364fcbaf49e37d6317a0a4aa20ab9bf7279f732a54f9b1ad46f19cc2ae48d8b7b9cf602e3feeda090956a42942df971765fcbc2f8fe26bd9 SHA512 5ceb45b4aad49efcb705183135dcb5f9afbce213a7043aadbc4dea7ab73b18fe53238a0c47ef01afd867edb0bc10a69d3a141efdf0f70b4df4cd79de6da24afc
 DIST vivaldi-snapshot_5.1.2567.24-1_armhf.deb 78091572 BLAKE2B 68de80e499eaf2761e34db5aff3d805a788684f6a6a7f6663a035de04d1c9f1d065f15ce2d631dc27fd2bc82ec3414b81540733089f42a675dc6565a6e2c3857 SHA512 102e17b67fd4eae3abd08064e5278b40ac23cbae09e7c7733aed45c1144118bc15077c366376b3752170cae6d022bf88299ae19e8af7c43ac34dcb324a86537a
+DIST vivaldi-snapshot_5.1.2567.31-1_amd64.deb 87319908 BLAKE2B 102156e4fa8b9189b1676bca30d0372732aef0cd34684a4629286fec4adbcf32fef5b94cf9879a00aab04986e1542d69d38a664de9587b76547d58e1b15de88e SHA512 439fe5c78bbcb76958cb9bd816a28ddb5732f81af56fc41d041dbaa5a4eb5e9e6709cd3ac4f1bc3774baad4b45f94d137e04a8d6d13fc98ac07e416acead2b76
+DIST vivaldi-snapshot_5.1.2567.31-1_arm64.deb 82248600 BLAKE2B 970b496ae3104abb37c744d17e285c158303b1f7536a2b2d3d01ee9414486144e94f56352f65ac8cb9ae1d5a4c0a2fc2d8e9d4b1e017d33ce5b28470b9889b7f SHA512 0219bea7fdea76af759deba61cd93cad8105b94607095b7393ac0dcd94c0ceee87c6469437cd9762ee8bfb302a2dde07eb201e48851f15a963788e31043ef5ce
+DIST vivaldi-snapshot_5.1.2567.31-1_armhf.deb 78109368 BLAKE2B f7fb36fe555acce04dcbc1070659baf20ee2d2ee83db983ff3f516cafed4112166f597f62ada4183b9b570b7972cbce0aca907bb140cf2b74b25b4ed8bc4467a SHA512 f2693f7876125166fd53855b14676573bcb400810ad79c1a3601db3a2d1aaeeba639065e5df76ef7fbde683ab426b4c954d891f81d5e92454be7b394cd616ba3

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