From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1383688-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 2DEDA15808B
	for <garchives@archives.gentoo.org>; Fri,  8 Apr 2022 21:39:32 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 1CF9DE08BF;
	Fri,  8 Apr 2022 21:39:30 +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) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 0AECDE085E
	for <gentoo-commits@lists.gentoo.org>; Fri,  8 Apr 2022 21:39:28 +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 06B733415C7
	for <gentoo-commits@lists.gentoo.org>; Fri,  8 Apr 2022 21:39:27 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 5F13738E
	for <gentoo-commits@lists.gentoo.org>; Fri,  8 Apr 2022 21:39: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: <1649453702.1196357712fdd9652d4dcc10d563fb9cd10fa297.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.3.2636.3.ebuild
X-VCS-Directories: www-client/vivaldi-snapshot/
X-VCS-Committer: chewi
X-VCS-Committer-Name: James Le Cuirot
X-VCS-Revision: 1196357712fdd9652d4dcc10d563fb9cd10fa297
X-VCS-Branch: master
Date: Fri,  8 Apr 2022 21:39: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: 8cb7e39f-cdc3-41fa-b6d5-76f5b3665b98
X-Archives-Hash: 77f4dfdea9e28a604e5ba6d81160efd0

commit:     1196357712fdd9652d4dcc10d563fb9cd10fa297
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Fri Apr  8 21:35:02 2022 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Fri Apr  8 21:35:02 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11963577

www-client/vivaldi-snapshot: Add version 5.3.2636.3

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.3.2636.3.ebuild             | 204 +++++++++++++++++++++
 2 files changed, 207 insertions(+)

diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest
index c2cf2ba42a91..4680d461e0bd 100644
--- a/www-client/vivaldi-snapshot/Manifest
+++ b/www-client/vivaldi-snapshot/Manifest
@@ -4,3 +4,6 @@ DIST vivaldi-snapshot_5.2.2623.12-1_armhf.deb 78912876 BLAKE2B a598aa40aa8c0ba02
 DIST vivaldi-snapshot_5.2.2623.16-1_amd64.deb 87793080 BLAKE2B d607ba010cf78523a96d9d2a440b5b083bbf5a4f84f2cafe35518ff83eed7e115a06b473673d8d2507930e1193e267da9068b429ef62f53d6647431a8985e14b SHA512 e42e9d5e800eebf7b940eb99183172100501a33f78dc65fd9113d8d64f744c064aebac746448e45a9b66c2a5aae56f8bf1a66f09de55918bc53ba98b25e47da4
 DIST vivaldi-snapshot_5.2.2623.16-1_arm64.deb 83024488 BLAKE2B eccc1875762512bff9bba56f69734ec42f9fb3eb689175d0f0082b578081cc4a1fece4c0c18c3a8236eed67beaeb67369ee55240b8b576c393ce41ee8fb77910 SHA512 1c7cb93680da4ad96fd0ec9c0984089627cc8b326e19e1978f45fe64a4f2bdf546b6651c2d603bb555c6bc2c757bd41aa2a59cf6ccf47cf96ac9810751b1b974
 DIST vivaldi-snapshot_5.2.2623.16-1_armhf.deb 78920364 BLAKE2B 5cef183fdedb4a0709b8800a5f70727e5a1a24db5900a1f13ccf3eaea48b070baeadee1c2ac9f49ac25f9261b9b15e3c82fe63c0f39ef7691d5e038adab62124 SHA512 fca26fdbe6737211719cfba36b5fe91d00e289d72ea2a1865e1dc491f9a6f4bb84bdc029317e561f4bfc990675b0a9ed85126692709f7d0f879987b8160b36cb
+DIST vivaldi-snapshot_5.3.2636.3-1_amd64.deb 87807792 BLAKE2B ba3094e84a21e3231d10d607f55dce82ccd77d2912f5b032d20275a91e37d9222031940959b3c8eebeea68a15671dfe5812d4681ec8929fc1649868aa45da3f4 SHA512 0e2b1d4582d47457df6f4c46f946c8176bf4079315fb8baa2028c6d52781bd0c64144b47955564cdebb23d96bf8a8c0cf7adc49d9336ab92a7e184be3eadbfd4
+DIST vivaldi-snapshot_5.3.2636.3-1_arm64.deb 83034216 BLAKE2B 3aea8798e78d26b487f9a5cd4df0ece9f8f86ade8b2e0d1f0c6eed595e00ab9c247629c77b6f41ce7b37ff4c170872e540f7fd22bd6fae31c5de35d6756cda89 SHA512 1abe49eb86e58ed22e6fbe6e15b21a7b2ce028157a3d9d0dac6ee69d19cbe1097d1cb6fa4fe5aa99de4cd89acb3d5634200c89209715a055d6dfe9cab552b36f
+DIST vivaldi-snapshot_5.3.2636.3-1_armhf.deb 78950908 BLAKE2B 3b5dd3cfd31c726b303053698ec05c2a04aea61c11b116da6acf44093fec3fa05bce89ae6bda58e7a2053228c7dd7698ef300922fcf41bc6572ee604fe31c39c SHA512 affb4d59c663d6b313ecfa569905b421314933cf70a48bb307173b190ddfa483a1f5f70bcb7602fc2510b5b817b6439a3019b666c758267899fd76bb96d95deb

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