summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2023-09-13 22:49:47 +0100
committerJames Le Cuirot <chewi@gentoo.org>2023-09-13 22:49:47 +0100
commit516918db7c6a6376b01a8b20f83618fe3500eac8 (patch)
treede02313a67993710523e0848c38222a2bd7a40ef /www-client
parentmedia-libs/libplacebo: update live (diff)
downloadgentoo-516918db7c6a6376b01a8b20f83618fe3500eac8.tar.gz
gentoo-516918db7c6a6376b01a8b20f83618fe3500eac8.tar.bz2
gentoo-516918db7c6a6376b01a8b20f83618fe3500eac8.zip
www-client/vivaldi: Add version 6.2.3105.48
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.2.3105.48.ebuild222
2 files changed, 225 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest
index a981a9852c6f..fc28172e6641 100644
--- a/www-client/vivaldi/Manifest
+++ b/www-client/vivaldi/Manifest
@@ -4,3 +4,6 @@ DIST vivaldi-stable_6.2.3105.45-1_armhf.deb 95609104 BLAKE2B 84bb209b4b0c1008d83
DIST vivaldi-stable_6.2.3105.47-1_amd64.deb 99948052 BLAKE2B 236a346c8ce452f76d39d895c53ab29283bb1b1e603d13d0a1faedd2a710cba3c831cfe881142b7dc264a418f6c028cf6afcd9e848763ebc3ee448887e23fb8e SHA512 e95352d046b716afeec0954df0373d5c5fd0345c742a6e840e1b25a3ea0acbccc762720b67af600a29f7451360c972deaf037a5a4de3ce1d44d8945d26b5f099
DIST vivaldi-stable_6.2.3105.47-1_arm64.deb 95030768 BLAKE2B 78a7e76f15736cb2707e3741bd6a674f059225a61cbd10d51f68dbc3c3583b5d5d83b1b6834d937b8a0f98e8a73da5e2e4caaabd83a088c03aa342e6886d1393 SHA512 0b4a894cb5f361f721322e19cfcd02314dc99143e071941c9543276e8bf4cd7975cc2e2ba3fbe52a518f027e13c5072af74c4ca1e650f4f6ad24ba17fcdd63e3
DIST vivaldi-stable_6.2.3105.47-1_armhf.deb 95606020 BLAKE2B 5e612ad6158995a2926f5c15ff4878ec8315e3b13a9283cb1f5f2ddf96d8eb332a38195cd57e307a6817d96bfca3fb79c4e2a61879ae44c93d58074369e40eb9 SHA512 9abcf9f193af13bb6b80aec8c9ebd541a91ad4da70dcdb51a80456c46f95a9b8b9d3fe3d08353507256ba49374d5db6adccda1000294e2aeca77188a7db50b86
+DIST vivaldi-stable_6.2.3105.48-1_amd64.deb 99948988 BLAKE2B fcac98bd773990ac99c2130814431829ed79a78c83f3f32ff015cfe5d70eaa31922f80bc6addd5f18af68951c973d20c5be6c4ae706ca13db7b85f5215097c86 SHA512 373e62c10366feb1e78a6ec58c2fa56ad9a07108e87cfd6631e834a10f6798797bb260233235368e5e780e564dc5268690253d1fd2c12a8713fc85cd0dec0d97
+DIST vivaldi-stable_6.2.3105.48-1_arm64.deb 95036732 BLAKE2B 23c86cedfe03c194aa37c7f83fc6772e4ee734ec41e35c593fa5cd9c65a30d3dab76d37a3f4deb19e9e70552e693bc232cefae9df61609476c13ace65ea31a29 SHA512 5ccfe79322b6a27199d9a7fa6ed79468bfda519f81edde10a9a5f08d33564acba9f959de4a2be7d7e1f8a6b2f5958f40ebbe13c3680a648b01fd6bc8722e4bdd
+DIST vivaldi-stable_6.2.3105.48-1_armhf.deb 95608000 BLAKE2B eff37dbcae32b48b33555a84bf28600791776dd20b1e6509420a1163edfd46dfecc76bdc9c2e57b74394d70a9dc7c6d4547011ba3034dad6778cb2dbb08e0b4c SHA512 9f32c0df42b1d44c9211771959cc86a63ba3fb7755a1e7a845cfb2a8fcde7c6bd2a149e785398779b99044bd08d6586c4c395e4f1aed568f25ea29f0fed9ac61
diff --git a/www-client/vivaldi/vivaldi-6.2.3105.48.ebuild b/www-client/vivaldi/vivaldi-6.2.3105.48.ebuild
new file mode 100644
index 000000000000..d63e17d4cb01
--- /dev/null
+++ b/www-client/vivaldi/vivaldi-6.2.3105.48.ebuild
@@ -0,0 +1,222 @@
+# 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
+
+ if ! false; then # use qt6; then (TODO)
+ rm ${VIVALDI_HOME}/libqt6_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
+}