From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1691752-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 (4096 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 638841581EC
	for <garchives@archives.gentoo.org>; Wed, 20 Nov 2024 23:06:43 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 3C9B9E080E;
	Wed, 20 Nov 2024 23:06:42 +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))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 1B42EE0805
	for <gentoo-commits@lists.gentoo.org>; Wed, 20 Nov 2024 23:06:42 +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 4F0AF33BF36
	for <gentoo-commits@lists.gentoo.org>; Wed, 20 Nov 2024 23:06:41 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 83A9B1E04
	for <gentoo-commits@lists.gentoo.org>; Wed, 20 Nov 2024 23:06:39 +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: <1732143971.0c3050bb728763adfe9df1f5e9c690c814a9dc05.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-7.1.3527.3.ebuild
X-VCS-Directories: www-client/vivaldi-snapshot/
X-VCS-Committer: chewi
X-VCS-Committer-Name: James Le Cuirot
X-VCS-Revision: 0c3050bb728763adfe9df1f5e9c690c814a9dc05
X-VCS-Branch: master
Date: Wed, 20 Nov 2024 23:06:39 +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: 7739e373-2d6b-41b6-810f-b5cb67d40c7d
X-Archives-Hash: bd3d5ed26decf4c0f1a9b801098a8377

commit:     0c3050bb728763adfe9df1f5e9c690c814a9dc05
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 20 23:00:02 2024 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Wed Nov 20 23:06:11 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c3050bb

www-client/vivaldi-snapshot: Add version 7.1.3527.3

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

 www-client/vivaldi-snapshot/Manifest               |   3 +
 .../vivaldi-snapshot-7.1.3527.3.ebuild             | 226 +++++++++++++++++++++
 2 files changed, 229 insertions(+)

diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest
index 0d7ca18c972d..9ed7c550fbe1 100644
--- a/www-client/vivaldi-snapshot/Manifest
+++ b/www-client/vivaldi-snapshot/Manifest
@@ -4,3 +4,6 @@ DIST vivaldi-snapshot_7.0.3495.5-1_armhf.deb 113955392 BLAKE2B 913b20cd3722aef8a
 DIST vivaldi-snapshot_7.1.3510.4-1_amd64.deb 121045440 BLAKE2B d3cfd0e20228d1bf77ec42462ec58cf4888c0eb923ad5a6f7df86fb79b65666ecbf60f92f9adce04b31b78cce70789a26a4072982c36633c114bca2c924a1f69 SHA512 fe2464cf7b583ca6bbf2fa47060613667bc82d2ba2e54714c5189d534108af734afe5fc25ed9c4744e95593a3afaa6db115dc560c841f8d8c360157097690d80
 DIST vivaldi-snapshot_7.1.3510.4-1_arm64.deb 112938880 BLAKE2B f3931831317b918c43f9771fd454bdd09143e5e33e4d5a4236ef8c9c2aa8f911f393167c28ca6d663b7fc4a841dd8cbf0d0af2c5f834df5336840cbd5ae42c96 SHA512 cc5f8376d438be8159afcb384e7340be6f155f1c7a67492aa3f17776150e209cbdb8b984bb97a8974a54ae8ac4ceae0a08a82b5af0d0b3592e88cb669b76b425
 DIST vivaldi-snapshot_7.1.3510.4-1_armhf.deb 114060140 BLAKE2B 4984f711277bbe3127fe00f3f18a3c5984cafb68a6a127936a69bb45c587052e89fe2226e24545d03b61fb245f28a63b4c8c6739be450bea1e8cbc2543bab373 SHA512 c2eafc604cedb0e8dc00421ea0926dce5a523e9f678049565f6c74147acf963be04f5a64424dfec9c9dee2331cf52b07d112376711b18c2073ee8f3d0e50573a
