From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1029878-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 70B6E138334
	for <garchives@archives.gentoo.org>; Mon, 11 Jun 2018 21:23:29 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 968D2E0897;
	Mon, 11 Jun 2018 21:23:28 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(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 52E99E0897
	for <gentoo-commits@lists.gentoo.org>; Mon, 11 Jun 2018 21:23:28 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(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 E4F1B335C90
	for <gentoo-commits@lists.gentoo.org>; Mon, 11 Jun 2018 21:23:26 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id F31F42A1
	for <gentoo-commits@lists.gentoo.org>; Mon, 11 Jun 2018 21:23:24 +0000 (UTC)
From: "Jeroen Roovers" <jer@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, "Jeroen Roovers" <jer@gentoo.org>
Message-ID: <1528752155.fda3f9ba0be3f6e4aef2a2836a1f0a35ac9b60ef.jer@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-1.16.1206.3_p1.ebuild
X-VCS-Directories: www-client/vivaldi-snapshot/
X-VCS-Committer: jer
X-VCS-Committer-Name: Jeroen Roovers
X-VCS-Revision: fda3f9ba0be3f6e4aef2a2836a1f0a35ac9b60ef
X-VCS-Branch: master
Date: Mon, 11 Jun 2018 21:23:24 +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-Archives-Salt: 7be15c7e-deb7-476e-b825-96d232ce4802
X-Archives-Hash: 1432ec446f3eea640bd921299300f1b7

commit:     fda3f9ba0be3f6e4aef2a2836a1f0a35ac9b60ef
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 11 21:22:35 2018 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Mon Jun 11 21:22:35 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fda3f9ba

www-client/vivaldi-snapshot: vivaldi-snapshot-1.16.1206.3_p1.ebuild

Package-Manager: Portage-2.3.40, Repoman-2.3.9

 www-client/vivaldi-snapshot/Manifest               |   3 +
 .../vivaldi-snapshot-1.16.1206.3_p1.ebuild         | 117 +++++++++++++++++++++
 2 files changed, 120 insertions(+)

diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest
index 946180e62c5..b408c36702a 100644
--- a/www-client/vivaldi-snapshot/Manifest
+++ b/www-client/vivaldi-snapshot/Manifest
@@ -4,3 +4,6 @@ DIST vivaldi-snapshot-1.16.1183.3_p1-i386.deb 53694006 BLAKE2B 6ccea2dd2f6c53858
 DIST vivaldi-snapshot-1.16.1195.3_p1-amd64.deb 53983692 BLAKE2B 35d73cdb4f4a7e12adb8c42b27af1a1d04002463747038a5296f1299c7928d88af6875137582f1bdd62dfb53804d9257da27a645d327fb13cd2f8e436a2f07ea SHA512 771fdf4c6c6aa05d3b2a3d533e7b819da6f1a906d5658597bedb4b0fd4d0f17cbc5d72bbe3abf2b59efeedca5d232db38d99dd06b7086e5c31359d34d33e3452
 DIST vivaldi-snapshot-1.16.1195.3_p1-armhf.deb 47756024 BLAKE2B 51e9c4796d6d6e8ac1493e0ba9ddb7749f01bfc13dcd77cc07620b97431d2c5e13bb899315098ffbc40ad4036c7a3ee4d48d2e049c75ed2e5510b1107dc37f41 SHA512 202d1c9a3e8910c66229e549bebe9c33787b254aba7e9dcf8f6c2ca3deb7c58235580b9b7fd72dc7923b7b94170359a2ba5c60e89dc5299a6408712b2a904432
 DIST vivaldi-snapshot-1.16.1195.3_p1-i386.deb 53584334 BLAKE2B 4214406a36e5b34ccde7a88c873c7dade9a06641bbe22bd56218ac54f3f6150667be7fa9d7eb9f40961e6090c2dd6cb86286db61751091da99449863d87d1304 SHA512 ad86404b5c52199e55b8a6ba1764894a937af22a93f09184a2d07b72c256cbf39796cdfae2c005e2a8a21784ecfdcda223769692cc957e28a297691776895d89
+DIST vivaldi-snapshot-1.16.1206.3_p1-amd64.deb 54026030 BLAKE2B 8fe73fb90f43d1835afef932be441c915c8d8acd930b69abe3b2266331b788d34f7cb41f5d692f2f5161ae9c993ef2bb4985eff2fbd8de17cbe6f84962d76e33 SHA512 f9c220abc42ac73eb0e7042054cc0c70dff75e072abb0793e421c71c0655114faaa047619529e64186e75ecc3d5551dc4f1282dca1b0801ea8d01b1d3763e365
+DIST vivaldi-snapshot-1.16.1206.3_p1-armhf.deb 47758616 BLAKE2B e10a813393e78ed6645b1dda41ec742f275c881769ecc2576364c4c1f0d693959a39c2b924d9a1706a0f431e06ff7cb8f3717685a16b2533f30af739132a474d SHA512 18a1260854e3b8960c53f26239be67c60a87081241456167544c7ca39630cf840ee102093bd69156dce85983821048de71a89131cb4cf4c1b2b083e68d74ffdf
+DIST vivaldi-snapshot-1.16.1206.3_p1-i386.deb 53606248 BLAKE2B 89768824c38ec599d6ba72c918b67784c80c262229121b05ebf0cf22094673a96fb418b6ea825bd6bddd3df555c0911a43baddd4261f95eb7ea842f71192e11e SHA512 4facab8b7d56e6c093286e19b75b1afea9ff09cb93b31c6920641dd7fa5b7cd418295eadb01b9c90ea57ba8654b7605dba1002a8fbb0d8a8afb553e488753a58

diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-1.16.1206.3_p1.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-1.16.1206.3_p1.ebuild
new file mode 100644
index 00000000000..0b21131251e
--- /dev/null
+++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-1.16.1206.3_p1.ebuild
@@ -0,0 +1,117 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+CHROMIUM_LANGS="
+	am ar bg bn ca cs da de el en-GB en-US es es-419 et fa fi fil fr gu he hi
+	hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt-BR pt-PT ro ru sk sl sr sv
+	sw ta te th tr uk vi zh-CN zh-TW
+"
+inherit chromium-2 eutils gnome2-utils multilib unpacker toolchain-funcs xdg-utils
+
+VIVALDI_HOME="opt/${PN}"
+DESCRIPTION="A browser for our friends"
+HOMEPAGE="https://vivaldi.com/"
+VIVALDI_BASE_URI="https://downloads.vivaldi.com/snapshot/${PN}_${PV/_p/-}_"
+SRC_URI="
+	amd64? ( ${VIVALDI_BASE_URI}amd64.deb -> ${P}-amd64.deb )
+	arm? ( ${VIVALDI_BASE_URI}armhf.deb -> ${P}-armhf.deb )
+	x86? ( ${VIVALDI_BASE_URI}i386.deb -> ${P}-i386.deb )
+"
+
+LICENSE="Vivaldi"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~arm ~x86"
+RESTRICT="bindist mirror"
+
+DEPEND="
+	virtual/libiconv
+"
+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+:2
+	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]
+"
+QA_PREBUILT="*"
+S=${WORKDIR}
+
+src_unpack() {
+	unpack_deb ${A}
+}
+
+src_prepare() {
+	iconv -c -t UTF-8 usr/share/applications/${PN}.desktop > "${T}"/${PN}.desktop || die
+	mv "${T}"/${PN}.desktop usr/share/applications/${PN}.desktop || die
+
+	mv usr/share/doc/${PN} usr/share/doc/${PF} || die
+	chmod 0755 usr/share/doc/${PF} || die
+
+	rm \
+		_gpgbuilder \
+		etc/cron.daily/${PN} \
+		${VIVALDI_HOME}/libwidevinecdm.so \
+		|| die
+	rmdir \
+		etc/cron.daily/ \
+		etc/ \
+		|| die
+
+	local c d
+	for d in 16 22 24 32 48 64 128 256; do
+		mkdir -p usr/share/icons/hicolor/${d}x${d}/apps || die
+		cp \
+			${VIVALDI_HOME}/product_logo_${d}.png \
+			usr/share/icons/hicolor/${d}x${d}/apps/${PN}.png || die
+	done
+
+	pushd "${VIVALDI_HOME}/locales" > /dev/null || die
+	chromium_remove_language_paks
+	popd > /dev/null || die
+
+	epatch "${FILESDIR}"/vivaldi-snapshot-1.14.1072.3_p1-libffmpeg.patch
+
+	epatch_user
+}
+
+src_install() {
+	mv * "${D}" || die
+	dosym /${VIVALDI_HOME}/${PN} /usr/bin/${PN}
+
+	fperms 4711 /${VIVALDI_HOME}/vivaldi-sandbox
+}
+pkg_preinst() {
+	gnome2_icon_savelist
+}
+
+pkg_postrm() {
+	gnome2_icon_cache_update
+	xdg_desktop_database_update
+}
+
+pkg_postinst() {
+	gnome2_icon_cache_update
+	xdg_desktop_database_update
+}