summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2023-07-23 22:41:59 +0100
committerJames Le Cuirot <chewi@gentoo.org>2023-07-23 22:44:55 +0100
commit23d9ab578e1f6e5b1eb2a861adba4aed027ef260 (patch)
treec1ca72fef7116474652eb04f573181e63df87ae0 /www-client
parentwww-client/vivaldi-snapshot: Add version 6.2.3077.3 (diff)
downloadgentoo-23d9ab578e1f6e5b1eb2a861adba4aed027ef260.tar.gz
gentoo-23d9ab578e1f6e5b1eb2a861adba4aed027ef260.tar.bz2
gentoo-23d9ab578e1f6e5b1eb2a861adba4aed027ef260.zip
www-client/vivaldi: Add version 6.1.3035.204
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-6.1.3035.204.ebuild218
2 files changed, 221 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest
index 65e415244fe7..8ce87a2c8e57 100644
--- a/www-client/vivaldi/Manifest
+++ b/www-client/vivaldi/Manifest
@@ -4,3 +4,6 @@ DIST vivaldi-stable_6.1.3035.100-1_armhf.deb 93657520 BLAKE2B 10ce4abc26e32767a6
DIST vivaldi-stable_6.1.3035.111-1_amd64.deb 97931944 BLAKE2B ec4e067f0da351ee3856a11f703137c2a2a012fee061b5be2b8ba00296753ff9f0368215b6b2cee8d9711520dfd57210202c491ac1287f0ebbd594a182ecf7fb SHA512 37e8dfc3bf3c370ab2ce7addeb61629fb7b0bd23ed97160149d5744c3e6b7d0b403ceb86ba6a04184ce9d3fb4b66c043919ebd45322c651eaae73c3113d0bf63
DIST vivaldi-stable_6.1.3035.111-1_arm64.deb 93480420 BLAKE2B b7dc79f1b6b0eb3f178818bc82457501b893831f861ecabc78b5539522a07301edcb8322d7d4c556739094b27fb00c5901c149a7fb34a514ef9355a53defc19e SHA512 880d7dbb6db9d675f7ec3a04a77ac36361d6bf98fe8f0036b8104351d47e178d5b0ecad55a16dafbe388726bfe22f241c3b82213b6e1de98687d8f62c091ec4a
DIST vivaldi-stable_6.1.3035.111-1_armhf.deb 93653364 BLAKE2B 22f57193efdd67760e503ef3dd8c3735584d10909b040113a75a8237e6db93e0c35afaaf06ca44c614195605d7e569a459bcbda05e9e5f2cc6b95a71769e3bee SHA512 7f7dac295d40b074fac54af0a514e14107abc47da824f686fbfbc9a2c23c4d54f6ef56b8574ec5366b98b87c520ebc3f1190dca42f09373f3e8f2577a88c354e
+DIST vivaldi-stable_6.1.3035.204-1_amd64.deb 97876972 BLAKE2B 4a988ee1c81672f4300b5575a6a51c4ff76c4220d74c3ddd06f0203c5d78a58dfed281eb6ca0dee98d191126f41090ddec17d483e026bbc6636e94bc9b67353b SHA512 4c232056335fb3f7b12bf97aeb4eba0bbc6f44a95b81a50eda3161790495c50b51a62cb73678cf1e51b8aab1068b0b619ed9dfbded9d0f2094ac32868cbdeda4
+DIST vivaldi-stable_6.1.3035.204-1_arm64.deb 93553968 BLAKE2B 4230361200d7cfb4d79cf0bee752fd2363b1720b39f73db8ccce336dc9d7156223dd0576ed09770896d84cb71d8de0f901fd799c591f1a1b5cf5486e60354795 SHA512 7eed4269dd956df52e7bdb28ae7c21222f58dd42664530828e32e1f0f0afbea46f3166d6b964ef4c2793eb86f909a42ba488474b7e0b5ac54ff5ab45daf8db86
+DIST vivaldi-stable_6.1.3035.204-1_armhf.deb 93654696 BLAKE2B 35021af8455f33e7320890668f071b69c1d4820f8460b91da1ecf024f11db10a4da09c829f05e13d1be265b1c87d967b09883036cbf95eae5e989f20c6570fbe SHA512 3ff997c4d76d3ffa678158aba7aee5cb2a63a14a82c0ce09820abcb88a8aacdb046c58c325a1371e2b984329001d730ec9e1eabe781d33b7a019d84001522723
diff --git a/www-client/vivaldi/vivaldi-6.1.3035.204.ebuild b/www-client/vivaldi/vivaldi-6.1.3035.204.ebuild
new file mode 100644
index 000000000000..0411bd537ae5
--- /dev/null
+++ b/www-client/vivaldi/vivaldi-6.1.3035.204.ebuild
@@ -0,0 +1,218 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CHROMIUM_VERSION="114"
+CHROMIUM_LANGS="
+ af
+ am
+ ar
+ az
+ be
+ bg
+ bn
+ ca
+ ca-valencia
+ 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 linux-info 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="*"
+CONFIG_CHECK="~CPU_FREQ"
+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
+}