diff options
Diffstat (limited to 'www-client/vivaldi')
-rw-r--r-- | www-client/vivaldi/Manifest | 4 | ||||
-rw-r--r-- | www-client/vivaldi/vivaldi-3.1.1929.25_p1.ebuild | 125 |
2 files changed, 129 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest index 5324d4b5199c..56c48f7beef0 100644 --- a/www-client/vivaldi/Manifest +++ b/www-client/vivaldi/Manifest @@ -2,3 +2,7 @@ DIST vivaldi-3.0.1874.38_p1-amd64.deb 68854172 BLAKE2B 1230c9b843e4a1b4cded47e5f DIST vivaldi-3.0.1874.38_p1-arm64.deb 61918588 BLAKE2B dab796a161752f0a34a0179ed892abcf8590229315c8c1f99e38af53c62fda9a328c1ca0684d01d044274a52a7d9908912303f9ea770e65911990c27d05c8130 SHA512 3c61d1d58966a9eb1c7b68ab13838a5508a4342c8da83035f0445ba29fbdf0ffb7cddba8e2e27eb128000c2720eb318cc03aa7d07af0882e3df8858d19b2dc30 DIST vivaldi-3.0.1874.38_p1-armhf.deb 61244520 BLAKE2B 71789e1f320b83a1e6f3c2474324f17c744ceecae50c2e4bfc674f4b679dfa9aa089d39532ce76aaf462e00ab5df78f237c637cb54da08279ab3702e936c3381 SHA512 79c4d99ee79fa31944c4a22e077c94f0c6b75a0c844b8b78734a5dd91f9c5a686f0eb546e2c83be010e552c7590f318ccfa67911e82dacfd05f573a9078c7b50 DIST vivaldi-3.0.1874.38_p1-i386.deb 67580116 BLAKE2B 0cd5d811f23536f67e0644710b6199bfc956a833d8ede83fc2296030c84581532a066d1c1a47b20b700cd67584103861d363eee067ad119376f7844510acdf03 SHA512 60245ae214f0e5fa5a50a8c852e73ea54b60ba534b1dfcae1b03af2c95d3e5a6b287f11468575561e439689409140d048b616091e230e7c2e61379660b4c3488 +DIST vivaldi-3.1.1929.25_p1-amd64.deb 71016460 BLAKE2B c4d35cefd2b5da142eca25ff01de020f5073692390d52ba4870f304bdfbdf87ac90b2555f2d5aabaca6d024415c15a420f93b571d94c4e26a807d22195c7c915 SHA512 40ebb2d0a01ac965fd00d7e384a6b2592066738f8428677befc1b4d1d85772a7c15c3fa9a30a6de94d59aad62db488e31f547778210727200933b114e843eb7e +DIST vivaldi-3.1.1929.25_p1-arm64.deb 63488420 BLAKE2B a8d6191b6fff8aa4a3e16eb7dad3cd514ce22139061407894b07413bbc2cb757b945203681c930e2917746f2f005514da1807b0582a66df2906739d2794851c4 SHA512 762984a6a8c9a3a449d9934da59dd17790aa04dba4aa51df69b6c8dc2c38a17fd77201b3c7450152b47eba7b8d61b15fa21c4b788f6923d4da394e276e04f003 +DIST vivaldi-3.1.1929.25_p1-armhf.deb 62921072 BLAKE2B 1957de8090683d15b4abc83580f3ae65cc18ffc00fc5523d1143647e9b2460adc359384649dc23831a4b5e265a04a197278dcf5899e1b68802eff81fcd2e23d9 SHA512 f7ac233057a863868d0a49264824d19f45ea4b90e31b69c376b2cc5b8b6aa11339beb87d70a59084a79600bea5bb5ada7dfe440a208f13a5f62789a8809362bd +DIST vivaldi-3.1.1929.25_p1-i386.deb 69403692 BLAKE2B 7caa5f9970bfca82c4bff3e0b5598ff0f6db43c63a83e77f7b1f9e6222480aa915209928bde6d4907fcd1e528262452765cc18e868df2ba61e5c10cda27f2f89 SHA512 9a49c8aad430c4043e32b4dc2d1f2e47064d205ea09b19be694e6a535b06a06b27cc5610fe0f6a744dfe2ac55c4871b213ca5042b31869523b6a993df4e096ef diff --git a/www-client/vivaldi/vivaldi-3.1.1929.25_p1.ebuild b/www-client/vivaldi/vivaldi-3.1.1929.25_p1.ebuild new file mode 100644 index 000000000000..a156328cef54 --- /dev/null +++ b/www-client/vivaldi/vivaldi-3.1.1929.25_p1.ebuild @@ -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 +} |