summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2023-08-27 22:39:14 +0100
committerJames Le Cuirot <chewi@gentoo.org>2023-08-27 22:41:30 +0100
commitab83bf4f5434138370d3198014d0bfdeb731b271 (patch)
tree62f7d8d2bcca9b271bb226c8e7191636489a19c2 /www-client/vivaldi-snapshot
parentsys-kernel/vanilla-sources: add 6.1.49, drop 6.1.48 (diff)
downloadgentoo-ab83bf4f5434138370d3198014d0bfdeb731b271.tar.gz
gentoo-ab83bf4f5434138370d3198014d0bfdeb731b271.tar.bz2
gentoo-ab83bf4f5434138370d3198014d0bfdeb731b271.zip
www-client/vivaldi-snapshot: Add version 6.2.3105.31
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'www-client/vivaldi-snapshot')
-rw-r--r--www-client/vivaldi-snapshot/Manifest3
-rw-r--r--www-client/vivaldi-snapshot/vivaldi-snapshot-6.2.3105.31.ebuild222
2 files changed, 225 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest
index 03998b86a69b..89f04681dc66 100644
--- a/www-client/vivaldi-snapshot/Manifest
+++ b/www-client/vivaldi-snapshot/Manifest
@@ -4,3 +4,6 @@ DIST vivaldi-snapshot_6.2.3102.3-1_armhf.deb 97713688 BLAKE2B 2826f6c2a164a9fc84
DIST vivaldi-snapshot_6.2.3105.25-1_amd64.deb 99906356 BLAKE2B 0fff726a556e17951c3052ffe7afc3ebbcb4542c0d7f04df31f7f2442bd8c3940406af9e1db1437381522bff1197ef2a99b0693d818cb69478ae1a1ec53be6d3 SHA512 1f7769bea071a750d8caa5bc17001ec278b2daf40df531eef79783a7f71c61de66a1e944d70278821b1e03ea0ec3e294b6466e35616dc6d05577281be306b846
DIST vivaldi-snapshot_6.2.3105.25-1_arm64.deb 95011684 BLAKE2B 2c305d8f1373223b2f47912256171764c82fea7d3a72c2c655dd38b968ff72c4c1de8fc142358c87f16ebaa8395991dfc76d13a314cd28b3377e16967c72c8bd SHA512 aafdc227def4f6054d255dfd93180c66f31dcf845ae28c655ce76e3962e77b81cac6f4165b0309bc3bc59bbf486c7edb190cfcadd8094420456986810e2516bf
DIST vivaldi-snapshot_6.2.3105.25-1_armhf.deb 95572536 BLAKE2B 81341ede2f472dddd6b01d64f61b95cdef50ad09dea1a99dcde9a3cca8bf324256cd673b2deea9ace9a4fd4ccd0db6cb8ab873e6b306e6742138b77bedc989ff SHA512 99e661d1c9c11f4a70be3dee403eb06e3949294e752759622443898d9da53f80053bd9434af60e83a81a8adc7dbb58e2c68b6acbe51d47c77e6bf3972b2e07da
+DIST vivaldi-snapshot_6.2.3105.31-1_amd64.deb 99916112 BLAKE2B 5655dc3cb9291997ec0498f771785b83282a1538a708abbeb56bd568c16d45bbea6fadd511e992b2191186b3b3ef7168c83da22d264bd104e9b905eef276ad1c SHA512 432766bce0930704d5b41b6500fb17621eb9106a1e191f46c5b12810cb8c0530052570af6ff9455ef96821402d5c14480cafd03a80a5b1fac092c3af8c4db85d
+DIST vivaldi-snapshot_6.2.3105.31-1_arm64.deb 95020436 BLAKE2B 2f205cb6511cf8a2a63236056676ac7a2f7e5f0c9710eeae2de9d4c91901bf5c4325398359907eb04fde24661c3f775e015f6f471506ac3924aa7f7f8e5a7c5f SHA512 6da60ed21772b9984fb471d3bf1c5c88dc302f686c0ba4ae7e38447ea4211dc3cf654a57792081cc822ec7ea743adaf99c90970d921f3d2baf91ee3b67fef582
+DIST vivaldi-snapshot_6.2.3105.31-1_armhf.deb 95572736 BLAKE2B 6ce908d157d8f30f56f9f6c00f12f35b85c70ae86a24d2e51f9e65c3a639a81d9d4b7387a6b889c50b4e50d55074623bf7cd88b134a0bb5bfc5450914201c9c4 SHA512 485395598a583089b38968be0704ebc1690f7a3a31a016645ca01f9935172e173c5a814cbaf5fa989a05a6b93a32899403a5238db81a298a3dd57cbaf3cff7a0
diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-6.2.3105.31.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.2.3105.31.ebuild
new file mode 100644
index 000000000000..d63e17d4cb01
--- /dev/null
+++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.2.3105.31.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
+}