summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2021-11-20 16:45:49 +0000
committerJames Le Cuirot <chewi@gentoo.org>2021-11-20 16:45:49 +0000
commitec9940c225142027c21f7495f03c5e1dd4fe2375 (patch)
treeffc4f89fcbc1e08a9c049a5bc41e07f429a1cd96 /www-client
parentdev-python/eventlet: Remove old (diff)
downloadgentoo-ec9940c225142027c21f7495f03c5e1dd4fe2375.tar.gz
gentoo-ec9940c225142027c21f7495f03c5e1dd4fe2375.tar.bz2
gentoo-ec9940c225142027c21f7495f03c5e1dd4fe2375.zip
www-client/vivaldi-snapshot: Add version 4.4.2490.3
Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'www-client')
-rw-r--r--www-client/vivaldi-snapshot/Manifest3
-rw-r--r--www-client/vivaldi-snapshot/vivaldi-snapshot-4.4.2490.3.ebuild202
2 files changed, 205 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest
index 19cea52c26dd..0c3780f7d179 100644
--- a/www-client/vivaldi-snapshot/Manifest
+++ b/www-client/vivaldi-snapshot/Manifest
@@ -7,3 +7,6 @@ DIST vivaldi-snapshot_4.4.2482.13-1_armhf.deb 77789976 BLAKE2B 91b743ba22dc73cd5
DIST vivaldi-snapshot_4.4.2488.3-1_amd64.deb 86863140 BLAKE2B 52015cf80e627a4fa593f5b82cbc418a826d92e60d0ebc0230765d7d5709a7deda2b2daea02389316077b6d651c024c8d4af72b602dc7d5ad7bce7f8fbab639d SHA512 7fe7ffa0219af83b936c9425218ede6c97b389118a098c5c7e76b1a0e6ee4c99f3bd1f70f1fd366426157b27e60dc6d9ce69cad06aff8868562d5cc0dfb82e95
DIST vivaldi-snapshot_4.4.2488.3-1_arm64.deb 81502080 BLAKE2B c8e6db5f5fe608788a317e4be834441e15597eb22ff583e3aba8606a5b131db87f40afd2c3cad97e7b5189fb010e9b8794024ad32d283b9d184ec405b6eb111c SHA512 5b70fcc3749c61c48143af20290e49b0c9935e097e0a663bab9a92cc408fcd9bad8a8dbbd4dc872dcde830a19a4ce89e4492a88058219316837e671c4c826abf
DIST vivaldi-snapshot_4.4.2488.3-1_armhf.deb 77836084 BLAKE2B 665a2fb56b1d520803006205fa49c82a5f379f876ecb167f101a04900ff0334040537bb2388513cb1bd19513e3b234785921aec690053a1eb8e9d3cf39b28c73 SHA512 f9037b569927f06b1089699bf17d7fec60faa32c68ef666ace306949a75729bcbb6cca9c372e1fd9ff09ae85c8f7098599212b82484fc5192fc5a51a926a4890
+DIST vivaldi-snapshot_4.4.2490.3-1_amd64.deb 86887816 BLAKE2B b860b45b93f96901dea3272036b979b46b4a449a0b13da540f91d009694f05001f590171411f41aab83b7d71b9819ff6b88c43f5c55d3d8fd891e61eb2d04430 SHA512 cb1e10c7b26cfcbd51338c2f949127b52d6249e6461f8be01a56db973b9bff2a58604f92de968d25c9cdd33a5a5811e9ab29340e72d43a5f78f7e02d4b315f1d
+DIST vivaldi-snapshot_4.4.2490.3-1_arm64.deb 81509604 BLAKE2B 68663ae328b424f4ce7d63f99f95c0cd432bd425f95cea439d647e0a732f265b79be1b8b11c979fc1de14022cde3f57b3f40d34bdc2dc30e6e3c288d620b4a17 SHA512 2e541cf7a15f8a46207dd7ee88dbed5a6718a8225ada42c9972117530466d3a856c5bf231b7439f9f45eb6997b115a1b9b39e51dd804557014b5f5081b004480
+DIST vivaldi-snapshot_4.4.2490.3-1_armhf.deb 77856492 BLAKE2B 9d6c61d313a9738fcc7af14ebeaa926d25f9c69cefff3d6b6629fbed424fae9e1e2d0d48a201da9d2f8a7052b5b47d74cd72d4bce879a2dd1b2788eec06abe2a SHA512 75fa97b75d78a77943fec9e7d35a516bef7054db37813e3f75bd053153b8139f22f593ca46dfcda12500d5fc3995349555086ee83f6b14995974b6d6f6df8765
diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-4.4.2490.3.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-4.4.2490.3.ebuild
new file mode 100644
index 000000000000..5376bd2781d5
--- /dev/null
+++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-4.4.2490.3.ebuild
@@ -0,0 +1,202 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CHROMIUM_VERSION="96"
+CHROMIUM_LANGS="
+ af
+ am
+ ar
+ az
+ 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
+ kab
+ kn
+ ko
+ ku
+ lt
+ lv
+ mk
+ ml
+ mr
+ ms
+ nb
+ nl
+ nn
+ pa
+ pl
+ pt-BR
+ pt-PT
+ ro
+ ru
+ sc
+ sk
+ sl
+ sq
+ sr
+ sr-Latn
+ sv
+ sw
+ ta
+ te
+ th
+ tr
+ uk
+ vi
+ zh-CN
+ zh-TW
+"
+
+inherit chromium-2 desktop unpacker xdg
+
+VIVALDI_PN="${PN/%vivaldi/vivaldi-stable}"
+VIVALDI_HOME="opt/${PN}"
+DESCRIPTION="A browser for our friends"
+HOMEPAGE="https://vivaldi.com/"
+
+if [[ ${PV} = *_p* ]]; then
+ DEB_REV="${PV#*_p}"
+else
+ DEB_REV=1
+fi
+
+KEYWORDS="-* ~amd64 ~arm ~arm64"
+VIVALDI_BASE_URI="https://downloads.vivaldi.com/${VIVALDI_PN#vivaldi-}/${VIVALDI_PN}_${PV%_p*}-${DEB_REV}_"
+
+RE="\bamd64\b"; [[ ${KEYWORDS} =~ ${RE} ]] && SRC_URI+=" amd64? ( ${VIVALDI_BASE_URI}amd64.deb )"
+RE="\barm\b"; [[ ${KEYWORDS} =~ ${RE} ]] && SRC_URI+=" arm? ( ${VIVALDI_BASE_URI}armhf.deb )"
+RE="\barm64\b"; [[ ${KEYWORDS} =~ ${RE} ]] && SRC_URI+=" arm64? ( ${VIVALDI_BASE_URI}arm64.deb )"
+RE="\bx86\b"; [[ ${KEYWORDS} =~ ${RE} ]] && SRC_URI+=" x86? ( ${VIVALDI_BASE_URI}i386.deb )"
+
+LICENSE="Vivaldi"
+SLOT="0"
+IUSE="proprietary-codecs widevine"
+RESTRICT="bindist mirror"
+
+RDEPEND="
+ app-accessibility/at-spi2-atk:2
+ app-accessibility/at-spi2-core:2
+ dev-libs/atk
+ dev-libs/expat
+ dev-libs/glib:2
+ dev-libs/nspr
+ dev-libs/nss
+ media-libs/alsa-lib
+ media-libs/mesa[gbm(+)]
+ net-print/cups
+ sys-apps/dbus
+ x11-libs/cairo
+ x11-libs/libdrm
+ x11-libs/libX11
+ x11-libs/libxcb
+ x11-libs/libXcomposite
+ x11-libs/libXdamage
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libxkbcommon
+ x11-libs/libXrandr
+ x11-libs/pango[X]
+ proprietary-codecs? ( media-video/ffmpeg-chromium:${CHROMIUM_VERSION} )
+ widevine? ( www-plugins/chrome-binary-plugins )
+"
+
+QA_PREBUILT="*"
+S="${WORKDIR}"
+
+src_unpack() {
+ unpack_deb ${A}
+}
+
+src_prepare() {
+ # Rename docs directory to our needs.
+ mv usr/share/doc/{${VIVALDI_PN},${PF}}/ || die
+
+ # Decompress the docs.
+ gunzip usr/share/doc/${PF}/changelog.gz || die
+
+ # The appdata directory is deprecated.
+ mv usr/share/{appdata,metainfo}/ || die
+
+ # Remove cron job for updating from Debian repos.
+ rm etc/cron.daily/${PN} ${VIVALDI_HOME}/cron/${PN} || die
+ rmdir etc/{cron.daily/,} ${VIVALDI_HOME}/cron/ || die
+
+ # Remove scripts that will most likely break things.
+ rm -vf ${VIVALDI_HOME}/update-{ffmpeg,widevine} || die
+
+ pushd ${VIVALDI_HOME}/locales > /dev/null || die
+ rm ja-KS.pak || die # No flag for Kansai as not in IETF list.
+ chromium_remove_language_paks
+ popd > /dev/null || die
+
+ if use proprietary-codecs; then
+ rm ${VIVALDI_HOME}/lib/libffmpeg.so || die
+ rmdir ${VIVALDI_HOME}/lib || die
+ fi
+
+ eapply_user
+}
+
+src_install() {
+ mv */ "${D}" || die
+ dosym /${VIVALDI_HOME}/${PN} /usr/bin/${PN}
+ fperms 4711 /${VIVALDI_HOME}/vivaldi-sandbox
+
+ local logo size
+ for logo in "${ED}"/${VIVALDI_HOME}/product_logo_*.png; do
+ size=${logo##*_}
+ size=${size%.*}
+ newicon -s "${size}" "${logo}" ${PN}.png
+ done
+
+ if use proprietary-codecs; then
+ dosym ../../usr/$(get_libdir)/chromium/libffmpeg.so.${CHROMIUM_VERSION} \
+ /${VIVALDI_HOME}/libffmpeg.so.$(ver_cut 1-2)
+ fi
+
+ if use widevine; then
+ dosym ../../usr/$(get_libdir)/chromium-browser/WidevineCdm \
+ /${VIVALDI_HOME}/WidevineCdm
+ else
+ rm "${ED}"/${VIVALDI_HOME}/WidevineCdm || die
+ fi
+
+ [[ ${PN} = vivaldi-snapshot ]] &&
+ dosym ${PN} /${VIVALDI_HOME}/vivaldi
+}