summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'www-client/vivaldi')
-rw-r--r--www-client/vivaldi/Manifest3
-rw-r--r--www-client/vivaldi/vivaldi-6.9.3447.44.ebuild226
2 files changed, 229 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest
index 1690ad7003b3..df8227890db5 100644
--- a/www-client/vivaldi/Manifest
+++ b/www-client/vivaldi/Manifest
@@ -4,3 +4,6 @@ DIST vivaldi-stable_6.8.3381.57-1_armhf.deb 102067572 BLAKE2B 50d928bc3afefece7e
DIST vivaldi-stable_6.9.3447.41-1_amd64.deb 113637436 BLAKE2B 9a588d94b66326c32b658001941da711de9a130ffa3ae0e2d404b623f5cd9c78a0d63dbd06429596329ce90a999691f0b47783eddda21a65f647e87ba17a4b64 SHA512 401670fc70bad9a1f8fd55db189c458f571b950cf0efbaf6275c8cf95fed907c16a717b8654e56f97903bfa85f587fe8922968bee080d0c11e87476faaa71ba6
DIST vivaldi-stable_6.9.3447.41-1_arm64.deb 105092716 BLAKE2B 3067fb7931e258c404e35cbf3562e235d1061de13155a70e2d86cccc599e2b61afe3c7d04e52f51a4aa38f5a5ac1c7e0ca4271d88d03fcf1ea1edbce09f99e9e SHA512 c7a5c06095d5138539753e094f844371b082f551b7132fe0ccdf40fe333513a1f4bc1e4cac0a8be2d0732bd08674ce49f4b7bdbfc49eb22fa951a9fd16706858
DIST vivaldi-stable_6.9.3447.41-1_armhf.deb 106139084 BLAKE2B 73e58ca552a403f7f2ff15b63ee4b9ec1707d78653225dafd58b9c5aaa8fcbe1b19eccd82ae1c1dd5fc77b27d3e8d273bd6d2ebe0ff6151a41c8cef322c956be SHA512 347b7b0ba9d35d270fb7a621cf85f36576be44afeede1ce35f4104a1aaeade22594a9c8f7ab07f374d0e6675409ff68d68ca9962a5da0e3b58cb6ce6af215dff
+DIST vivaldi-stable_6.9.3447.44-1_amd64.deb 113482544 BLAKE2B 2dd42b6912bb19557931a04ed2ca31cf6ce93337843ddaa5c37e14cbeb199ca1b9bdccc1a55a022afc321e8d5c475d36070fb438df7d797e507ade549a1c7152 SHA512 94da9b5090b1fb1e32625ccc7cacec33d5492b3255fc25538592bd807129a476900bdcdb463a6f49fa93a68f42b2b917e60eca659954941b52671dd6df7e3c2a
+DIST vivaldi-stable_6.9.3447.44-1_arm64.deb 105102392 BLAKE2B 2e7e945276282530b36845b359a0f85770b2d2f8c0cc14037fbd58a391056a3885fac2aa38a00e212ff45500a1a30449db561e4d277c200ce0832ab0be065199 SHA512 6355f1c7ffedde42d578af1a74d237cbf6aef542df5c0da82e363911bbf06ff3bb67836ce6f885a213f83361840558cbc7ff0312a8b5a70527719e6e543723d0
+DIST vivaldi-stable_6.9.3447.44-1_armhf.deb 106147656 BLAKE2B cc72f9b139a3ccdd34e2422943830bb3566f4a86024c6dde1e5191fae732198128293328ca22dfe6f82f0161bbdfbcb9d74f8cc2027b46ecba345eef55240f60 SHA512 225aab7de66be73614343cd65460dfcfbd00c16f9bbfb075ad6d1d6022d5f05a231e4898c55d87dd7a37e6f0c7ceb868479a33aeac8aa259c8764c1904ed7ba8
diff --git a/www-client/vivaldi/vivaldi-6.9.3447.44.ebuild b/www-client/vivaldi/vivaldi-6.9.3447.44.ebuild
new file mode 100644
index 000000000000..a0fd66eb84bd
--- /dev/null
+++ b/www-client/vivaldi/vivaldi-6.9.3447.44.ebuild
@@ -0,0 +1,226 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CHROMIUM_VERSION="127"
+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
+ 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 toolchain-funcs 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
+
+VIVALDI_BASE_URI="https://downloads.vivaldi.com/${VIVALDI_PN#vivaldi-}/${VIVALDI_PN}_${PV%_p*}-${DEB_REV}_"
+
+SRC_URI="
+ amd64? ( ${VIVALDI_BASE_URI}amd64.deb )
+ arm? ( ${VIVALDI_BASE_URI}armhf.deb )
+ arm64? ( ${VIVALDI_BASE_URI}arm64.deb )
+"
+
+S="${WORKDIR}"
+LICENSE="Vivaldi"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~arm ~arm64"
+IUSE="ffmpeg-chromium gtk proprietary-codecs qt5 qt6 widevine"
+RESTRICT="bindist mirror"
+#REQUIRED_USE="ffmpeg-chromium? ( proprietary-codecs )"
+
+RDEPEND="
+ >=app-accessibility/at-spi2-core-2.46.0:2
+ 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? (
+ !ffmpeg-chromium? ( >=media-video/ffmpeg-6.1-r1:0/58.60.60[chromium] )
+ ffmpeg-chromium? ( media-video/ffmpeg-chromium:${CHROMIUM_VERSION} )
+ )
+ qt5? (
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtwidgets:5
+ )
+ qt6? ( dev-qt/qtbase:6[gui,widgets] )
+ widevine? ( www-plugins/chrome-binary-plugins )
+"
+
+QA_PREBUILT="*"
+CONFIG_CHECK="~CPU_FREQ"
+
+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.
+ rm kmr.pak || die # No flag for Kurmanji.
+ chromium_remove_language_paks
+ popd > /dev/null || die
+
+ if use proprietary-codecs; then
+ einfo Bundled $($(tc-getSTRINGS) ${VIVALDI_HOME}/lib/libffmpeg.so | grep -m1 "^FFmpeg version ")
+ 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 ! use qt6; then
+ 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$(usex ffmpeg-chromium .${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
+}