www-client/vivaldi-snapshot: Version 3.0.1874.7_p1
authorJeroen Roovers <jer@gentoo.org>
Fri, 17 Apr 2020 08:06:05 +0000 (10:06 +0200)
committerJeroen Roovers <jer@gentoo.org>
Fri, 17 Apr 2020 08:06:14 +0000 (10:06 +0200)
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
www-client/vivaldi-snapshot/Manifest
www-client/vivaldi-snapshot/vivaldi-snapshot-3.0.1874.7_p1.ebuild [new file with mode: 0644]

index 7a2c67a40afa88fdf0cd3eb65bb79b0ca4a775f8..0fa6839081d67f653fee5888c9e1b52142585e34 100644 (file)
@@ -6,3 +6,7 @@ DIST vivaldi-snapshot-3.0.1874.5_p1-amd64.deb 68674000 BLAKE2B 6ac24c404f10ae736
 DIST vivaldi-snapshot-3.0.1874.5_p1-arm64.deb 61689396 BLAKE2B 3d504d916c8d2830ef7b584312f2ccdb178c440418f96f9ae3bcde2d174da5abe1b6376aa252275b400dbde2cbae695a0a7a6234f3682d56cb787424500c77b6 SHA512 715891f48924ee9ce2697e08929a382d195bbe5deec7ab96f739f70dfa171ba634e1a4169cabb92981ea294595ea21ebed3bb1113dd71cb12803089deab11ffa
 DIST vivaldi-snapshot-3.0.1874.5_p1-armhf.deb 61050016 BLAKE2B 465926e910958018acc259f71305d25c0a7a2995b819736b7c225ab29ff2ec9b90685e398bcd148574198f4b8ffd80e162d3c1524f9d7872fde7c3beafde35e8 SHA512 84ae1f1cc0c5125f05b1199d06f12fd74af6a5c9cfdc9611bca8c8cba26a2e455133631bdfa31e516613df0ebd85db236e641addc23d3835038e6b5c0464a560
 DIST vivaldi-snapshot-3.0.1874.5_p1-i386.deb 67358204 BLAKE2B e634e40aaccfa6f645e49dfcaeb36dc379d1f8e346d2cc8dc115de79748a580cc428931388c974087566e6d5368868d6500a10effd9b65f46633115eb07d74f4 SHA512 0f1fb2092ba65e86daf68a0498f3463b05e18b8a2b15f645d2ec120341b0c1acc31d21919961b89bdc57bb15d77065bd9652579f236c3c89266dda865dba3381
+DIST vivaldi-snapshot-3.0.1874.7_p1-amd64.deb 68839408 BLAKE2B 76614fcdc9aedb8fade0770500a285a9007ceecb6da3fb7a02eb2ce6f26f168dc441bad4e15fb91090c1d448323127ae99460be5ec70437c1ec0c3c8190118a8 SHA512 f05db6cdb0b98ff3f3e50da0bd0ee7c69fa35a3718a62b425263b74e655f449a0ea5c11f303c4cca6279da30e0d29f2857350e82328fd96b53a532973e2e07fc
+DIST vivaldi-snapshot-3.0.1874.7_p1-arm64.deb 61890660 BLAKE2B b4c36d23d26dcc412f7e5c015645a438883502489aa785bff08155e31f798f9501bde65c75885e7cb967962dcba5bf12e98ca2efd6fd917af6142fa113b3fdc1 SHA512 f78b2cf388ec16720067bb942942c2e4ad1eae6b5d8cffff5865f25341b8423d2be92c1ea2eaa88c39b7943a3b550b8034174da2b9f320aece836bd1ca0dbbd7
+DIST vivaldi-snapshot-3.0.1874.7_p1-armhf.deb 61222500 BLAKE2B 8e7910f90b21ba2bbdac3cc73736a247c71969dd7d6eda4815d899d1c7d901fbb1dee4e0634c8aca5acfcd5b37239b6538c74f5390df954d1311bc921d1debd7 SHA512 37ad4812311baa9c7f75331d0171f0db5c378d0db27b87163a3b2a6fbf21f792b4e0e5c574048e95f86e40d3480952af568632d984e849b547b8ff80c875226c
+DIST vivaldi-snapshot-3.0.1874.7_p1-i386.deb 67540264 BLAKE2B 34180b4bbff53173f09cc2fa11a601bbb9fecfeba3bf8bbe12b9aae1f8084540f804e54def3add4982ca077f94e81930a8e433dd095112b3ad2d5b015cc38999 SHA512 c88f9c93d7534ef1f64a3de1987ca369f925b552cd74eb3c36ceb1fbb0fe8237ecbe6a9fd7f9bc0e18defc062a42c84d6533075b319630547a7941c961dbd3af
diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-3.0.1874.7_p1.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-3.0.1874.7_p1.ebuild
new file mode 100644 (file)
index 0000000..db3613b
--- /dev/null
@@ -0,0 +1,116 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+CHROMIUM_LANGS="
+       af am ar be bg bn ca cs da de de-CH el en-GB en-US eo es es-419 es-PE et eu
+       fa fi fil fr fy gd 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_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} \
+               || 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() {
+       rm -r usr/share/appdata || die
+       mv * "${D}" || die
+       dosym /${VIVALDI_HOME}/${PN} /usr/bin/${PN}
+
+       fperms 4711 /${VIVALDI_HOME}/vivaldi-sandbox
+}
+
+pkg_postrm() {
+       xdg_desktop_database_update
+       xdg_icon_cache_update
+}
+
+pkg_postinst() {
+       xdg_desktop_database_update
+       xdg_icon_cache_update
+}