commit: fcf032119f03cc1bdb734771ea29fcfab85e9b3b Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> AuthorDate: Wed Feb 6 11:58:01 2019 +0000 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> CommitDate: Wed Feb 6 11:59:17 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fcf03211
www-client/vivaldi: Version 2.3.1440.41_p1 Package-Manager: Portage-2.3.59, Repoman-2.3.12 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> www-client/vivaldi/Manifest | 3 + www-client/vivaldi/vivaldi-2.3.1440.41_p1.ebuild | 128 +++++++++++++++++++++++ 2 files changed, 131 insertions(+) diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest index d24fb8aa51f..c2d7d8e40c3 100644 --- a/www-client/vivaldi/Manifest +++ b/www-client/vivaldi/Manifest @@ -1,3 +1,6 @@ DIST vivaldi-2.2.1388.37_p1-amd64.deb 58076356 BLAKE2B 2a43a4b81cff6b20cae5dafc64c364dda1a69db4ca4af84204db0146071e2be6551de6b39c1753d9523606544194c1754293db501df2be3e1081fcd699f5b7a3 SHA512 fe4a32db93af8eea29ec5e8a861ac7ba581f4a4e2f3b348f979bb6f3a165df0fcdd052ef048bb12ba9a19460e987a3a439784f87b1278c1925ac352d650c0dfb DIST vivaldi-2.2.1388.37_p1-armhf.deb 50918454 BLAKE2B 2d6637844e240bae390243c92eb134a78fb22a8f9e14b346146a7bee7fa250aeb47bfdd610e6a3bc1b56bdb99f4454ac56d8a872881c9e5f71661ae25d1b8d7a SHA512 a52c9d758c02722b213a8405f154747930eafa93cf80c4adef345ef37449db5393254b0a827dbd1ef0c09b5f398154c897cb1b26116c3b970bda3e4e149323e3 DIST vivaldi-2.2.1388.37_p1-i386.deb 56996270 BLAKE2B b88d2d2c2f6223334177019eae3089ced387b406efb663826b861de2656f9b7069b9b4edd3bc38cbe5cb5a53def48fecd40dd59017dbc37f9d382daf08b5f7bf SHA512 488ebcbec6dfe97849be0eecc4224db554a4d5875d7c7caa747f3116a2a1d2eb19391f36a515f0baefdaebd44f0ef8f32f027b9839171865b702355eec090da0 +DIST vivaldi-2.3.1440.41_p1-amd64.deb 58684382 BLAKE2B 04d0c9cac46992209e1c8d7a9d2af7923b6c8ffb7027b8a47794b8568bc80214f18bd6accdb8e573a58d97b1e3bb80f739cd865315e8f16793d70b49b3ecadb6 SHA512 feec83f14554565c0fc45995ff0aa59e6abd0d039ed663d8693917da169b01417a201ef5f721ed52f27200d4cb5745b43e582efedce2ede86ac552493fda98f5 +DIST vivaldi-2.3.1440.41_p1-armhf.deb 51558774 BLAKE2B 7076a4dceb1fb66a1f0a819ff73347bc2eb61f75b3d76b94f88629371cff18393339eaee2a7dc205ee3eefb637e19f8880563dffaa015016ad633228fb91cb30 SHA512 5310405072777ca8a755366924e049a4ae7054136dcf2a4348848d8b0c42d97f68a4e52430a8c77e9bfecef908aa669ab0a23ce0e7f25f935946917bef8460dc +DIST vivaldi-2.3.1440.41_p1-i386.deb 56936650 BLAKE2B 0c544ef013a69ab0c6808c007fc3b54b21df2c24db481c6cf0d470b88829211018ab801fd06628e6b0e575ba5be6d2ae7a49539f0859ad24c58c998a8510a42d SHA512 ec0c22fa54ac29d00a45c054f1e8245f0775ce1b7763e8a1e985a218fde637ee70b17523076f8f76c9a29b82d0c008da32e05d3c3e7f06f684d7d52c7124f2db diff --git a/www-client/vivaldi/vivaldi-2.3.1440.41_p1.ebuild b/www-client/vivaldi/vivaldi-2.3.1440.41_p1.ebuild new file mode 100644 index 00000000000..d3152b11c32 --- /dev/null +++ b/www-client/vivaldi/vivaldi-2.3.1440.41_p1.ebuild @@ -0,0 +1,128 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" +CHROMIUM_LANGS=" + am ar be bg bn ca cs da de el en-GB en-US eo es es-419 es-PE et eu fa fi + fil fr fy 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 gnome2-utils 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 ) + 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 ~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} \ + ${VIVALDI_HOME}/libwidevinecdm.so \ + || 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() { + mv * "${D}" || die + dosym /${VIVALDI_HOME}/${PN} /usr/bin/${PN} + + fperms 4711 /${VIVALDI_HOME}/${PN}-sandbox +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postrm() { + gnome2_icon_cache_update + xdg_desktop_database_update +} + +pkg_postinst() { + gnome2_icon_cache_update + xdg_desktop_database_update +}