summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2022-08-13 08:39:14 +0100
committerJames Le Cuirot <chewi@gentoo.org>2022-08-13 08:39:14 +0100
commit06b9e51e298a365be313fc5b57be08b8bd4aebcc (patch)
tree0a00f77c0af032bf5b1aaba89b69ed2f872af731 /www-client
parentdev-perl/Mail-Sender: Keyword 0.903.0-r1 s390, #857732 (diff)
downloadgentoo-06b9e51e298a365be313fc5b57be08b8bd4aebcc.tar.gz
gentoo-06b9e51e298a365be313fc5b57be08b8bd4aebcc.tar.bz2
gentoo-06b9e51e298a365be313fc5b57be08b8bd4aebcc.zip
www-client/vivaldi: Add version 5.4.2753.33
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'www-client')
-rw-r--r--www-client/vivaldi/Manifest3
-rw-r--r--www-client/vivaldi/vivaldi-5.4.2753.33.ebuild206
2 files changed, 209 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest
index d5be04ee884c..904c6fd85d62 100644
--- a/www-client/vivaldi/Manifest
+++ b/www-client/vivaldi/Manifest
@@ -4,3 +4,6 @@ DIST vivaldi-stable_5.3.2679.70-1_armhf.deb 81281828 BLAKE2B ac4ae8ca2ed316dcb4d
DIST vivaldi-stable_5.4.2753.28-1_amd64.deb 97607844 BLAKE2B 98b4d55931f9809c20dcebb162d30c83375af725fc11ca72ebcf61c2a3ff91de563bfe127ab507224255f5c6865df76d3ea9b141827981e5a78cb42c1cbdbc5b SHA512 88b43a8378986b608ae7bd840b55f5c98d83a4614a5fda7ee4ceb03923511edf7128dfbe138a320ecc27dd047db21f5e31f41f42e298a5ede93b564f7efec800
DIST vivaldi-stable_5.4.2753.28-1_arm64.deb 87875228 BLAKE2B 88c43b2f07f81bc809bb5a3a7e3bd4cc4fb2b85e86f8d17518cba1e9769ce550bd7c08e74b1f9c11cbc003674a23b359bd4b70ecc67ed2eb70b18a7f50ce86bb SHA512 2bef4d5fa85ce14b068dc4528984321dc1d21f05fad266d6247a9afaecae9e3f740ff9a0acad633d9f189b2c979f6c3be7120c981b528ee325fc04eb4d76ea70
DIST vivaldi-stable_5.4.2753.28-1_armhf.deb 88386840 BLAKE2B 1f11e37da7cb0d940d70d652109a6aa71952e00669e3a7416e1c3a2c1406109948273f6eed56eb5e2cb7e16417746a08b4ad5584a45b94d7527308ae155a97a2 SHA512 596f3d3b6deb2aef8b95892b510c0486ddb26f1babf581f5fc2701872108804efeede4107b85a399c0ddbd1f338bc58492f3458028a4dc573b74fc1df8ad34ef
+DIST vivaldi-stable_5.4.2753.33-1_amd64.deb 97610588 BLAKE2B 2505632b54c0c281c895d0cc20ef857a4bb4d2b3bc3f965e83658b05b5ffeb27867dc57e84c1356229a072fc04a6462c2a6fbbe2f980d2589227bbef0b536fd7 SHA512 be379d50ba2575705cf25938af871ccc45f3aa5162e9e0211008e26f50d18311ca07d77decc10922f3a494f1f2ea124790f23560dcd8990e686507188f0017c4
+DIST vivaldi-stable_5.4.2753.33-1_arm64.deb 87881072 BLAKE2B 6ab23c42e91c0479b9a284caeadef081e5c9cab0ec53b1cc20748da33bf1dee69520c96eabd89e77e60d3fdc32fc5696fb3a2ce0d2dcc88bc738303c785bc05e SHA512 1ca757fd6d8b922c82b366aef0e0c86da4adf79e834166381988e3215be95b61b1343b7e38a39b2b6d041021d4dd5d2376384b7592908d8570c0b5b23542e20b
+DIST vivaldi-stable_5.4.2753.33-1_armhf.deb 88395604 BLAKE2B 814c490fb4ac1d73209431c7f6078cd01cf80b4aef794559e189561fe87a2e4b54f0fdca2d309418bc6510eafcc82a4dce79154d3c5986597fa3dffdb2d7991e SHA512 3b6dedf7f303edbefae98c2cd6720b9e330d607a85f0a1f0b1c9537f64f68fccf2138b270795dcbd71c9b8686e1677ce0aa862c9ea1dd295e7f01477384575e5
diff --git a/www-client/vivaldi/vivaldi-5.4.2753.33.ebuild b/www-client/vivaldi/vivaldi-5.4.2753.33.ebuild
new file mode 100644
index 000000000000..cc815568ad94
--- /dev/null
+++ b/www-client/vivaldi/vivaldi-5.4.2753.33.ebuild
@@ -0,0 +1,206 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CHROMIUM_VERSION="102"
+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
+ ur
+ 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]
+ || ( gui-libs/gtk:4 x11-libs/gtk+:3 )
+ 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
+}