www-client/vivaldi: Version 2.11.1811.47_p1
authorJeroen Roovers <jer@gentoo.org>
Fri, 6 Mar 2020 12:09:33 +0000 (13:09 +0100)
committerJeroen Roovers <jer@gentoo.org>
Tue, 10 Mar 2020 08:22:30 +0000 (09:22 +0100)
Package-Manager: Portage-2.3.92, Repoman-2.3.20
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
www-client/vivaldi/Manifest
www-client/vivaldi/vivaldi-2.11.1811.47_p1.ebuild [new file with mode: 0644]

index 757bdf9e9260d173f0c155d79091236c51071312..c30acc81fb4c43b0015d4b9610bd9cdecfec481a 100644 (file)
@@ -10,3 +10,7 @@ DIST vivaldi-2.11.1811.44_p1-amd64.deb 65552532 BLAKE2B ce8be687ebcdccd0ba0e513c
 DIST vivaldi-2.11.1811.44_p1-arm64.deb 58870580 BLAKE2B ae9f98d603453a21e73ffdcebca5f28c38cbdcbf73ff3c6242c64465a8d8694c4a82ddc5d855a977b70d567a76ef3685ab16a38cffcf3584763f944e27db16dc SHA512 7ffbc0d1b695e0eacc2a86b3f83a201c342f3d83639b7fbeb53070efced6dfb6062e3f86643e1cc9ab9f6cfdf2797eeb8c80284ef115f3bc9519bccf985aa825
 DIST vivaldi-2.11.1811.44_p1-armhf.deb 58223440 BLAKE2B 8193f98a34f4ac9e9b635d7e6d0f99b772b0d799a030226c343cd26f6d56867c337d1d42cfa68ae80801a53b0ec8db72aae6dcdce3e7156321968abb63c70e24 SHA512 53286ec2ccb2215b52f99442105e741ba6fa9dfff0c5aa54a681050f926b1de7f2181d10a59f1388116e79ec1424321c463c58cd1c2e646aa25fb7cdd38a47ca
 DIST vivaldi-2.11.1811.44_p1-i386.deb 64352972 BLAKE2B 9abfc46f89ff79301323b586c83ea9424f0ed63a15b2d854a28653254eaacf35edb5ea8a3302ea9870289f95c9a1914bb55785d676dec31914b7c9518b9282c3 SHA512 6f4ce21faeb84765b400026c0f7fe09fc3c1fda98d12e1d2f1f4de311111aa585ad8de711ac2f8a2f25044fd78466649aa32dffbd46fe70d7a960a919c0acb77
+DIST vivaldi-2.11.1811.47_p1-amd64.deb 65546908 BLAKE2B fef2b087b34fb1e55e746bff018d66a6a5288e0a8f76dd1ce455c6c1913b57cc98f90e88b0b61a1b57566e8eac23d9122010267ce825ca89ad669e9a23955adf SHA512 59c02672f9c77a01707773d4590200fc8ab601983e00bab84c63e6589091bc53b561c0c3fe45557ba776a19cffb9d244c0187d11ba82213919f5df8a503dda98
+DIST vivaldi-2.11.1811.47_p1-arm64.deb 58880328 BLAKE2B 415964910697f0ee255e365ca363ee8980a2edb7e217207b7ea0ebc1408335c9342dfeb41d27ae7b42546aa60447d3cbcbf87d8140b40f61b7582c6e33a9a27e SHA512 3339c7e2cf1a7e1e2b1e1634f658ec5b9b7b4cfb22badd75c4a1eec5939c56680249fc718c9924629d4fecfb75ff56f52aabb22cf9fa89e151ab5ee6f4e3df37
+DIST vivaldi-2.11.1811.47_p1-armhf.deb 58223516 BLAKE2B 17b1e78184e9b6322183d46e4deba44f4bf5919d01460751a60950af2bd56c0f56f3c85773c9aea4980d55be3803730f73bf3a6a906909e7161896f33b568331 SHA512 534b95ec507a844487ad681c5d07a328a0105de769d54e50a76f819ca019016aab2ecdbf43a718b83429fde96d67bc289e97d99a64b2138635350bbe6d1cb303
+DIST vivaldi-2.11.1811.47_p1-i386.deb 64350788 BLAKE2B 0dfe6213f61ba01d861305501b25466480858a09a29da4cde8917925fcf8c718ce625fe60adbce3aeb196ff831b4314e52d5e6e20d7d79dec7bcabe95bb6cf11 SHA512 44742466012475670326eb8277c8e1036852c2601eee09e3bb06b2fff6ed6d3845f047af143e17aace3f988fcf593a6d86c7d823574e6513ed133abb5306ed58
diff --git a/www-client/vivaldi/vivaldi-2.11.1811.47_p1.ebuild b/www-client/vivaldi/vivaldi-2.11.1811.47_p1.ebuild
new file mode 100644 (file)
index 0000000..a156328
--- /dev/null
@@ -0,0 +1,125 @@
+# 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_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 )
+       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/${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} \
+               || 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}/${PN}-sandbox
+}
+
+pkg_postrm() {
+       xdg_desktop_database_update
+       xdg_icon_cache_update
+}
+
+pkg_postinst() {
+       xdg_desktop_database_update
+       xdg_icon_cache_update
+}