summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2021-12-15 23:26:41 +0000
committerJames Le Cuirot <chewi@gentoo.org>2021-12-15 23:40:35 +0000
commit770d88a1574857dfb4d197ebdc097a56a27432a9 (patch)
treeb8b80de9c85c12e5faa330cfa1c92a51d2a29c1d /www-client/vivaldi-snapshot
parentdev-qt/qt3d: Stabilize 5.15.2-r11 arm64, #828047 (diff)
downloadgentoo-770d88a1574857dfb4d197ebdc097a56a27432a9.tar.gz
gentoo-770d88a1574857dfb4d197ebdc097a56a27432a9.tar.bz2
gentoo-770d88a1574857dfb4d197ebdc097a56a27432a9.zip
www-client/vivaldi-snapshot: Add version 5.1.2519.3
Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'www-client/vivaldi-snapshot')
-rw-r--r--www-client/vivaldi-snapshot/Manifest3
-rw-r--r--www-client/vivaldi-snapshot/vivaldi-snapshot-5.1.2519.3.ebuild204
2 files changed, 207 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest
index d1b170ae8230..9d98f3d13109 100644
--- a/www-client/vivaldi-snapshot/Manifest
+++ b/www-client/vivaldi-snapshot/Manifest
@@ -4,3 +4,6 @@ DIST vivaldi-snapshot_4.4.2493.3-1_armhf.deb 77836120 BLAKE2B 7e506db4748f0bc7d0
DIST vivaldi-snapshot_5.0.2497.10-1_amd64.deb 86953080 BLAKE2B 2dd30f111e3cb079c3d4547d80f289aec8bdbc679280c40c1aca444fb3eaa1bdb60f64cd212868c7970ae4fee86a016967164f1ff892b21918efe96feeb24ae2 SHA512 7bd100af91fcfc6c57e07150d7881aa0572da8f4abe7a0a3a8c5a36ec38fa780c07531382897ae1c399dd2e8359fbb7a68dd79700b9da18f621de05d685f2a71
DIST vivaldi-snapshot_5.0.2497.10-1_arm64.deb 81524572 BLAKE2B e24343ccc67dd834c88bd1bd666ffc97dc6a12fb2c201c7cfc48cf54bf4b53648e6e9c04520e795ddec6c3b80b4a574f6d4319eb7ee08a543300f02820600d26 SHA512 28f0e2e53a0acf40714022aa03aeff75257dcd253433ce32784a1f486e0c13d47916c9cad33a7f38c72898200e68a8b94561da1b684a82055989d61a5f0730b5
DIST vivaldi-snapshot_5.0.2497.10-1_armhf.deb 77922892 BLAKE2B cf00ec524cab4f0bd6b9acb8f64962a19a335cf536d38a38c96ac1031033bce1e887ef6f7168292a8b5e990f95a01bd880d2cac6c6de0d8e0b891c3c5ea9a667 SHA512 03c040c01401f965ab046d19f5db5de2b27ec1eefe8f781eeffc8c941248c811c7d555af160c90996ee3fb2fa135410cbb42a7e84fc00746de624c6b7f7af537
+DIST vivaldi-snapshot_5.1.2519.3-1_amd64.deb 86965208 BLAKE2B 77bdb7d409cc8164df4de0a550751aa73810964b2cac3ebee97de8ec1a2c9ce6de81f8210462e5e6dfdf06e47550b74e7200f4a7a8b9ea5b84071dfa939c196e SHA512 7b49a5077a79bab6b89dcd4be8a7427b48b6e93aa1032a8531365d220f138c392d5c22096b3bfff0ab07b5f067624236c8f302e565ef5b8236698268e6e9eae6
+DIST vivaldi-snapshot_5.1.2519.3-1_arm64.deb 81591692 BLAKE2B 29fe0b9c69285f3b9201847dad7230317a2f2438791a3442165d93a724b384bac44fa3e9c0b7ccf87a0e14b1c8c49bf5d0ffbe280cc3a7d9d7a1f6d1a17025bd SHA512 0a4614e109c878b2a15ec88bb288e81172ab503df697b25af0ff1bef1de1a96688f26eb632a033333d47e5b6d375fbbea17010e8ba249a0ab84c08620cadd680
+DIST vivaldi-snapshot_5.1.2519.3-1_armhf.deb 77949432 BLAKE2B 30d3d6ffcef1f886b9233ea81abccee771e40bd0bc2f2e6aa9ec6b39b179579e1043d904b479410f5de5eb394489daaaa1240375461d5d711292feffbcdb3f3b SHA512 1ae25619b097253ee8446ba541794acb31fe13a45c1469508ce73a6a37488be24eac499baacfa4d58c035ae44b580939e2f5a00485fd860185d1aadcfd6d0779
diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-5.1.2519.3.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.1.2519.3.ebuild
new file mode 100644
index 000000000000..0d11b47c0083
--- /dev/null
+++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.1.2519.3.ebuild
@@ -0,0 +1,204 @@
+# 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/${VIVALDI_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
+
+ case ${PN} in
+ vivaldi) dosym ${VIVALDI_PN} /usr/bin/${PN} ;;
+ vivaldi-snapshot) dosym ${PN} /${VIVALDI_HOME}/vivaldi ;;
+ esac
+}