summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2023-01-13 23:04:34 +0000
committerJames Le Cuirot <chewi@gentoo.org>2023-01-13 23:04:34 +0000
commit25ecb237cd5b9fa1e2a91287f85d730900e708b6 (patch)
treef9cbd7cc9b504174691d85474638a66dac8a60f5 /www-client/vivaldi
parentdev-ada/gprbuild: drop 2021-r2, 2021-r4 (diff)
downloadgentoo-25ecb237cd5b9fa1e2a91287f85d730900e708b6.tar.gz
gentoo-25ecb237cd5b9fa1e2a91287f85d730900e708b6.tar.bz2
gentoo-25ecb237cd5b9fa1e2a91287f85d730900e708b6.zip
www-client/vivaldi: Add version 5.6.2867.58
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'www-client/vivaldi')
-rw-r--r--www-client/vivaldi/Manifest3
-rw-r--r--www-client/vivaldi/vivaldi-5.6.2867.58.ebuild216
2 files changed, 219 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest
index edee8abbad59..590eef6e80ec 100644
--- a/www-client/vivaldi/Manifest
+++ b/www-client/vivaldi/Manifest
@@ -4,3 +4,6 @@ DIST vivaldi-stable_5.6.2867.46-1_armhf.deb 91091520 BLAKE2B b00f1b762168a666b10
DIST vivaldi-stable_5.6.2867.50-1_amd64.deb 101326336 BLAKE2B 74fccbe8b2eaf2199f502e0c5fd8ff1cf2b9015c74ca650a7f4a4b002e07a16d6ba34e0c181233d5b663b41b2223f703978704993b65e7279cd4ab201cb421a8 SHA512 40f657bff760db6a97a4aef94c72312a62bd7a7d19438e5b1ecfbd7a4fdfa4b01c4f8734b32f081fae520368150ee5d7ed8809c4d3c09dd8405c41f9c3207e58
DIST vivaldi-stable_5.6.2867.50-1_arm64.deb 90942328 BLAKE2B a131ab4788b08d09af17b7269ac1cb84487f0c7dd60a0eceb91cab59cb434bd517d73e332af1efc13f2c27a7c749b3a96c5171491ec3afad0b0c2391b3683715 SHA512 4b4fdf03ae2e0a027a01efef64b50ee7897475afe2e432735d77aee4d1b69681d2254f6f33c8a742d5fc17bbef1542b4577a356117adcad19d24ed49194cae5b
DIST vivaldi-stable_5.6.2867.50-1_armhf.deb 91102248 BLAKE2B d6c763467daaf40953923ebb92a62a45171ff96a77caef77d0474f4bff5eb25e80b63ffed5820ca726d23c03ea4c7cd06386591b69eb0e09ef0207b244875879 SHA512 c2a9e4ca54446d4ac03a1fdaa630bbf7ba4324199451a88784b750c85c2e050fb89a1645d458a84763dd905613a28ff715837cc6653f45cd525bb2eb6856c5cb
+DIST vivaldi-stable_5.6.2867.58-1_amd64.deb 101303448 BLAKE2B bf2fc19a0a62c29765c7299e392e445e162c47199ce55a191652aec4481de048c3b56a17ad6a5f3f9e3b646ac5598a370d9e57d8ba4392f33f2ed85490f6bd3b SHA512 ca07c0780c7733546288e9133f2973aa21c408e2ee77a388b3f0fcba5ae19b61b52fd76eabd0538232f7709daadc4c9be7f4c1ae0326ba5ac68d41da292b52cb
+DIST vivaldi-stable_5.6.2867.58-1_arm64.deb 91003620 BLAKE2B b850450286ad45f9a22c5ce691fb1e013c1625997c06e2daffa36adc2bf0ebe8e9714e4f4d460206709764b11950bd958c09189fd54304e1a1e8a02bfb386977 SHA512 36b79213b6d376fb0b47f380df7968944e3343a7305c24e17e89a311d1792fd375447113a40b3b3a93282a85d268c1ae5f2ab3c0251cfa012839b83bf463d173
+DIST vivaldi-stable_5.6.2867.58-1_armhf.deb 91108960 BLAKE2B 08df248cc122721c7f502545274a459fe39629d51ca2e76629e19499315f32c1e92c199101531c186c5e550b48e72ba033ef4a89139f9b574e20045fca9eefd0 SHA512 b6a989c84131355f1bced3c017d8745731bcf393b519d2b94ccaab727c132d4468bf1d30973fde7b872c715672dff13b62c6f87e2d0746c5e950b3ab6bf74a89
diff --git a/www-client/vivaldi/vivaldi-5.6.2867.58.ebuild b/www-client/vivaldi/vivaldi-5.6.2867.58.ebuild
new file mode 100644
index 000000000000..6360223e0294
--- /dev/null
+++ b/www-client/vivaldi/vivaldi-5.6.2867.58.ebuild
@@ -0,0 +1,216 @@
+# 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="gtk proprietary-codecs qt5 widevine"
+RESTRICT="bindist mirror"
+
+RDEPEND="
+ || (
+ >=app-accessibility/at-spi2-core-2.46.0:2
+ ( app-accessibility/at-spi2-atk 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]
+ gtk? ( gui-libs/gtk:4 x11-libs/gtk+:3 )
+ proprietary-codecs? ( media-video/ffmpeg-chromium:${CHROMIUM_VERSION} )
+ qt5? (
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtwidgets:5
+ )
+ 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
+
+ if ! use qt5; then
+ rm ${VIVALDI_HOME}/libqt5_shim.so || 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
+}