www-client/vivaldi: Version 2.5.1525.40_p1
authorJeroen Roovers <jer@gentoo.org>
Wed, 8 May 2019 08:26:54 +0000 (10:26 +0200)
committerJeroen Roovers <jer@gentoo.org>
Wed, 8 May 2019 08:28:03 +0000 (10:28 +0200)
Package-Manager: Portage-2.3.66, Repoman-2.3.12
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
www-client/vivaldi/Manifest
www-client/vivaldi/vivaldi-2.5.1525.40_p1.ebuild [new file with mode: 0644]

index d9bd9e542ac3b3549b27ad17dbaf28820476cec1..f52b241d56565021c38e7540a053b876221ec8eb 100644 (file)
@@ -1,3 +1,6 @@
 DIST vivaldi-2.4.1488.38_p1-amd64.deb 59085524 BLAKE2B 1f64a54b011780dddf785d1d24273238621d9c6d72f7987d2a4c3a079cfb1756239c16447ab13167e7d55feaf61b384c2f4226600e001ce812034646304ecee8 SHA512 10e88503537211fc28bba20759882113ee23de732487b38fcbf54fa36ce5af0dfac25875b62c54a144077d76b672f7f3111c4f9a87e39d4fd2602323379bdb44
 DIST vivaldi-2.4.1488.38_p1-armhf.deb 52185308 BLAKE2B 8809ad8f86798d0e1af89342c4d9d00137d6238ee1515615695fa56d9f37e9d5f45bc8cb59cf52afdc18c8fe2079f989efb29345a9d54b0e9381998c2b2ae6e1 SHA512 0f856090774667861aa5a088f005e92507e2f4bb7b8952d7f91a4a061406964c11963437f5744d063902efd001c225d88047b409b87182bfaa47030c307cb373
 DIST vivaldi-2.4.1488.38_p1-i386.deb 57296220 BLAKE2B 7dbbd877114aedee0f762ccec709389b7ef447deaa34edc972a2a644d25e3ff58c64d804d0f7c503a261ec2f49e669bc38c85ff7f6211b7c637e13f759303465 SHA512 7abc97c924e60fe1eac24360b73ade74f1d0a518abcd569b42636c3ac54960b8c4b9b4e9972a3ba364dc5d5fe07e3de658956717a644e7c3d192a37865ce81a3
+DIST vivaldi-2.5.1525.40_p1-amd64.deb 59496800 BLAKE2B a51968416dc4b05790330ea15a8076822911cc2ada72622617635de5fb2bf16a19a40fbc0b7f8bd9847be6e4ff6f046264a697c775345913a36f78392db4bcdc SHA512 f594dc20352f2f5f7a6fab1d3552b9756eebbbd7e8d6ec8a75d86e48cc8ce8353c9f96c0022dfab2283405b7e34d8ff8f9f6a93e4ab281e68561b64fa3ac55cc
+DIST vivaldi-2.5.1525.40_p1-armhf.deb 52879712 BLAKE2B 6bd7fc98740bf540458e8a668b3eddd23415575dc5e279dadcc663fa53c444e292d5568482ff29c322c09dd71004834119994d67ab34070c5945f6aea4eaea06 SHA512 fe338edf6186d49c32a0dd729182dc55838b132d5385fb1de914cd0439f85e9640ace2c9ceba0f05db5eff102670fd1429a0d5b429d13f9489913e664008f246
+DIST vivaldi-2.5.1525.40_p1-i386.deb 58070740 BLAKE2B 88a0c7cdc7c33c4781bf76d28f9507f463c888854178f75b5b50a0b59173365eee0821b1ec2e7ee3082bd86b6cf131beef069013bfeeac862dab228370d6ec86 SHA512 b93f68ae37f2f8cdb88740aea91e23fbab9d9fb5380b4f58d07a506ab27d80eda1d138d1acfe8475330cc300761e83974c1f506fb2e12881ec510333af10bb95
diff --git a/www-client/vivaldi/vivaldi-2.5.1525.40_p1.ebuild b/www-client/vivaldi/vivaldi-2.5.1525.40_p1.ebuild
new file mode 100644 (file)
index 0000000..69ed6a4
--- /dev/null
@@ -0,0 +1,124 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+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 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_postrm() {
+       xdg_desktop_database_update
+       xdg_icon_cache_update
+}
+
+pkg_postinst() {
+       xdg_desktop_database_update
+       xdg_icon_cache_update
+}