From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1271437-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 9AF9613835A
	for <garchives@archives.gentoo.org>; Thu, 15 Apr 2021 21:08:38 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id ABEADE0823;
	Thu, 15 Apr 2021 21:08:37 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 85E21E0823
	for <gentoo-commits@lists.gentoo.org>; Thu, 15 Apr 2021 21:08:37 +0000 (UTC)
Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 2293F335D67
	for <gentoo-commits@lists.gentoo.org>; Thu, 15 Apr 2021 21:08:36 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id A2BD94A8
	for <gentoo-commits@lists.gentoo.org>; Thu, 15 Apr 2021 21:08:34 +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: <1618520894.00a994519f82417a78922755165a5b9f3f005f32.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-3.8.2259.3.ebuild
X-VCS-Directories: www-client/vivaldi-snapshot/
X-VCS-Committer: chewi
X-VCS-Committer-Name: James Le Cuirot
X-VCS-Revision: 00a994519f82417a78922755165a5b9f3f005f32
X-VCS-Branch: master
Date: Thu, 15 Apr 2021 21:08:34 +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: 206c872f-702d-4e6f-9ff3-e91a72519f8c
X-Archives-Hash: 58ce771ffc3fdfec74f2fbd4678256c2

commit:     00a994519f82417a78922755165a5b9f3f005f32
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 15 21:06:06 2021 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Thu Apr 15 21:08:14 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00a99451

www-client/vivaldi-snapshot: Add version 3.8.2259.3

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

 www-client/vivaldi-snapshot/Manifest               |   4 +
 .../vivaldi-snapshot-3.8.2259.3.ebuild             | 206 +++++++++++++++++++++
 2 files changed, 210 insertions(+)

diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest
index bef9061ee2d..dfb4f876f97 100644
--- a/www-client/vivaldi-snapshot/Manifest
+++ b/www-client/vivaldi-snapshot/Manifest
@@ -6,3 +6,7 @@ DIST vivaldi-snapshot_3.8.2254.3-1_amd64.deb 81752328 BLAKE2B 6d46b7f4cce84b9a40
 DIST vivaldi-snapshot_3.8.2254.3-1_arm64.deb 73386592 BLAKE2B 173407bcac8faffe6760d3a0286d0a81b85f6c13950a55a6d79fa19106e5842e510bf17f2aeb3e9625dcfcd183afb8404856c7d394851bbd864f4d7b88cfa81d SHA512 6d9aab60da26a5543b186085b2d610fc3f5461f489318d1e77936e13ea0d640b66ac3f18b137505271ca743113f5db2986b7c5ca4f5845823fff73204a15727e
 DIST vivaldi-snapshot_3.8.2254.3-1_armhf.deb 71963792 BLAKE2B 6778294e7eaf8380c1f3f10405c9df4a4d619fd5d57e901ebecb25d35c57f41eb7853658b712b35760dc1deffb134292f798135f62f15b0e4dc3a6caded65649 SHA512 747ed64a88ca2d0a8711ae9f97445183c0b333358bf886528bbb8159a17c088caa0eeb39dc5c6391f0b37347e98fc253d4e3e1ba949c6ea6dff0277103410259
 DIST vivaldi-snapshot_3.8.2254.3-1_i386.deb 78856764 BLAKE2B a5df0675bb7626600b63c6df4b1c2c20336cb98179b329dc564a23ceb90b1e8ab5944c1babc75586c967e23f2b824f0dde7bc2a523b6beec1c64962259d88584 SHA512 740cceb6fe383e303c89a5b4885bf40c12a3b5162c6c212b70a1f3bdbdcf422ffa2bb862472b92862a76d612b2ba66cea7b76991f9846c81e6ebd15aeb585553
