www-client/vivaldi-snapshot: Version 3.1.1916.3_p1
authorJeroen Roovers <jer@gentoo.org>
Fri, 15 May 2020 21:47:24 +0000 (23:47 +0200)
committerJeroen Roovers <jer@gentoo.org>
Fri, 15 May 2020 22:38:57 +0000 (00:38 +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.1.1916.3_p1.ebuild [new file with mode: 0644]

index 42625220aef21fa081339def8dbe148a99036b7b..be977fdd7207a77c43950ba88fb1a66d3a357b66 100644 (file)
@@ -2,3 +2,7 @@ DIST vivaldi-snapshot-3.1.1906.3_p1-amd64.deb 68860928 BLAKE2B 099c40e7ce49e994a
 DIST vivaldi-snapshot-3.1.1906.3_p1-arm64.deb 61939484 BLAKE2B 40a4880cebae0464c16740956d065333fbc1515435ab49b9742dbb81f82a8a128f8d7350660d99d538fc32db19686b4a367370f17f344938b31314faf14164c5 SHA512 b007657413160083d79e8284e543f5f550258fa1a837f7ba828c7b31acd63565b06e9bc55d7b1c7af333b2469dcfa7c6494998a41057ec715eafb7328b09d033
 DIST vivaldi-snapshot-3.1.1906.3_p1-armhf.deb 61267236 BLAKE2B 17ae4d820b70a10250fbb24fa0614f391a07f3f893ab6643d882f0a988a54dab5582cb28803d1d4b44a6c0f06bbe72b3e2d3f04d8bb7ec2f859ed43bebbd3da4 SHA512 1fbe0caba0962d24d34f507650a9ecc9a35c9488c9f9f7d50dc17e1f87d81e28a424917af20117aee5065a16988fd22e057aa191cb7e1bb9f4677fe6c991a1dc
 DIST vivaldi-snapshot-3.1.1906.3_p1-i386.deb 67612300 BLAKE2B 1b27a9226f48265962d359999d37c9086b0c333a2f6fdd815b1033bda61c2928b5f05288fd882b7066f3177fd51a22eb6d309145a576f50a2e11da50ca5c3bae SHA512 33379cec7ce85528ec6b4dee6af443ed06a0b6610acfde1656f86c35f57ef7a0398806e48c77f9ea8aefe97d6037fabe034a58e52dd88e5346e12e4f0cb75867
+DIST vivaldi-snapshot-3.1.1916.3_p1-amd64.deb 70971348 BLAKE2B 689a5f79c0bb92ec74a6477d0cb039decd6bad8cf529c322cf32525997ddc0a6ff9cd9c511680efc44f03ecbaf99f1bdfb27c48603011d0337fe369369de72fd SHA512 32c21d95050c03f2d6e2426de3ed7df235ee53826f0daa7bc13c12b8ddbd0b861260d1377865379c31b3c1f9ba4a2470b310326bade863ec6bef701e22c566d4
+DIST vivaldi-snapshot-3.1.1916.3_p1-arm64.deb 63446504 BLAKE2B a12403fed45d84d9aed0c72bc20b2c8dbb4d8067a046ef843bc47086f05403d7c6d3363553423b803053c6a496d14c1754a0a3980b26a3fec90351ee050ce3fd SHA512 94de2e8ca999e1210b9f4814a1f9db2497fe7ee5935e94d6bef3d900ab7b54120abf5c6c656cdfbb425d75a3cfd9a4c701d6ace7b9a87c11fea7e62a55a807fd
+DIST vivaldi-snapshot-3.1.1916.3_p1-armhf.deb 62898172 BLAKE2B 86ae557f48bd2b99cc6751abaacf664d97fb421fd8cc55c5245ff52d08b4029751a7b49b1a7c78f23a6edb8d3c2766bfc618860133149417bc82aa6286f2fdbb SHA512 f9eeb9e19ddf27f66f942f6f56a6f9a5aaa17e76427bd84f76b0d99fdf797ede01181a17861965ffc3ffdd81427fd45c4de9de70de3de4c00926826e2c357c47
+DIST vivaldi-snapshot-3.1.1916.3_p1-i386.deb 69357344 BLAKE2B ee2695d06887999f01011de09e979875949b3184173e8ea34e9b84a827a7f943289c6d63fde5bfde32af5a8996cb0d9cc9411c3809f71c86dcb7043511c6f54b SHA512 a85aebdb7820e11fdf31605ca815a4f51886cb64d746e0e683baee0c2ce72acbeb8ac2d30efab737b7d275210267f7ba8fbf538d16c469e86134a4517434d71d
diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-3.1.1916.3_p1.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-3.1.1916.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
+}