summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2023-11-16 23:28:05 +0000
committerJames Le Cuirot <chewi@gentoo.org>2023-11-16 23:28:05 +0000
commit7fac6b2aec633e423056ba5886448918abdb6b51 (patch)
treed640ae54fd1e469765db36a596dfe3cfb7c3431b /www-client
parentdev-cpp/sdbus-c++: Bump to 1.4.0, fix GCC 14, drop old (diff)
downloadgentoo-7fac6b2aec633e423056ba5886448918abdb6b51.tar.gz
gentoo-7fac6b2aec633e423056ba5886448918abdb6b51.tar.bz2
gentoo-7fac6b2aec633e423056ba5886448918abdb6b51.zip
www-client/vivaldi-snapshot: Add version 6.5.3189.3
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'www-client')
-rw-r--r--www-client/vivaldi-snapshot/Manifest3
-rw-r--r--www-client/vivaldi-snapshot/vivaldi-snapshot-6.5.3189.3.ebuild223
2 files changed, 226 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest
index 728aef72a4a4..acc416dfa6f1 100644
--- a/www-client/vivaldi-snapshot/Manifest
+++ b/www-client/vivaldi-snapshot/Manifest
@@ -4,3 +4,6 @@ DIST vivaldi-snapshot_6.4.3160.33-1_armhf.deb 100674444 BLAKE2B 01132c32981809bd
DIST vivaldi-snapshot_6.4.3160.38-1_amd64.deb 105636464 BLAKE2B 7026686e42d4787bf702211b2d635144f049e51451bda1841bc3cdaffee0434a481da1ae72ca323f8d541e521f625849710d06ce29eda86632e0d7b43750291b SHA512 01ddca36648c2dedf0aac567566792951f384e5015d70496340a19dec184bcf571a10e796f88bface8eb118eea6c836925a9b9a35ae9a1bfbc79a4ff11f7623d
DIST vivaldi-snapshot_6.4.3160.38-1_arm64.deb 100304928 BLAKE2B f6c990cf2caca87aa3b95d0ce5b3bee8025f515ba9a61af8b233b825ddc4fb308aae0e4f8b252dbf6815768f5a458b1b876a09f636d580589a13d3d5abbcb698 SHA512 13aba238d33bde1b762b2b6456221439bfbfdd59b2751555678cd879a03ab84e2eea39967b7d259e4f152c35256ff629c9579bfd4c2325b3c6623abeffd1ce79
DIST vivaldi-snapshot_6.4.3160.38-1_armhf.deb 100928836 BLAKE2B dea767ba128068c68f9e9e3b9f0d334436278cc53888d7e06afec6e127400c2436d64163c8ce33d875fd358d5c53aea57219133ed73a841a34d75650df872d2a SHA512 5fab22aca5fb85cef4376a41d4b8adc4d631f2068f87d122f10d90f11246b27a864b13619ef4253a389a0ff886ee0b250f8369e8db2adf8bd3a8742c0d36923c
+DIST vivaldi-snapshot_6.5.3189.3-1_amd64.deb 105698060 BLAKE2B e880a7cb904aaff8852b9868671b9927dc8e1585cc21170d1f3c1423be886d991cb528ba0755ad435bd33011ec96cefeeaa95a9dd4b467e8dccf164e5c7c727f SHA512 aaab318fe84ea387d6ad93eead969d4c8d2fec94a7f78b311f084b61efca77ff1518a4d867c17e58ed4f28afe0b92d0501b9a82364f8013220d722b5a0344f03
+DIST vivaldi-snapshot_6.5.3189.3-1_arm64.deb 100417824 BLAKE2B c73a68f6c13d0ab83c081e255cc1a84fe71e6d5d72a28778d6de616c5db8e8c88725f6152ed4664c24c6fc781223612ff343f32e3a1a877b58fdd12d887f98da SHA512 2f59457619b943bb4d162087eb97a34c1469bbba702f3181122f665fa5b8217943e4415bc1ad18e64d789d36f1d2e206968d184094e11750c4e30342d833d98a
+DIST vivaldi-snapshot_6.5.3189.3-1_armhf.deb 100126020 BLAKE2B 62bd7382efb5e5076f94ce44e33d02ced5fa4b79b6389ac6f8b80fd69cab78dd4f986fd291c24a2b82209a789c7d410beb4c4a0140ae840117d4863c6695394d SHA512 a99b7825f4d15e4a42b8d864d809b9d066f5a2233afc3e93d724e0dd11e81ee80032c4714fbc31c85840faba884c651999823736e535062734c1a239afd6473d
diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-6.5.3189.3.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.5.3189.3.ebuild
new file mode 100644
index 000000000000..9d522c106aff
--- /dev/null
+++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.5.3189.3.ebuild
@@ -0,0 +1,223 @@
+# 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}_"
+
+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="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
+}