www-client/vivaldi-snapshot: Version 3.0.1874.3_p1
authorJeroen Roovers <jer@gentoo.org>
Wed, 15 Apr 2020 10:23:30 +0000 (12:23 +0200)
committerJeroen Roovers <jer@gentoo.org>
Wed, 15 Apr 2020 10:27:05 +0000 (12:27 +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.3_p1.ebuild [new file with mode: 0644]

index 87f18164e1f2bdadf7c22c56b942faf62886cbc4..b2131db16edf475d9df26cb1079cb78f54852113 100644 (file)
@@ -6,3 +6,7 @@ DIST vivaldi-snapshot-2.12.1874.30_p1-amd64.deb 68655580 BLAKE2B 4462af0c18065bd
 DIST vivaldi-snapshot-2.12.1874.30_p1-arm64.deb 61702056 BLAKE2B 192e4a145301a3ea0474c17c4a65c1a5a2d8a6faa46c6111cfcf9cf3c5244f32f35261536647aa67d983f7aaff26c737e4382ac1308f91f96c4cb4c6db489bd6 SHA512 7fc3fbfbdef408dbca3f5dd9eb8c3781106b12bf17845682b3990b6e2f2ec64628cc74ba7acb67c888bf9f6abc9a87e0b8d26f08c9eec3a3b2cbe0799857ec72
 DIST vivaldi-snapshot-2.12.1874.30_p1-armhf.deb 61035796 BLAKE2B 75864ccf5be068d4fd0a6575c689e3fef9c56cbfcaa1e57fb5623e950fdcb984919222fc59b52030fba7e07fe8f15bcfabe6d928fc2a0a37dee0392167484aa3 SHA512 7af887eccc75b987bb37a00a71968ccb0c8ed3e9d820a3183e874db135eda78f1ac01bdffeab1c3e72e5ffb8ec363eb4e3bde059d4ac6bd8e9f2fbc5f385b84c
 DIST vivaldi-snapshot-2.12.1874.30_p1-i386.deb 67353592 BLAKE2B c738ea2af79c5c31c91e1f2291b560edfe2102a550eacc6691ae73c580c2af04fc2e43eb91545372137fa9341914a3eb71c1d331896b574377ddc9f5da7f9dc9 SHA512 df276a0b3c46f856c81d64ef10855ffa9736edad5bd5d14fa06903b72adaf68250aff92cb9914dde7bb1885f08d2ffe2a43d44f837529b0750bb54d48e89c657
+DIST vivaldi-snapshot-3.0.1874.3_p1-amd64.deb 68618496 BLAKE2B 0c66d55d14fecde3faba7f0f9859a53231e3f53cd9fceccec084ed2957148bc5277c78c8b3717d3ff4ed5f4dc20fa12e82039474fff51acfca53f3a2a606f612 SHA512 4d0ee0acf2a493ac16fb2d602b71b7293728a59985f69668afc961e97163d5df03b10be8e8a0a9f2bb68fa3d549098874f45da584710810d418a36955cf0d449
+DIST vivaldi-snapshot-3.0.1874.3_p1-arm64.deb 61710772 BLAKE2B 7c5d2825c5e97d13cfd7d52d1b2a52e28815faa636fd613114ce38822b8376eb2c6443eb1bf3babec664cfee68046f409d793fb0e4d54f662fb357c9f8e0543e SHA512 099b1b0cb465f08956d62a14343f62c84625d89da4ab6dd4072b78ac45b4b2b8e7ccafca7385a0cf9e8bfd8c9a16ee94664ff8a89a15193b9aace5f1a0da7a94
+DIST vivaldi-snapshot-3.0.1874.3_p1-armhf.deb 61046984 BLAKE2B 13091f2d58e727e690098386dce92ac038f3d824eb67188895d0f5a93d66577225d172f52af6496b5fe630f4693a95b335acf4d0f61f3d64dbc5c62dbaaa32a1 SHA512 f719765ff9a3eaeca12536c810fe1735abe3235ee771c9ff3ac92f6646b34eeb3dcb608654f1313a21f8cff29ac6c964c372ad76794526e55ed970dd9544775e
+DIST vivaldi-snapshot-3.0.1874.3_p1-i386.deb 67363556 BLAKE2B ee29bf461df8eee2fa4d71b3a3fb92760bf898ce68958b5bd97d00b31962549c6edcf5a0aa9ef56dc9c33f8aa3c8ac946536d837ea3056bd412f7dc615a28e83 SHA512 e33317ec47fe60a0120bcca5c588f2a6d94bcb27612c7d69efa86d8c75132dd9f18d9c881505fac689579ad975523dd5cf6ac5ec93e4b82f0961f35c51e4dac6
diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-3.0.1874.3_p1.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-3.0.1874.3_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
+}