Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/vivaldi-snapshot/
Date: Thu, 31 Jan 2019 14:36:13
Message-Id: 1548945365.b69f55defc7f5a11327ccbbeeb74786989963224.jer@gentoo
commit:     b69f55defc7f5a11327ccbbeeb74786989963224
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 31 14:34:16 2019 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Thu Jan 31 14:36:05 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b69f55de

www-client/vivaldi-snapshot: Version 2.3.1440.30_p1

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

 www-client/vivaldi-snapshot/Manifest               |   4 +
 .../vivaldi-snapshot-2.3.1440.30_p1.ebuild         | 119 +++++++++++++++++++++
 2 files changed, 123 insertions(+)

diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest
index b8e1a73b20b..b7fd1079159 100644
--- a/www-client/vivaldi-snapshot/Manifest
+++ b/www-client/vivaldi-snapshot/Manifest
@@ -2,6 +2,10 @@ DIST vivaldi-snapshot-2.3.1435.4_p1-amd64.deb 60053830 BLAKE2B a27077bff1f6c9efc
 DIST vivaldi-snapshot-2.3.1435.4_p1-arm64.deb 55518226 BLAKE2B fd0762af3c632b59a0784008e479fcf096d05943e9169019d4036367b5d52230e1e9754121c4cd09821a35e3604517e8f3f62921c8446fb42a421b489aed0d58 SHA512 dbeb57f4d603e1692a4c9f3e73d2d415f4a908872afc3d44703d50d3ddec3f3e9ca4e36c9f32c93f6b86facbec279e53f2e12d91d7d1dbd4793072ed1dad18a8
 DIST vivaldi-snapshot-2.3.1435.4_p1-armhf.deb 52637338 BLAKE2B 614f0c2c32b9fa9cafe44aae2971b11842fc07d9ebc78651c6824d5155cdbfc0d8f8f2f0e1a9b29baf1c1d13a66033535f22c17f51b10cef906a2666e1120b5d SHA512 c7724e82291c0c219b017d62bb3227115aea8ba2aa5227c30d6eca508c97e8324aa8bf5f979b418490519747f21602402c08cdf8f4f953c6e3cf887b82409d84
 DIST vivaldi-snapshot-2.3.1435.4_p1-i386.deb 58230554 BLAKE2B 32b11af7c021d8326b1d4924e1047060db24e04da6e943f070528db18425c9e4d0155740b94086efacadc97ec73e49495a0bcc1d9c2062239f240c25e8a05c2f SHA512 4694942262e79b2628e845ef94e16bc881015e0deb2bb93e5b25862e5f6fb4c2d6a1eefe013512c48de0c18e907efba8b8a545610b9e6c5eb73eb93b00c826d0
+DIST vivaldi-snapshot-2.3.1440.30_p1-amd64.deb 60082270 BLAKE2B 46f87ffcaf4037432a5a1dd84a4ea88392e2f1e822c746e3ae6d7085d7f71b271b3c785d4006021050c127ed675eec9707ea413f3eefcd3f69e7423cc3e1a078 SHA512 24966de38644f804bd7439f5bc15f143b889f4c7596a64608ad30491bb533dbc3610dda1b2db8c4eb88b3d52ce1015f0d2e0177bcdd877bcd07631109c3ffb60
+DIST vivaldi-snapshot-2.3.1440.30_p1-arm64.deb 55528562 BLAKE2B 67cf470363a74067253b88862436931bca147c259ce7b9d79d8ad590cd9a52d8972c4aae79b60ce409a2d920fdff5177e915a5faa4178a8891b3a5cb752b3ef6 SHA512 5eaab35442ce995d80638a8a4f253497840a0b760624f9660b7309634cc9bfbd75b99db4fc15e2ca186976ddcd0e27ca6535b5d137e4f472cdc3a6d559996b71
+DIST vivaldi-snapshot-2.3.1440.30_p1-armhf.deb 52627502 BLAKE2B c4a3fc76f0d94f1621eb6c85f46be71ca1c7dde71acddab5ec268f66b0a3cad50842efee869b9bd89137edd1646cc1fa4880b3c39013b8b63f5ba5dc62827196 SHA512 750eab86137c7e027bdee5399eef699021fd19d885f04b7f48aa5388c1ba53bee619fea859f3740efae70e34e1359e6daa10e4491b3669d7b284574058acafd7
+DIST vivaldi-snapshot-2.3.1440.30_p1-i386.deb 58219006 BLAKE2B 06bdb5586fbda14e6d71a8d4ee520b1570bf8a74c939cdf3dafe5f1089d2be2d3f10819416a2342242fefe383ae2f900dcdcaa484ebc8e3315081dd1435b58ef SHA512 ccb10b527bf7566fb8a161c7b51352c902bb241366e9d3c57436ead5d40dec5cc25bd8528b258f956dbed898f22d7cdbc9120b9c9836c485c193ba8f0de6a2d8
 DIST vivaldi-snapshot-2.3.1440.4_p1-amd64.deb 60081518 BLAKE2B 35c80dc7437febc019e5db3c1ba34217d8a4107c93cab64d44b07adaafc6505a18b14412ce1f08bda39d3045069d8e29573611190037e73d53686184b0ebcd82 SHA512 ea35cc1e3f39c484442a09d8be676308ac49b11e140eaddc2cdeb4ae1c5ef5cb41ef9ba6f13b1553e560479616fbfc502367d7fa6ac28326912cfab45ee34227
 DIST vivaldi-snapshot-2.3.1440.4_p1-arm64.deb 55537426 BLAKE2B e8d8cbe6594aaa98e694ccb86412314ab8f8a91ceaf7481a4dd42487d41ca3509895cbc81dc327ad89acfb7eddffb85815e9c082573966c5d69a2d9c9ab4005c SHA512 afb3f52a607abddeb7b2172775b72990a987560ef23c94f313bfc6af5fb2ba7555999b77c90b6117d9077b01fc3a9f4598f605630fff273df01dfaba434485e2
 DIST vivaldi-snapshot-2.3.1440.4_p1-armhf.deb 52643462 BLAKE2B da86e557518f69bbafe6c9214775ea5a74e3953eb03af6c05cea01f989ee0fabe2b6b3cc3eaf01428c661945ee57cef83a6284a4ef7ae4b1d8dd2f0be386d272 SHA512 ffb3bc7952d857ba39e9b2b1ebf977e09c7a268adaf94cd8eba030c7365d385320e8bc7afd7c3160b0de6f5edbb89220f80e13354f3b43e2864a3773f944a3ff

diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-2.3.1440.30_p1.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-2.3.1440.30_p1.ebuild
new file mode 100644
index 00000000000..91bde2d5746
--- /dev/null
+++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-2.3.1440.30_p1.ebuild
@@ -0,0 +1,119 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+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 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 )
+	arm64? ( ${VIVALDI_BASE_URI}arm64.deb -> ${P}-arm64.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 ~arm64 ~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+:3
+	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
+
+	gunzip usr/share/doc/${PF}/changelog.gz || 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_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
+}