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

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

index 01271a0f2c6e4ec01caadc90c3924fa283413a99..7b9399606fca862cf3845237c22565ecb2ad69a9 100644 (file)
@@ -2,3 +2,5 @@ DIST vivaldi-1.7.735.46_p1-amd64.deb 47603688 SHA256 bb15313f9d7f17bc135b5a41df0
 DIST vivaldi-1.7.735.46_p1-i386.deb 47903366 SHA256 0aada8e99560c60d0a49ee3ff8ef1c5e38e2ae8bf1f7aa59b72b5871ad64b1c6 SHA512 004a81181165c9f0704929b3c377fafa25e177e005e187affe47265bede9d761dcf8894c43bd1b94832b36d14c7468a4bbf0b767036cd34d38063b4c147c889f WHIRLPOOL 6883686a0115f9cec6d7e8b41b313aadec29bb437ac1a3c4839ac6843a85ed1455756aa87ea20a25b3031f894ecefc56b7034086622babb924c05627f799c756
 DIST vivaldi-1.8.770.50_p1-amd64.deb 46970660 SHA256 361c6681cd27ce64ffa6f34a98f13e053ce6fd31ac4c84e7c4e40b6de0a6144f SHA512 525cee06fc02d088c1ba9507dc53d56f51fe540bc6be9f96e974c2e3e25643adb1d271e2af6656338bdd264b9bd07804bd14b2403dc1c17450eb6c5a2f4cae1a WHIRLPOOL af69ae11bb7a31782e885bb538b4ba21638bacee24928fdfb5a802fe9d341d4dc485f760260833ffe94dec97bf33661d2c3c21fb4855ed51cd93319120b81869
 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
diff --git a/www-client/vivaldi/vivaldi-1.8.770.54_p1.ebuild b/www-client/vivaldi/vivaldi-1.8.770.54_p1.ebuild
new file mode 100644 (file)
index 0000000..e1012c4
--- /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
+}