commit:     48bc511fee19507ec44d27e18238e1c1639ecc8d
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Wed May 29 13:24:27 2019 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Wed May 29 13:26:49 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48bc511f

www-client/vivaldi: Version 2.5.1525.48_p1

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

 www-client/vivaldi/Manifest                      |   3 +
 www-client/vivaldi/vivaldi-2.5.1525.48_p1.ebuild | 124 +++++++++++++++++++++++
 2 files changed, 127 insertions(+)

diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest
index 21738923bdf..19319867f28 100644
--- a/www-client/vivaldi/Manifest
+++ b/www-client/vivaldi/Manifest
@@ -4,3 +4,6 @@ DIST vivaldi-2.5.1525.43_p1-i386.deb 58058192 BLAKE2B 
e2c5132a98d18a40d6e6605676
 DIST vivaldi-2.5.1525.46_p1-amd64.deb 59499752 BLAKE2B 
26aefb61f2798846932a2792cb9eb41368d66b053dce5f33d1fe27ca54f371a83fb65778e5c39296e0ecbb45bbac4f9a92078ade91ae5f8fc17ae13fd64facb3
 SHA512 
00bfdec91c5d48d998bf3826355e22b2fe885687772439cb26a05decb2adaf78e82ae943bbeeedb7c095a4120a9d65e75dbf91e8a570dd32c159ad86bb089c5d
 DIST vivaldi-2.5.1525.46_p1-armhf.deb 52882364 BLAKE2B 
b00660eba4732c6dc6f4d7eecd1e9c5bacaab6eb7c0542f50e21174a28e195f6e9e0ae21c71ed6dd93493ff8ca8d6efea2cb71ef905034655d65f679014fe667
 SHA512 
9ea77276100c9f91cf92eda35e70edc12c583566d25b9825247955c73ed7563b282cf9414b5c0881e715f35c01cdbcc646eb27d2425802cd550cff83f3a14f13
 DIST vivaldi-2.5.1525.46_p1-i386.deb 58061568 BLAKE2B 
318edfa183279179e7ade459a0155044307c876691dc0848ccee5bbf0599eff851607f4d943d391d62ec1a478b7ae4cd499ffc96d220ac5cf89639fe66d114b2
 SHA512 
46baf7ebbccd5be5a727b5ff5e7023a66a7e5185a097ed236a288b180e4b6f4347572ffe6464325569dea3815a5fc34a4c6abd7c9d8c2f8370d7f0133f436a2d
+DIST vivaldi-2.5.1525.48_p1-amd64.deb 59499592 BLAKE2B 
09f33e250dcbcead693760484a2444376ef52b705b729da84870a42d45cab6fb4e762900462714c51b037ae5d23bbff51c1744cfb6987a97b1a7c29bf240d69b
 SHA512 
ddcbe9c3d9f26cf6679cfdb6341b0fa991e1dba46b44ca8baf9bbcc7ea739e61eb61d2eac056ca98266e607b815f45cae7969bb39f3687bbc1fa219d9ba927bb
+DIST vivaldi-2.5.1525.48_p1-armhf.deb 52885016 BLAKE2B 
870b3dda45a8fb5f5ddc3a2543e7c1efc4979f4d193a1d5228cecf4fb270b8264042f7845081c6aa19f9f8ca557574b394180194895caea4718da418b57a7266
 SHA512 
a887cc0442d81c9e56d2e3e79b4e824348d7186bb09eda9512e75a4b6568fc6cc7cfbc815f72e1e9a0ef6091c99f99e69d9c5b9f8422cf91e1e462642f1ee92a
+DIST vivaldi-2.5.1525.48_p1-i386.deb 58071364 BLAKE2B 
00a4fdfefea9f85a5a0e406a5f741310509659f73137df83c89fa4dd3fe6ea8e5cae7f6003f99179e13b2154a86ed50530413686989bdc2b62556b6dc8a79625
 SHA512 
d4567413c7ef15bb33bf11a462a62d6a45c0f952b945ff5b476f8aa8c85bf48c9ea4e3dc0f099cba02c1aa6dcf16bef2e2b224dd922f4507247dd5cb09433257

diff --git a/www-client/vivaldi/vivaldi-2.5.1525.48_p1.ebuild 
b/www-client/vivaldi/vivaldi-2.5.1525.48_p1.ebuild
new file mode 100644
index 00000000000..69ed6a41d08
--- /dev/null
+++ b/www-client/vivaldi/vivaldi-2.5.1525.48_p1.ebuild
@@ -0,0 +1,124 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+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 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+: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/${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_postrm() {
+       xdg_desktop_database_update
+       xdg_icon_cache_update
+}
+
+pkg_postinst() {
+       xdg_desktop_database_update
+       xdg_icon_cache_update
+}

Reply via email to