+DIST vivaldi-snapshot_3.8.2259.3-1_amd64.deb 81768316 BLAKE2B f833b674f0675fbb493d53c3d3bf11676710950529adf34b12bc2b04918f1f5d15c49c79204e54eb839075d1bb322d5c1f6ac30a674b37e6a18dca79f7fd1445 SHA512 4894c3700e15fe5c422795805a95d9aa185fff8813905f3dac0a09bf7e7b5f9d177eefa09b6653c7b66cbe39ed6b4b21a0766b2221505318012ca17b986751f0
+DIST vivaldi-snapshot_3.8.2259.3-1_arm64.deb 73387384 BLAKE2B 4e82aae00994e9dd7d15fc68fd71329585e96a2b96d83f1682113c9a3c3f83ef1ac67b326e1fbfebc8c3870afc9d0ae178d4b414b2cb4fa95eec475dce62a0a4 SHA512 93a4bd5407ecb56aa0999ed9604a64e5279fc3a80f7734c8d57face88dbc5fb8f45d11118b5a32ebe71623ba89361dac8b370cc7423628aa62230ae1b8520674
+DIST vivaldi-snapshot_3.8.2259.3-1_armhf.deb 71951400 BLAKE2B a82757b418d2419a0950e3ee3086a809875c3e3d0c0da2465f4a5a9fa43bef88723184c46ca0ca868a543468fbec7eaa2b7edab64616bb7487a49a3a73dc7533 SHA512 a4a72b699520a6bfe3f9b785e142b05cc64fc034e9c6d6a676d71053c01735866afeccbe6364f3d9a882bfac7c9dde9db6e72a48e20268be9476013df41b4e3b
+DIST vivaldi-snapshot_3.8.2259.3-1_i386.deb 78841988 BLAKE2B e0f4282c16082298cb731ad4fbacb8b6b6844722cddc93923b2c5b5f35c0bd4fdb54e9b064c72ac90155959c9b9bd0c184e590f7ea04055748b9d1a04a39629a SHA512 dc417c0e7afa98d0b9ffba0268339064f4f9dedf1e6612a4c09b673247512cac5ec6d585b6c8353e9064485c8d1c194654e095180bbb01b8481d9fd3f8266601

diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-3.8.2259.3.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-3.8.2259.3.ebuild
new file mode 100644
index 00000000000..232d99b73e9
--- /dev/null
+++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-3.8.2259.3.ebuild
@@ -0,0 +1,206 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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
+
+VIVALDI_BASE_URI="https://downloads.vivaldi.com/${VIVALDI_PN#vivaldi-}/${VIVALDI_PN}_${PV%_p*}-${DEB_REV}_"
+SRC_URI="
+	amd64? ( ${VIVALDI_BASE_URI}amd64.deb )
+	arm64? ( ${VIVALDI_BASE_URI}arm64.deb )
+	arm? ( ${VIVALDI_BASE_URI}armhf.deb )
+	x86? ( ${VIVALDI_BASE_URI}i386.deb )
+"
+
+LICENSE="Vivaldi"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~arm ~arm64 ~x86"
+IUSE="proprietary-codecs widevine"
+RESTRICT="bindist mirror"
+
+RDEPEND="
+	dev-libs/expat
+	dev-libs/glib:2
+	dev-libs/nspr
+	dev-libs/nss
+	media-libs/alsa-lib
+	media-libs/fontconfig
+	media-libs/freetype
+	media-libs/speex
+	net-print/cups
+	sys-apps/dbus
+	sys-libs/libcap
+	x11-libs/cairo
+	x11-libs/gdk-pixbuf
+	x11-libs/gtk+:3
+	x11-libs/libX11
+	x11-libs/libXScrnSaver
+	x11-libs/libXcomposite
+	x11-libs/libXcursor
+	x11-libs/libXdamage
+	x11-libs/libXext
+	x11-libs/libXfixes
+	x11-libs/libXi
+	x11-libs/libXrandr
+	x11-libs/libXrender
+	x11-libs/libXtst
+	x11-libs/pango[X]
+	proprietary-codecs? ( media-video/ffmpeg:0/56.58.58[chromium(-)] )
+	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 ${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 \
+			  /${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
+}