summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www-client/vivaldi/Manifest1
-rw-r--r--www-client/vivaldi/vivaldi-2.10.1745.30_p1.ebuild121
2 files changed, 122 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest
index 1618387a5642..1eafe946ff51 100644
--- a/www-client/vivaldi/Manifest
+++ b/www-client/vivaldi/Manifest
@@ -2,3 +2,4 @@ DIST vivaldi-2.10.1745.27_p1-amd64.deb 64750900 BLAKE2B aacdc87625f47704a79bb9d4
DIST vivaldi-2.10.1745.27_p1-arm64.deb 57909300 BLAKE2B 1355c2df495b3a04f0c3ddde92ebd4d5b23274646454cb59f1909c5527bb340b885f3740f4b09525b73a50e98f5d70c552ee9173e33ea39de416e6f800f3618c SHA512 476f13c57c03abc60b18749437a264e9c47e6e644f9b9cf5a2df482d9f0246f0e8bcc886314c8d074f28323c73be92ca5a68bf555d8dafea1158495619795c41
DIST vivaldi-2.10.1745.27_p1-armhf.deb 57148984 BLAKE2B ee46ea7c482f646fbbca85b14ad1460671e5c5d4ec7c7136a5823cb25606ae694599a48d72394d52e004b4ab9837453ce64b56a5d44532435388fb52e21d644b SHA512 0f58b1a354cd4fd9392e123f67fcd30b532e5a858f8a9ad8329f74914afcee70a3895878855b69a0d1d149a521a768ed7509271fbce6e4bd0cbb0d1e6a0285e2
DIST vivaldi-2.10.1745.27_p1-i386.deb 63126284 BLAKE2B 01e34738aa3f0e2098e8b5ae6ecd641f288b941b079a4e685f3e4f4c4920e224aa41fd25ddf04c371282db46421c6e29c9c20909a1fbd97d85a23b189cb899e5 SHA512 85db226a73bc20251a807c376c235789a6e52d83f7d574d6043234ca158f1033c7433abd014372dbcece33a256b3b5cdc5ee4bc2a569f93e26cbdd551b20ad97
+DIST vivaldi-2.10.1745.30_p1-armhf.deb 57154364 BLAKE2B 0e4fb8c34bf7736a03ec4f5507ff48edc0c56778a8688005d374dbb9c22f05fa71fc4764cbd002f82204e1e110ace8320a6a3d2c336337caa99f6466881da55c SHA512 637d2b2c0caedbc00a8bd43fa05c3fb74e317111edb303c55ec5b1da151d66b2ad614d8c8a9745fa4125e177ac9d3686a28591a934a6585d1d7c5cb3c5a5ccee
diff --git a/www-client/vivaldi/vivaldi-2.10.1745.30_p1.ebuild b/www-client/vivaldi/vivaldi-2.10.1745.30_p1.ebuild
new file mode 100644
index 000000000000..f47c75c5349f
--- /dev/null
+++ b/www-client/vivaldi/vivaldi-2.10.1745.30_p1.ebuild
@@ -0,0 +1,121 @@
+# 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="
+ arm? ( ${VIVALDI_BASE_URI}armhf.deb -> ${P}-armhf.deb )
+"
+
+LICENSE="Vivaldi"
+SLOT="0"
+KEYWORDS="-* ~arm"
+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() {
+ 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
+}