www-client/vivaldi: Version bump.
authorJeroen Roovers <jer@gentoo.org>
Fri, 7 Apr 2017 16:46:10 +0000 (18:46 +0200)
committerJeroen Roovers <jer@gentoo.org>
Fri, 7 Apr 2017 16:47:02 +0000 (18:47 +0200)
Package-Manager: Portage-2.3.5, Repoman-2.3.2

www-client/vivaldi/Manifest
www-client/vivaldi/vivaldi-1.9.804.3_p1.ebuild [new file with mode: 0644]

index 7b9399606fca862cf3845237c22565ecb2ad69a9..d845a1a0d59b50b3486d592db1d0956fb2dac6d4 100644 (file)
@@ -4,3 +4,5 @@ DIST vivaldi-1.8.770.50_p1-amd64.deb 46970660 SHA256 361c6681cd27ce64ffa6f34a98f
 DIST vivaldi-1.8.770.50_p1-i386.deb 47500220 SHA256 a224c5c227522cdd776af0993e47251fd85f75a216148683f2241d36fda0fe79 SHA512 b22a15576480d7e603b9b374be7a33adf8a9b1d9dcffdd6bfb7bd2500ab78f1cbf17bd1345164f5159a07427418d80fb4b457636a8782963b26745ecffe85d2a WHIRLPOOL 0ae5382cdff023466012448977c8cd12e52ad3d3f6a7fd162e4ed9754c1dda01c9005d1b638db2b0c2b1848336a477af98c0af1288548d52d03610f5737315d0
 DIST vivaldi-1.8.770.54_p1-amd64.deb 46952952 SHA256 068c27c96e32dd42ec8541f50f4de7de18c9a330027030a1ec1988c382e70740 SHA512 75218e3f1f30d061b78c97d76cd0396bcf41f9260d6d6b510dc9a902da831bb73c5f3c3d564e94ee8675004aa08b0be1b87e9b839144a34a2e20a3c1cdc56b0a WHIRLPOOL a226f9bc15f4f7af1e80fd304ce6e43758de0728b8d78a08e99a0320bb3428a87c9be0ab4e8c8cd14a32d138adc1f94688df8661eca58107577ae84fef925ffa
 DIST vivaldi-1.8.770.54_p1-i386.deb 47531814 SHA256 233f8e8133ed9734d6b13c4ddade5f4375d7b9bc0c6d94aca2722bd4dbd85be2 SHA512 6ed446da95a0fb69d7dbeccc2e402eadc0f09352f601592fa4cbc4fc618a356e353f3f072acdd4fde6993a9d8bebe6c12dcb85bae28806a6c11a153319cc7d91 WHIRLPOOL c8eef49fc732e0d78757223fbe80171216660ef04efecdd272b596cb8029b4f8bb6b6c0f0b67bc5167dae59b3703f98fa04d65567d6c9ce3fc211f1ab718a636
+DIST vivaldi-1.9.804.3_p1-amd64.deb 48327278 SHA256 069d45a441ce05ef7f27eb486a860d4cbd01535765ccda5c373c824f7615a736 SHA512 394e829a5a86567c97035f2a3f9311d48b9cb325888eceb6bb485b6d920e57cd108b3d4ecdc407f16981c12b2687826e2bb675ef3b76b5049cf711212c5360e8 WHIRLPOOL 029b21541dd7f85d6dcf3254c03c13f402f1e25385a4e8b8e1408657532d053a6803b378a808dad1217b174d255d8ea7f32945f8f9499ce9b25368cd77e5ba41
+DIST vivaldi-1.9.804.3_p1-i386.deb 48941644 SHA256 cd9c5a7e08cf7fe19eef8ca2f4eabccd57dcfa9cb9c6d62de961da66e639d9ad SHA512 f367f92dba5c8b429e75b61acd73f8719a69120d386309f902313de0d7d3400cd3a672e33752bcd87f4df12ec25e024a7303879cf19f0452ca595826e2f10b9c WHIRLPOOL df05347e0657f7bd497ecb3775e209169122647922ed9e5761c1c7c49b70072c3b2e430f96808d0a910cf154fca955fe1affd2b3e0359e2ee729205cb35537bf
diff --git a/www-client/vivaldi/vivaldi-1.9.804.3_p1.ebuild b/www-client/vivaldi/vivaldi-1.9.804.3_p1.ebuild
new file mode 100644 (file)
index 0000000..5d07a6a
--- /dev/null
@@ -0,0 +1,115 @@
+# Copyright 1999-2017 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 multilib unpacker toolchain-funcs
+
+VIVALDI_BRANCH="snapshot"
+
+VIVALDI_PN="${PN}-${VIVALDI_BRANCH:-stable}"
+VIVALDI_BIN="${PN}${VIVALDI_BRANCH/snapshot/-snapshot}"
+VIVALDI_HOME="opt/${VIVALDI_BIN}"
+DESCRIPTION="A new browser for our friends"
+HOMEPAGE="http://vivaldi.com/"
+VIVALDI_BASE_URI="https://downloads.vivaldi.com/${VIVALDI_BRANCH:-stable}/${VIVALDI_PN}_${PV/_p/-}_"
+SRC_URI="
+       amd64? ( ${VIVALDI_BASE_URI}amd64.deb -> ${P}-amd64.deb )
+       x86? ( ${VIVALDI_BASE_URI}i386.deb -> ${P}-i386.deb )
+"
+
+LICENSE="Vivaldi"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+
+RESTRICT="bindist mirror"
+
+S=${WORKDIR}
+
+DEPEND="
+       virtual/libiconv
+"
+RDEPEND="
+       dev-libs/expat
+       dev-libs/glib:2
+       dev-libs/nspr
+       dev-libs/nss
+       >=dev-libs/openssl-1.0.1:0
+       gnome-base/gconf:2
+       media-libs/alsa-lib
+       media-libs/fontconfig
+       media-libs/freetype
+       net-misc/curl
+       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
+
+       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/vivaldi.png || die
+       done
+
+       pushd "${VIVALDI_HOME}/locales" > /dev/null || die
+       chromium_remove_language_paks
+       popd > /dev/null || die
+
+}
+
+src_install() {
+       mv * "${D}" || die
+       dosym /${VIVALDI_HOME}/${PN} /usr/bin/${PN}
+
+       fperms 4711 /${VIVALDI_HOME}/${PN}-sandbox
+}