summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2024-03-24 21:15:56 +0000
committerJames Le Cuirot <chewi@gentoo.org>2024-03-24 21:22:37 +0000
commit7eed74d644aa1b6ccc33533130ec5f8d57066cf5 (patch)
tree6883ef67e664d96f3929f8902dd0ed5c9c0c6146 /www-client/vivaldi
parentdev-libs/castxml: Fix max LLVM version (diff)
downloadgentoo-7eed74d644aa1b6ccc33533130ec5f8d57066cf5.tar.gz
gentoo-7eed74d644aa1b6ccc33533130ec5f8d57066cf5.tar.bz2
gentoo-7eed74d644aa1b6ccc33533130ec5f8d57066cf5.zip
www-client/vivaldi: Add version 6.6.3271.53
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-6.6.3271.53.ebuild224
2 files changed, 227 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest
index b1c349b2f492..b401235d1c91 100644
--- a/www-client/vivaldi/Manifest
+++ b/www-client/vivaldi/Manifest
@@ -4,3 +4,6 @@ DIST vivaldi-stable_6.6.3271.48-1_armhf.deb 102217912 BLAKE2B bb6bc6d96178eb9186
DIST vivaldi-stable_6.6.3271.50-1_amd64.deb 107494848 BLAKE2B cde96f50d20f71f9677740fac1fe5772a93e68fadefe4ffdeb17f1bb6292c6a45f19ef98019a16ea03a55a780adf4b5f98448e876422cfaf97bc33500f367547 SHA512 4b215f64adec76510ece703f930c85e873966da9f43bb2461c2234acc9182d2f203c391a227c70a41baa6b37c17441a8f7a0ad0d9f836480393dbdb7a40bbc37
DIST vivaldi-stable_6.6.3271.50-1_arm64.deb 100620912 BLAKE2B bd7ee8687be15e14b36a8b305095c0a215e9d8467816f5d5ee086d0c11945b2f9e4ca19013811f1edd307d1cc71fd33a91c15c93a6411740c8aa69f3024099f9 SHA512 74199322d02ea3186d624c0fe54b69e3c1b9ffa0d0fb0333ddf8f52edd83548e184d76feee8ad423c42ecb497cdc01dd866f008a7366588d1d765e3f40dfe6c0
DIST vivaldi-stable_6.6.3271.50-1_armhf.deb 101963760 BLAKE2B de8dd569da52ddd364763b705b02f1a621fdd3562213d15dd1b3c9c7bbad159ee20cf0826d78ca080aec68b6bb826500e189e80ac8f0487fc5cb6c443f9d215e SHA512 ebca07f449b9e203f3f25458af23d91c964d67aada3a5a0d9b0b86b8c9e20434c3971490ebf717adbd05e0295e99078460903d71da489bbe6ea4a2e1aefe07bb
+DIST vivaldi-stable_6.6.3271.53-1_amd64.deb 107544584 BLAKE2B 9ab3434f673d1f904bc82c5d644eb769df1ef80ae6c7741afaee7ec595e12d75a104e4ac1b8c108c66dcb2a3641363bcf8e50c40c673795bafaf6562a411a448 SHA512 ac1065ea7105b24b2f2ffeab6f09b31c4b8a9c5d9c4f4ccb72c22269771414c382c3220828878c2cb406ab3c6d3d864d4c2980834c8d437665d8c6f0585dabdf
+DIST vivaldi-stable_6.6.3271.53-1_arm64.deb 100642784 BLAKE2B c101687c879f7c220bbf32501f6b4392123a1e407701c17533eb7d0c9a091dcb30345cf18103087f74686fe3b58c1516a05e6fc0a8e34bb2728a52a1545ddb5d SHA512 f1e70473db8134ea0da36fdfa134901960510a6cbe3e7d0eb1d19b8e2c6690fadcbd91342efafbf5a01b8ae26d9e89e40f099cb543fc065f403340cb6d1813a1
+DIST vivaldi-stable_6.6.3271.53-1_armhf.deb 101980136 BLAKE2B 5cb2e27219dec669facdd6ec37762dd7d3fbf5fe827ac5d97c123ce257fc57e5f8c908a427e8d52a30d6fe6019136564d6b61398b55c8a92031e1b5c91809131 SHA512 e73ca6c59a950bd17d5684468451e7a7409322fb08fba6715c3c9b14483ddb6062298423da742f40388d12d16c37cec0c3836e217973dc90efd90c45d094b6f8
diff --git a/www-client/vivaldi/vivaldi-6.6.3271.53.ebuild b/www-client/vivaldi/vivaldi-6.6.3271.53.ebuild
new file mode 100644
index 000000000000..633a1587fed0
--- /dev/null
+++ b/www-client/vivaldi/vivaldi-6.6.3271.53.ebuild
@@ -0,0 +1,224 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CHROMIUM_VERSION="121"
+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}_"
+
+SRC_URI="
+ amd64? ( ${VIVALDI_BASE_URI}amd64.deb )
+ arm? ( ${VIVALDI_BASE_URI}armhf.deb )
+ arm64? ( ${VIVALDI_BASE_URI}arm64.deb )
+"
+
+LICENSE="Vivaldi"
+SLOT="0"
+IUSE="ffmpeg-chromium gtk proprietary-codecs qt5 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
+ )
+ 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$(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
+}