summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2023-08-12 11:17:50 +0100
committerJames Le Cuirot <chewi@gentoo.org>2023-08-12 11:17:50 +0100
commit18618c15792c0e1a532aef4a27c8299b6a829740 (patch)
treee1eda9a18dde64518d71a6671cb5f80a11efbdc8 /www-client
parentdev-ruby/serialport: enable ruby32 (diff)
downloadgentoo-18618c15792c0e1a532aef4a27c8299b6a829740.tar.gz
gentoo-18618c15792c0e1a532aef4a27c8299b6a829740.tar.bz2
gentoo-18618c15792c0e1a532aef4a27c8299b6a829740.zip
www-client/vivaldi-snapshot: Add version 6.2.3102.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.2.3102.3.ebuild222
2 files changed, 225 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest
index 625188aa16f7..c62fe76e6fae 100644
--- a/www-client/vivaldi-snapshot/Manifest
+++ b/www-client/vivaldi-snapshot/Manifest
@@ -4,3 +4,6 @@ DIST vivaldi-snapshot_6.2.3077.3-1_armhf.deb 97523048 BLAKE2B 4ecf48c5e49dfa5eac
DIST vivaldi-snapshot_6.2.3096.3-1_amd64.deb 102038836 BLAKE2B 36e2e7e883f7a354dc2241f2f0121e04309b439c068886827b88f93edab70e77fb2ba59738dda59e90fb8c0379c6b60bace5e4ff2f4f8983e34de2362b6e5407 SHA512 aed351422094ab708bf1962ab4803671dd903b4eb094cfb2076df759a2e8f5359db11ddf939f02771edf99a3603a3c20f929cfc6a92aa7b927e97363a6e9f7e6
DIST vivaldi-snapshot_6.2.3096.3-1_arm64.deb 97107556 BLAKE2B 98c4ccad073ff768bf3b163da430a517a55c2da8c893766b2fc95f2934f8297489012b4db42b5af0167f1fc54d3608133576e95e91a2528b2137372d9808eb74 SHA512 b05592823534269cd94a10c780e7315a80d303669f8d8143b0c71733eb54b603963e6b35ea2c9e8ec965075f224c0125c7f029b497381b8a941e2e5a67371101
DIST vivaldi-snapshot_6.2.3096.3-1_armhf.deb 97675332 BLAKE2B 90070d43aa0b6cd2500a83f65af49e8dbd6a53f61f84aece3cc1e13decd2fd15b805ff79bc5eedda3db2ba23c3854ed01000dadf4a3e0fe6d03f035b80f4315a SHA512 1ef1e3af3d522f8792fa349492220dbed99a2a5aa6da51f90654dc6459540da30083e722b1a7b45c8add7ccd4ee7eef751e7665e07d9c6bd37b5114c4967e2e0
+DIST vivaldi-snapshot_6.2.3102.3-1_amd64.deb 102121088 BLAKE2B 2dda1b0b94470e3b82a55efa143c0f989ee9fa47f6cb6355a245da0f60353260bf043781bdb1d54207ac1f6c4169c4644d6e32b89ff90bd0461331a2a975b659 SHA512 8e5f97cf2deead5e64c86cb08cef43b45a7b491d39d8d611e05e2e33665724c459e4858d8e8f7fed92b288f8a572badbd57ddbc7c4f358cdb67157fb04c4fdd7
+DIST vivaldi-snapshot_6.2.3102.3-1_arm64.deb 97144424 BLAKE2B a33c95d53eeb6b64b10c4424278755373f2dbe5fbafbf64a12ded40544acaacdc35ce618cc37a2a616e44b559159c4f3ed922cb4230eb5c355e134de41206009 SHA512 65d7aebd4f08c8fa0a98da39d6e86d0f5dc74e55111694f865e84405ead7031c61e2a7dea33a71232bbd32538f239f450ab54d50b2030e60347dd651299b6a8b
+DIST vivaldi-snapshot_6.2.3102.3-1_armhf.deb 97713688 BLAKE2B 2826f6c2a164a9fc84a330a865162f92ded3d3810626bc4f4a1a175b5059809b7d66eb61d1fc5c2d7d9699250abedfa24f628ef1e3c2b15e4eb5aafb64b052c5 SHA512 de4a2042b2f2c8d5ad52d4ae7ff4c627f74d70ca0906335cf146c5a550420b78b956f89231f6db661afcf675728c81402d2545ce01c29bb63f4b1101e8527eea
diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-6.2.3102.3.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.2.3102.3.ebuild
new file mode 100644
index 000000000000..d63e17d4cb01
--- /dev/null
+++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.2.3102.3.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
+}