From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1062063-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 E34F2138334
	for <garchives@archives.gentoo.org>; Thu, 13 Dec 2018 12:44:59 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id BC293E0D5F;
	Thu, 13 Dec 2018 12:44:58 +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 7CF96E0D5F
	for <gentoo-commits@lists.gentoo.org>; Thu, 13 Dec 2018 12:44:57 +0000 (UTC)
Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84])
	(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 88A87335C5D
	for <gentoo-commits@lists.gentoo.org>; Thu, 13 Dec 2018 12:44:54 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 5A93E4E3
	for <gentoo-commits@lists.gentoo.org>; Thu, 13 Dec 2018 12:44:52 +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: <1544705087.8ca67091f652164d14772562f75416f34930f021.jer@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/vivaldi/
X-VCS-Repository: repo/gentoo
X-VCS-Files: www-client/vivaldi/Manifest www-client/vivaldi/metadata.xml www-client/vivaldi/vivaldi-2.2.1388.34_p1.ebuild
X-VCS-Directories: www-client/vivaldi/
X-VCS-Committer: jer
X-VCS-Committer-Name: Jeroen Roovers
X-VCS-Revision: 8ca67091f652164d14772562f75416f34930f021
X-VCS-Branch: master
Date: Thu, 13 Dec 2018 12:44:52 +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: 9f9df314-eb5c-41d7-9ea5-6a92caf45206
X-Archives-Hash: 9813127c907e077f17d17f39c6a9d71c

commit:     8ca67091f652164d14772562f75416f34930f021
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 13 12:30:26 2018 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Thu Dec 13 12:44:47 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ca67091

www-client/vivaldi: Version 2.2.1388.34_p1

Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>

 www-client/vivaldi/Manifest                      |   3 +
 www-client/vivaldi/metadata.xml                  |   6 ++
 www-client/vivaldi/vivaldi-2.2.1388.34_p1.ebuild | 128 +++++++++++++++++++++++
 3 files changed, 137 insertions(+)

diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest
index d4900ecfed9..1b5d04d46ca 100644
--- a/www-client/vivaldi/Manifest
+++ b/www-client/vivaldi/Manifest
@@ -1,3 +1,6 @@
 DIST vivaldi-2.1.1337.51_p1-amd64.deb 57309970 BLAKE2B a7d959e8d30135d8cad24b00e588dd287051c412b4dde0ee519640fff4c856c61fe0b902a49e4f75494bd597b84173ce394c75c2c7f95f5c6fb532d11d43de46 SHA512 657d7475e25a31da5aa913317319768a0ed287d991cbbef0a35a2e09e351c9b18725e5195ebc4239b327460478efbf696385fd7fbf339da6726d4b56720547dd
 DIST vivaldi-2.1.1337.51_p1-armhf.deb 50271970 BLAKE2B 4ed80e311df652ff38944a4b266a3751ab3c8815ab0003de03ad8956edcb65f7ebc23b857aae5b11341baf8a250f6522ee01335081fd2f52f48af92f4130f328 SHA512 099ecd837a91a44e5f6b32f7c10492fd9798b85485e45aee892735ba2d5f9a5c36ca9df297045e01a6dd016562aaa7b8dea84a15117b750fd49dbaab6298958c
 DIST vivaldi-2.1.1337.51_p1-i386.deb 56271752 BLAKE2B 8bbb8eef12db0cc6f4eea0238846610bc2d94630ca4eda0745caf139dfe625c67a1edc88b2aee6d4e3ccf34a0fd1cc71b8fd0246e404ba2ffc3a03e47030f32b SHA512 c471923ec7db60eab0b9c27cbd1cbd6e3a557e024378144f034613c73a4160550c17d35ad168bd693abb2cfb3b77433ac13212243d51e99da574be3523b0d41d
+DIST vivaldi-2.2.1388.34_p1-amd64.deb 58072920 BLAKE2B 7132b067826031deb0bf3e813df5ab3c87fe95b7fae63f75435a2e29bd64d4398d8a6a5abb94e6ccdda5e86ec81b8cffede00bdc05475f01288d93e8e297793d SHA512 ead8a250e70ad1387453628bfef2bdfb12717f1e365279163781fe2fe1b4c57574965f9627af50e2289c6c91d5a8d95f4335fd1136a3b24a04aa57c28ff8267a
+DIST vivaldi-2.2.1388.34_p1-armhf.deb 50925314 BLAKE2B 7d37efcc3b4263069e5a6c606975d6b3c918789a74a4ebe1dae28e39a8d9f86fa10ed63804c4afedfa753bfb3d4dae3e663f20b50fad6019b5faf7a926c679b7 SHA512 5a51d542334b5d14cc1d2a1d6ad5262a447c831925efdfdacd238beb6ed315afad949d2afef6648ff22d57ba70e95b07b92efd9275e8b499bc0b67d7469efbef
+DIST vivaldi-2.2.1388.34_p1-i386.deb 57000582 BLAKE2B cd2589c0923fd1eb026a1fe0f3a6090715c410a2b5f0a13a18bf1d2ec63feccc5f068b8a7caef1d80d257de6d28d407238030e6e12fee59a9b3d93f5e4871455 SHA512 7d9b72888ed6675da3d602ba83d26b8bd6f943383f415a266b08475b20fc037b86d44e3f2042245b6891b4da2c3d45e0b069af1469bf2d304cddfb5798a7f948

diff --git a/www-client/vivaldi/metadata.xml b/www-client/vivaldi/metadata.xml
index a8fb4331294..05ce0892a6a 100644
--- a/www-client/vivaldi/metadata.xml
+++ b/www-client/vivaldi/metadata.xml
@@ -5,4 +5,10 @@
 <email>jer@gentoo.org</email>
 <name>Jeroen Roovers</name>
 </maintainer>
+<use>
+<flag name='l10n_es-PE'>Spanish, Peru locale</flag>
+<flag name='l10n_io'>Ido locale</flag>
+<flag name='l10n_jbo'>Lojban locale</flag>
+<flag name='l10n_sc'>Sardinian locale</flag>
+</use>
 </pkgmetadata>

diff --git a/www-client/vivaldi/vivaldi-2.2.1388.34_p1.ebuild b/www-client/vivaldi/vivaldi-2.2.1388.34_p1.ebuild
new file mode 100644
index 00000000000..89ec9f894b9
--- /dev/null
+++ b/www-client/vivaldi/vivaldi-2.2.1388.34_p1.ebuild
@@ -0,0 +1,128 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+CHROMIUM_LANGS="
+	am ar be bg bn ca cs da de el en-GB en-US eo es es-419 es-PE et eu fa fi
+	fil fr fy gl gu he hi hr hu hy id io is it ja jbo ka kn ko ku lt lv mk ml
+	mr ms nb nl nn pl pt-BR pt-PT ro ru sc sk sl sq sr sv sw ta te th tr uk vi
+	zh-CN zh-TW
+"
+inherit chromium-2 gnome2-utils multilib unpacker toolchain-funcs xdg-utils
+
+#VIVALDI_BRANCH="snapshot"
+
+VIVALDI_PN="${PN}-${VIVALDI_BRANCH:-stable}"
+VIVALDI_BIN="${PN}${VIVALDI_BRANCH/snapshot/-snapshot}"
+VIVALDI_HOME="opt/${VIVALDI_BIN}"
+DESCRIPTION="A browser for our friends"
+HOMEPAGE="https://vivaldi.com/"
+VIVALDI_BASE_URI="https://downloads.${PN}.com/${VIVALDI_BRANCH:-stable}/${VIVALDI_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/${VIVALDI_PN}.desktop > "${T}"/${VIVALDI_PN}.desktop || die
+	mv "${T}"/${VIVALDI_PN}.desktop usr/share/applications/${VIVALDI_PN}.desktop || die
+
+	sed -i \
+		-e "s|${VIVALDI_BIN}|${PN}|g" \
+		usr/share/applications/${VIVALDI_PN}.desktop \
+		usr/share/xfce4/helpers/${VIVALDI_BIN}.desktop || die
+
+	mv usr/share/doc/${VIVALDI_PN} usr/share/doc/${PF} || die
+	chmod 0755 usr/share/doc/${PF} || die
+
+	gunzip usr/share/doc/${PF}/changelog.gz || die
+
+	rm \
+		_gpgbuilder \
+		etc/cron.daily/${VIVALDI_BIN} \
+		${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
+
+	eapply_user
+}
+
+src_install() {
+	mv * "${D}" || die
+	dosym /${VIVALDI_HOME}/${PN} /usr/bin/${PN}
+
+	fperms 4711 /${VIVALDI_HOME}/${PN}-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
+}