From 2d4901d8574bf06f07afdba8fb3d7b606fcb5a01 Mon Sep 17 00:00:00 2001 From: Jeroen Roovers Date: Fri, 24 Apr 2020 07:51:46 +0200 Subject: [PATCH] www-client/vivaldi: Version 3.0.1874.32_p1 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Jeroen Roovers --- www-client/vivaldi/Manifest | 4 + .../vivaldi/vivaldi-3.0.1874.32_p1.ebuild | 125 ++++++++++++++++++ 2 files changed, 129 insertions(+) create mode 100644 www-client/vivaldi/vivaldi-3.0.1874.32_p1.ebuild diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest index 60859bf3f3a7..92eb8c31dbb1 100644 --- a/www-client/vivaldi/Manifest +++ b/www-client/vivaldi/Manifest @@ -6,3 +6,7 @@ DIST vivaldi-3.0.1874.23_p1-amd64.deb 68817604 BLAKE2B e4741390fe717a402bdbe4536 DIST vivaldi-3.0.1874.23_p1-arm64.deb 61920716 BLAKE2B 0070f807ab774183efb05e5f608e80f5e7317630023f1eb8c10fbe615b974ae33e9ac0c84b493380f6bfb6bd7c5644d8fdc9a97b2e61fd08abe214fee14d5e1a SHA512 a3114b887493621069fe4f8f4d120cd65a47ef57a2e85f0c7eecf688edc10914208e2d45b2b1352a85f4ed411175857655b8f43ce45f8b504d9583a029b8337e DIST vivaldi-3.0.1874.23_p1-armhf.deb 61245680 BLAKE2B b0d1ecb42bcea741623d454b9cc80b716da97a10e5680857c50c2b69ca601b35a43cf1b5973cb9f54859e1581f3b03f4a687baea1ecc63469fa9aa251186686d SHA512 c182506ce22e202cd5f80eea2f8efd1486d065220a3f9cbf07fbc1f741b7e0c5dc008c255a0c23be7609b09ed16a9b23cb2f269920a3bd0faaaec95a61d8b9e4 DIST vivaldi-3.0.1874.23_p1-i386.deb 67580912 BLAKE2B 0f0f5bda4cebd6a2f4df9152c9f293ad8be2ce3fae30e5e5cbeabf35fb50b77c7e1b651da7ff804c56f3efa05397016258da7fcd850ae0e7e0e2f85cc4e96f1e SHA512 cee4ecdd5d10f47140f49d9d0940c5831ed33a5a1fcbc5d09bc31d3da3e8e285f9962428820cc65878dfb4a6f12e000254c2431d26dfac2ad1b6788d9000cbbb +DIST vivaldi-3.0.1874.32_p1-amd64.deb 68845784 BLAKE2B a7c638622f51ad659801889717191f1f994b287fd4cf798c465b61701ed3c59e7108d8f95903a9aa4f9b1be468eb04b8661f5071f8704c995e55f73b85ee9b0b SHA512 be4d3cf7088f1d97ca99e88084a6fc1021270079898fcdd95d61ab8c387919e52c75ebe33c0391444de6da82bde4c8acc396add989e6620cb4e53a6736c2ce4a +DIST vivaldi-3.0.1874.32_p1-arm64.deb 61911796 BLAKE2B 7d1a898b9f38c69c3decd069aafc5534eef6a3737e4e94d316e813fe593c4568d73f14067e8889ecd30babfd36dd287b7a07ad8159ca73991eda190996a0d3d7 SHA512 ed0b576897e1fcb8ef4c306608efbff3fc96e1ca94298cb75f5fb2a211d839e744fef4c374c09aab8aeb91c93fbe36189f5cda7bb28d212a74816ba70cb4464a +DIST vivaldi-3.0.1874.32_p1-armhf.deb 61262224 BLAKE2B 78ca44c3d6a4384f1569e4b003e8075edead6b4d226ccbf1bed5c58736bebcf21be7a026ce385cb523311b105714f9269099ccd4b739f0b9c582a22dd8648a31 SHA512 bf00cdbd370ec58bc7691bdd0925b758717474c0acb714009772bb747c390303d5f70de0b54505382802536e3418790c0df3c19f25fca606f152b6a873f5606f +DIST vivaldi-3.0.1874.32_p1-i386.deb 67597136 BLAKE2B 43193f3a3e29a7eadda0bc5a07722d88f321fa6ddc19521184df5163ff825b1dd1d67bd427a2df64275942d9a7133ab6a1ad3f44d3c9ba211e529edeeae9b0ba SHA512 3c4a1f22269a7e8566e077dfa28caccc9a4583c1a187c066e5bcde26fcf87801424691b9973df6e09a1e6dc1675d30be11316a8aa8f9c4af4ab91206bf542b69 diff --git a/www-client/vivaldi/vivaldi-3.0.1874.32_p1.ebuild b/www-client/vivaldi/vivaldi-3.0.1874.32_p1.ebuild new file mode 100644 index 000000000000..a156328cef54 --- /dev/null +++ b/www-client/vivaldi/vivaldi-3.0.1874.32_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 +} -- 2.26.2