From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1418891-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 9DE7A158094
	for <garchives@archives.gentoo.org>; Sat, 16 Jul 2022 15:28:23 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id A7E72E0F27;
	Sat, 16 Jul 2022 15:28:22 +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 763A9E0F27
	for <gentoo-commits@lists.gentoo.org>; Sat, 16 Jul 2022 15:28:22 +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 2429A340D0A
	for <gentoo-commits@lists.gentoo.org>; Sat, 16 Jul 2022 15:28:21 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 605127F
	for <gentoo-commits@lists.gentoo.org>; Sat, 16 Jul 2022 15:28:19 +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: <1657985175.585389fcb106fc5f50b501a55f23ac7addcb4985.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.4.2737.3.ebuild
X-VCS-Directories: www-client/vivaldi-snapshot/
X-VCS-Committer: chewi
X-VCS-Committer-Name: James Le Cuirot
X-VCS-Revision: 585389fcb106fc5f50b501a55f23ac7addcb4985
X-VCS-Branch: master
Date: Sat, 16 Jul 2022 15:28:19 +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: 0ab74e10-d180-40f1-8269-d395ebce6d8e
X-Archives-Hash: 2191f7a5f288020a5e6d7dba53fa02a7

commit:     585389fcb106fc5f50b501a55f23ac7addcb4985
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 16 15:26:15 2022 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sat Jul 16 15:26:15 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=585389fc

www-client/vivaldi-snapshot: Add version 5.4.2737.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.4.2737.3.ebuild             | 206 +++++++++++++++++++++
 2 files changed, 209 insertions(+)

diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest
index d21573ace3fe..191cdcef30fe 100644
--- a/www-client/vivaldi-snapshot/Manifest
+++ b/www-client/vivaldi-snapshot/Manifest
@@ -4,3 +4,6 @@ DIST vivaldi-snapshot_5.4.2722.3-1_armhf.deb 88293552 BLAKE2B eafb651f183cb0bd49
 DIST vivaldi-snapshot_5.4.2729.2-1_amd64.deb 97527576 BLAKE2B 7428ace8ec7c82db8499cfb95a282ac0f352e81a5f832cc0443e428959a541a58959197a5a8f219e78c355b3cfd9d271ebcd84ac59247e09578ab4a6bb1bd498 SHA512 ddbe9f0565dce6513409d28be5a1714aee4f67baf2f96404f49207015c75aa91b3427dbaed2493dfaac0cd28503a3cedb9724ce7cf6da6ec76b4ab3794011b1b
 DIST vivaldi-snapshot_5.4.2729.2-1_arm64.deb 87780576 BLAKE2B ba1fad80c7667ae9a6b2bd9cbb5e0897015cf499f69e97472a75dd56ca9d0db98d584e52b5b5bf7faca22a2cb7bbc29538471c088f25de6b369ff847d9a98c10 SHA512 57552e93e085dd1e1362ebe4a34d6b87fd743ff5954de9be41d44e886cd27375ee973311e3c03e49c35ee4749436dacb1e107919410058a8b4f8d0318777dc11
 DIST vivaldi-snapshot_5.4.2729.2-1_armhf.deb 88331108 BLAKE2B 3908fb7d32579bdc2bce6464ed76f8ced11ca926dca80470337e4808cab4d915dcb6e89867960866a27ba2c84bdf50e539a5a970a48828dc306949bb816c8e37 SHA512 077ef93567bf3a01ab02ddb15be72b1da2df657274cc4904c724d0ce86847b7fe315bb295abd77faa96f8ac4f6bbefdea5aa6064d887906278bb05e9a2b410be
+DIST vivaldi-snapshot_5.4.2737.3-1_amd64.deb 97589592 BLAKE2B 47dcdd693e6f3291ae5a64e6ee8b30657130ac2da0dc257bc997707772246ffeac5a28f20127889921b952caa8baf1f34abc48da6b62366c2ce437bff9e6860c SHA512 391ed45abfed86f653c4a6f7bd1c4b24278aa64b8a1718eeee4444828594b5690a65de397c3b1028bdda2c4fdea7555a5cc7cb70ce952476b5267dc471a9183e
+DIST vivaldi-snapshot_5.4.2737.3-1_arm64.deb 87862660 BLAKE2B c5ec27cd6dc67e52b91b11cdbccb53f3f7ae7cf4a91a2d3357220345e082e0f86b7a39b9f398f981b654b80b791f7025c0fe81b4dcab85ca0f4a22a1668db60b SHA512 1aa917f367252bb4d559e420cf73dad47491e0fb51706c3a5b90781a76f6caccf7aac9904220ff995f87c730cf38dc3672824c0f3c405c7c62f75ab13eb5fe44
+DIST vivaldi-snapshot_5.4.2737.3-1_armhf.deb 88363248 BLAKE2B c0bed76cb719e47c9ef62443ff9b7f2fd9e5e1b2b4ced9f3816022128dc5497a36e2e5a2b3660905f03c0173d280eede07c2c4ad93e673290ea25ff30a1a6f1a SHA512 a3a5c2259275c9e7582cd08544ea2f870962f1a5c8556a1715c1e12b8a9864440412def463bcdc2c6f22fddde104db1da5b1b0bb5439262c8509038bb8b49142

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