summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2023-11-30 22:53:17 +0000
committerJames Le Cuirot <chewi@gentoo.org>2023-11-30 22:53:17 +0000
commit1af6be4fddafa7d0cd3704743e902cf6d77d81e4 (patch)
treef82d76ac81a79c45d62f8c8bc32ffabd324f8c91 /www-client
parentsys-kernel/linux-firmware: Keyword 20231111-r1 for ~m68k (diff)
downloadgentoo-1af6be4fddafa7d0cd3704743e902cf6d77d81e4.tar.gz
gentoo-1af6be4fddafa7d0cd3704743e902cf6d77d81e4.tar.bz2
gentoo-1af6be4fddafa7d0cd3704743e902cf6d77d81e4.zip
www-client/vivaldi-snapshot: Add version 6.5.3201.4
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.3201.4.ebuild223
2 files changed, 226 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest
index 01b8a564f642..77a17f4339cc 100644
--- a/www-client/vivaldi-snapshot/Manifest
+++ b/www-client/vivaldi-snapshot/Manifest
@@ -4,3 +4,6 @@ DIST vivaldi-snapshot_6.4.3160.38-1_armhf.deb 100928836 BLAKE2B dea767ba128068c6
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
+DIST vivaldi-snapshot_6.5.3201.4-1_amd64.deb 106892644 BLAKE2B 9db9d0027e9b07ad9acc200b29f2b4efa7aa9531246ab66524b6d1eda4bb5cd14c8171fa8bc81bad806946ac65c51e987af739d64584491c90844f8a03aa027a SHA512 f4baa645eb18391c9b64c1733ccd1adccaf15b72cb3754c5a579a45e18018403e426687e905d32f69c500ea13f7627737f5bc742432b6750a61cf5c2d600bdee
+DIST vivaldi-snapshot_6.5.3201.4-1_arm64.deb 100779560 BLAKE2B 2de3cea82f927cad25cbf96ad4d5a2fcbb1c1c60d41a0d45ccef1024babe75fb87134fe241a7bce8db91fe05aee0e9ae624b570b77d0810f683e55cae3911736 SHA512 80f3aaefffbf311cf8f7253f2ee33051bd5eca0261d20baebec9451cccccf5f6678e25eaf761d8ea35f3e778a41c10cbc324c615083ac9b81002c23f2eab2d98
+DIST vivaldi-snapshot_6.5.3201.4-1_armhf.deb 102205784 BLAKE2B e12c1a0e46169a9b194c35006bd624c8ac043f9a21acabb65cad689ddb7fc230649058c45c9f60d3c8f5c75131c0f3bb2c342cffa5ce152fc156c8d2cb4e8f75 SHA512 282577a5946807ed619b7d622b4f1a06bad18b18cfabe45b11579877edad8f54a9921ffa36bd875712288daa781bfd58003a4022e797d7700c0e85c9e1c23d4f
diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-6.5.3201.4.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.5.3201.4.ebuild
new file mode 100644
index 000000000000..9d522c106aff
--- /dev/null
+++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.5.3201.4.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
+}