From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1341686-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 4F063158087
	for <garchives@archives.gentoo.org>; Sat, 20 Nov 2021 16:48:30 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 229D7E07D8;
	Sat, 20 Nov 2021 16:48:29 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.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))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 91EB8E07D8
	for <gentoo-commits@lists.gentoo.org>; Sat, 20 Nov 2021 16:48:28 +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) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 533F4343098
	for <gentoo-commits@lists.gentoo.org>; Sat, 20 Nov 2021 16:48:27 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id A433C1BD
	for <gentoo-commits@lists.gentoo.org>; Sat, 20 Nov 2021 16:48:25 +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: <1637426749.ec9940c225142027c21f7495f03c5e1dd4fe2375.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-4.4.2490.3.ebuild
X-VCS-Directories: www-client/vivaldi-snapshot/
X-VCS-Committer: chewi
X-VCS-Committer-Name: James Le Cuirot
X-VCS-Revision: ec9940c225142027c21f7495f03c5e1dd4fe2375
X-VCS-Branch: master
Date: Sat, 20 Nov 2021 16:48:25 +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: ad9e0418-aeba-4fe6-93c5-377990da30d1
X-Archives-Hash: 0ce6e70543f642ef2ca2c5420db71cfb

commit:     ec9940c225142027c21f7495f03c5e1dd4fe2375
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 20 16:45:49 2021 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sat Nov 20 16:45:49 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec9940c2

www-client/vivaldi-snapshot: Add version 4.4.2490.3

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

 www-client/vivaldi-snapshot/Manifest               |   3 +
 .../vivaldi-snapshot-4.4.2490.3.ebuild             | 202 +++++++++++++++++++++
 2 files changed, 205 insertions(+)

diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest
index 19cea52c26dd..0c3780f7d179 100644
--- a/www-client/vivaldi-snapshot/Manifest
+++ b/www-client/vivaldi-snapshot/Manifest
@@ -7,3 +7,6 @@ DIST vivaldi-snapshot_4.4.2482.13-1_armhf.deb 77789976 BLAKE2B 91b743ba22dc73cd5
 DIST vivaldi-snapshot_4.4.2488.3-1_amd64.deb 86863140 BLAKE2B 52015cf80e627a4fa593f5b82cbc418a826d92e60d0ebc0230765d7d5709a7deda2b2daea02389316077b6d651c024c8d4af72b602dc7d5ad7bce7f8fbab639d SHA512 7fe7ffa0219af83b936c9425218ede6c97b389118a098c5c7e76b1a0e6ee4c99f3bd1f70f1fd366426157b27e60dc6d9ce69cad06aff8868562d5cc0dfb82e95
 DIST vivaldi-snapshot_4.4.2488.3-1_arm64.deb 81502080 BLAKE2B c8e6db5f5fe608788a317e4be834441e15597eb22ff583e3aba8606a5b131db87f40afd2c3cad97e7b5189fb010e9b8794024ad32d283b9d184ec405b6eb111c SHA512 5b70fcc3749c61c48143af20290e49b0c9935e097e0a663bab9a92cc408fcd9bad8a8dbbd4dc872dcde830a19a4ce89e4492a88058219316837e671c4c826abf
 DIST vivaldi-snapshot_4.4.2488.3-1_armhf.deb 77836084 BLAKE2B 665a2fb56b1d520803006205fa49c82a5f379f876ecb167f101a04900ff0334040537bb2388513cb1bd19513e3b234785921aec690053a1eb8e9d3cf39b28c73 SHA512 f9037b569927f06b1089699bf17d7fec60faa32c68ef666ace306949a75729bcbb6cca9c372e1fd9ff09ae85c8f7098599212b82484fc5192fc5a51a926a4890
+DIST vivaldi-snapshot_4.4.2490.3-1_amd64.deb 86887816 BLAKE2B b860b45b93f96901dea3272036b979b46b4a449a0b13da540f91d009694f05001f590171411f41aab83b7d71b9819ff6b88c43f5c55d3d8fd891e61eb2d04430 SHA512 cb1e10c7b26cfcbd51338c2f949127b52d6249e6461f8be01a56db973b9bff2a58604f92de968d25c9cdd33a5a5811e9ab29340e72d43a5f78f7e02d4b315f1d
+DIST vivaldi-snapshot_4.4.2490.3-1_arm64.deb 81509604 BLAKE2B 68663ae328b424f4ce7d63f99f95c0cd432bd425f95cea439d647e0a732f265b79be1b8b11c979fc1de14022cde3f57b3f40d34bdc2dc30e6e3c288d620b4a17 SHA512 2e541cf7a15f8a46207dd7ee88dbed5a6718a8225ada42c9972117530466d3a856c5bf231b7439f9f45eb6997b115a1b9b39e51dd804557014b5f5081b004480
+DIST vivaldi-snapshot_4.4.2490.3-1_armhf.deb 77856492 BLAKE2B 9d6c61d313a9738fcc7af14ebeaa926d25f9c69cefff3d6b6629fbed424fae9e1e2d0d48a201da9d2f8a7052b5b47d74cd72d4bce879a2dd1b2788eec06abe2a SHA512 75fa97b75d78a77943fec9e7d35a516bef7054db37813e3f75bd053153b8139f22f593ca46dfcda12500d5fc3995349555086ee83f6b14995974b6d6f6df8765

diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-4.4.2490.3.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-4.4.2490.3.ebuild
new file mode 100644
index 000000000000..5376bd2781d5
--- /dev/null
+++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-4.4.2490.3.ebuild
@@ -0,0 +1,202 @@
+# 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/${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
+
+	[[ ${PN} = vivaldi-snapshot ]] &&
+		dosym ${PN} /${VIVALDI_HOME}/vivaldi
+}