+DIST vivaldi-snapshot_7.1.3527.3-1_amd64.deb 121007844 BLAKE2B aaad775ce4410d9774e96e309d5c37d75552aa533fbc2fb9a8d05482a75e9f078ef3691438089b0080202bfdce415a10e6d25ca2a383bdd56d1b89247f4e8e71 SHA512 cdd5818427dc25f3660e4e16019597ccd7229bb0d5e940852df1c7e5130fe22d94f5ade24c968534261ef9bef8913514e51286ca17b63c6ca07c3fc8a4683b6a
+DIST vivaldi-snapshot_7.1.3527.3-1_arm64.deb 112952768 BLAKE2B bed39c28f3b6029d78289f3c504de49310b5a9bcd4d3af3579bcfaba4f57f98ec6386d4df47efadeed1e736c5d5f88c8c346c5ec75655c99aa42f24395d4efb0 SHA512 22564448fff9707f1e8ed1e910db77040b83fb2f4f6e903694e1abee48278566a1c922182d412e5de92a14be6d9ea4f87850340996f5ea7ea663f461f4438356
+DIST vivaldi-snapshot_7.1.3527.3-1_armhf.deb 114104520 BLAKE2B 42140a4ba241014a12cfeab1dd00f4982bb74f031dc82f6a5e05f2c53236f8757e3f79d81351b4b71c86730e8ea6d078693e4f6d47d5e74818ff7c7ca6113e8c SHA512 134a7ff43e4e6e347444376d42bc498a7f2df48167f82cea1b204f646d565660da8feb94e073af8a1511e5d8a1093bec02ffe8b916103198aa01c0d2c3477bc4

diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-7.1.3527.3.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-7.1.3527.3.ebuild
new file mode 100644
index 000000000000..8063fc01d0e9
--- /dev/null
+++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-7.1.3527.3.ebuild
@@ -0,0 +1,226 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CHROMIUM_VERSION="128"
+CHROMIUM_LANGS="
+	af
+	am
+	ar
+	az
+	be
+	bg
+	bn
+	ca
+	ca-valencia
+	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
+	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 linux-info toolchain-funcs 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 )
+	arm? ( ${VIVALDI_BASE_URI}armhf.deb )
+	arm64? ( ${VIVALDI_BASE_URI}arm64.deb )
+"
+
+S="${WORKDIR}"
+LICENSE="Vivaldi"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~arm ~arm64"
+IUSE="ffmpeg-chromium gtk proprietary-codecs qt5 qt6 widevine"
+RESTRICT="bindist mirror"
+#REQUIRED_USE="ffmpeg-chromium? ( proprietary-codecs )"
+
+RDEPEND="
+	>=app-accessibility/at-spi2-core-2.46.0:2
+	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
+	gtk? ( gui-libs/gtk:4 x11-libs/gtk+:3 )
+	proprietary-codecs? (
+		!ffmpeg-chromium? ( >=media-video/ffmpeg-6.1-r1:0/58.60.60[chromium] )
+		ffmpeg-chromium? ( media-video/ffmpeg-chromium:${CHROMIUM_VERSION} )
+	)
+	qt5? (
+		dev-qt/qtcore:5
+		dev-qt/qtgui:5
+		dev-qt/qtwidgets:5
+	)
+	qt6? ( dev-qt/qtbase:6[gui,widgets] )
+	widevine? ( www-plugins/chrome-binary-plugins )
+"
+
+QA_PREBUILT="*"
+CONFIG_CHECK="~CPU_FREQ"
+
+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.
+	rm kmr.pak || die # No flag for Kurmanji.
+	chromium_remove_language_paks
+	popd > /dev/null || die
+
+	if use proprietary-codecs; then
+		einfo Bundled $($(tc-getSTRINGS) ${VIVALDI_HOME}/lib/libffmpeg.so | grep -m1 "^FFmpeg version ")
+		rm ${VIVALDI_HOME}/lib/libffmpeg.so || die
+		rmdir ${VIVALDI_HOME}/lib || die
+	fi
+
+	if ! use qt5; then
+		rm ${VIVALDI_HOME}/libqt5_shim.so || die
+	fi
+
+	if ! use qt6; then
+		rm ${VIVALDI_HOME}/libqt6_shim.so || 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$(usex ffmpeg-chromium .${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
+}