From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1437191-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 36E23158094
	for <garchives@archives.gentoo.org>; Sun, 18 Sep 2022 14:08:06 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 458E6E0866;
	Sun, 18 Sep 2022 14:08:05 +0000 (UTC)
Received: from smtp.gentoo.org (dev.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) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 2FE39E0866
	for <gentoo-commits@lists.gentoo.org>; Sun, 18 Sep 2022 14:08:05 +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 5ED2C340DFC
	for <gentoo-commits@lists.gentoo.org>; Sun, 18 Sep 2022 14:08:04 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id A5FEF5DE
	for <gentoo-commits@lists.gentoo.org>; Sun, 18 Sep 2022 14:08:02 +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: <1663509995.2edfad3e8b91ef73a3cfe1b2788fd9ddb744b667.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.5.2797.3.ebuild
X-VCS-Directories: www-client/vivaldi-snapshot/
X-VCS-Committer: chewi
X-VCS-Committer-Name: James Le Cuirot
X-VCS-Revision: 2edfad3e8b91ef73a3cfe1b2788fd9ddb744b667
X-VCS-Branch: master
Date: Sun, 18 Sep 2022 14:08:02 +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: b4436d62-2fde-4188-baab-ae083ac1e829
X-Archives-Hash: ef11be2b45d4512fbe8a82b965fd79f6

commit:     2edfad3e8b91ef73a3cfe1b2788fd9ddb744b667
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 18 14:06:35 2022 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sun Sep 18 14:06:35 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2edfad3e

www-client/vivaldi-snapshot: Add version 5.5.2797.3

Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 www-client/vivaldi-snapshot/Manifest               |   3 +
 .../vivaldi-snapshot-5.5.2797.3.ebuild             | 206 +++++++++++++++++++++
 2 files changed, 209 insertions(+)

diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest
index ef92ef6955c0..dfaf1dc69735 100644
--- a/www-client/vivaldi-snapshot/Manifest
+++ b/www-client/vivaldi-snapshot/Manifest
@@ -4,3 +4,6 @@ DIST vivaldi-snapshot_5.5.2770.3-1_armhf.deb 88366040 BLAKE2B 912f480fce94b1e7a7
 DIST vivaldi-snapshot_5.5.2794.3-1_amd64.deb 100980824 BLAKE2B 50841bef2fce40a26f3b16e75cb3bb17b8a1c66ce3516c736177c48abc49ae4cdd432ef76e9b2914286427235712ff1865a7e58bd493bbb7a915cdd7dffacb85 SHA512 5c48045fc82d4c75ec3f12679fff5322ce6039d5f3890244d4e2b5fa9965cf285df9f29dd9825bd780a045ce61c432435ad61fa0d9178c97d98920570f34b714
 DIST vivaldi-snapshot_5.5.2794.3-1_arm64.deb 90812924 BLAKE2B 8f3d6ecc8216d4367399b601d4ae7703b710ffef8cc7ed2597f105e3b6b2fb2e27bd0730206ed934b4d0cae09a2e0dc4588383e4c4158f2ef982e500e033a32d SHA512 fbd141e95d007c0d94dc22fe4d538a02ccddc46656dbc37c02b8d2be39b1d7c9653b8c3eac51587144815b2ed30e61dc1a5d96ddba30563212f883c9cf085544
 DIST vivaldi-snapshot_5.5.2794.3-1_armhf.deb 90163872 BLAKE2B e07a2654d3d301481ee4c38752bfd36abc6479170db7c25fd3de919af354cf4305ce98a4f54e893b333dfb0388fdfa588c6eb28cd6549320a96db6b789fa15b5 SHA512 01c4bbb8a6dd2578263ba25f03684922f788b3af7e977b4db88870c94772f65a4aee1a9356f4f0a608d4b681f52db923c6682f18836a5eaa677713d70f9cc913
+DIST vivaldi-snapshot_5.5.2797.3-1_amd64.deb 100997108 BLAKE2B 20fad320d40838db70738b97ee677b95557811239cabc986879cb28cb182cd4bf29e6634a8b139ea3dfe806b45440b1f72b34383b7f4afc058c443da32267561 SHA512 cb1898cd9dee452553c360b06a848608cf77353dc3bdedaf8700acdbcbebadd1cdbe75a20d0e5b41bd269e7e6463bacf5b2dfb722bf82ca4e1d353d06c070b5c
+DIST vivaldi-snapshot_5.5.2797.3-1_arm64.deb 90833996 BLAKE2B 927900bb5617bfe5d1c69f527bac7e9c6bf7d4eb9486d124e12f77224b4252d25665399fe74640bdde2675f875b326128b4de41f57574eb80510f80ede33c221 SHA512 ee11184cde33dee8692984f815c80fe93b7b208216eab6f2413e3dad14dc00b34181f104d07b9761f8a9085b3a3e175ccd645f55cee3ec949e1d5598a7a08a65
+DIST vivaldi-snapshot_5.5.2797.3-1_armhf.deb 90165832 BLAKE2B 40569e16df20338c743aeacf893089315d65da234f8f7c8c9f0a1cfe851f1a6c00edd5bc7f4b13d0c11a89371b6db452047ac82277dd6b8d53a21a36364962af SHA512 a29f3e4dfff60a7618610bc31fef0324b9a6cc9b75c12f9d4f9c0ec1754a4062272f69777bad17dd9d08eb44b71dde439b51d04b0ce8dc7aeacdcb1eee6ca01b

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