summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2023-06-27 08:48:26 +0100
committerJames Le Cuirot <chewi@gentoo.org>2023-06-27 08:51:02 +0100
commit5a9ec79d6b65e619d9a3329be9e2525e00b1da84 (patch)
tree7348e68647fba23cc392dde6c3229aba3a626426 /www-client
parentdev-java/xz-java: verify-sig, EAPI 7 -> 8 (diff)
downloadgentoo-5a9ec79d6b65e619d9a3329be9e2525e00b1da84.tar.gz
gentoo-5a9ec79d6b65e619d9a3329be9e2525e00b1da84.tar.bz2
gentoo-5a9ec79d6b65e619d9a3329be9e2525e00b1da84.zip
www-client/vivaldi-snapshot: Add version 6.2.3060.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.3060.3.ebuild218
2 files changed, 221 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest
index 87a8697818ad..9d1b0c218ecc 100644
--- a/www-client/vivaldi-snapshot/Manifest
+++ b/www-client/vivaldi-snapshot/Manifest
@@ -4,3 +4,6 @@ DIST vivaldi-snapshot_6.1.3035.50-1_armhf.deb 93617388 BLAKE2B 4b856b3f8f4ac7bd6
DIST vivaldi-snapshot_6.2.3054.3-1_amd64.deb 97843608 BLAKE2B a81dbbb9e5f5277e08b4e9b5f6ccd0b5739965347eceba949c3761f79e0697a26f25dbb4ff570c68e2348d511d99e2e161093b19f65c28e21cb2de949cfe838d SHA512 7e2bed296b776e70df9dc63ff7a779a8b4aeba3ac805e4ebd620ec718571aa15ba5af1d8067b993162bc733e836622a9cf32d91b31f0a7dd41a799d2c333d5a3
DIST vivaldi-snapshot_6.2.3054.3-1_arm64.deb 93452864 BLAKE2B 9ab10af7ba68ed0e4c0d3d29506893f1bb603d16225b4cfbbac11217d5df59a9e759b4fa39b4406aa5b2ed7f2a32d002161996f618cb9139bd26e14870150165 SHA512 d45566aafc217d7fcf5aa1239b5e9c57ed25d40e8f8bb6566c86a31bae8bc7a5a038aaf16cb6bd7bd360a018af3777c379b64043a486c71eda8fc029f661e17f
DIST vivaldi-snapshot_6.2.3054.3-1_armhf.deb 93640980 BLAKE2B 063589607b0f09a40dad47dfa0666fc20f89413b6971e9bbc7e764efd5a730a212832b2061989e8cf30a926417bdad32f50fce754deca80594d1bcc19660ffd6 SHA512 6fadd05263449b14fd2bd4a7dc47ae6a8603b598f8964f92f3f56fc17bcfde3f0c108102827a56c42d742675f9bc7f293f97dd3fd40c575ad19d8be3d59862c8
+DIST vivaldi-snapshot_6.2.3060.3-1_amd64.deb 97889668 BLAKE2B 221e47915b0051d5d12387a8cc869593fd206b708af42b0257a9a94ba46d87158c90fb2cb885ed296467bda965a7780c4eba8d42f98f6a30c659505c85ec85d2 SHA512 d6c4ce3d8c50c2f955d05d69c5535ecc94b0549a2f0418d0efb9f25c20869afada726d3ae58cc8ba981b36761fef173996514aa2d1e98d8590f2319995d471a6
+DIST vivaldi-snapshot_6.2.3060.3-1_arm64.deb 93486932 BLAKE2B c6bae8b5dfba8007d77bcd875ba558d9f6cc4c1d2780d4c0cb1344f2382f588f1dd6fa284cd523e7b047dec59cd2094e400202b35c25733ff7599761adc2a08a SHA512 4e1cad00d23c8c12be4e3fa64582da13210de23dad697435c72d3fcad4b8f230ef4056350a8c5df329cc2a1440a07bbd383d686fc24efe83a7222f9aa1e6d668
+DIST vivaldi-snapshot_6.2.3060.3-1_armhf.deb 93658140 BLAKE2B 8e6800aafcb9991c25fb5eb1e5632518cfd0d121848adc24c910f65504a3c72795202fd17cd7091408cf9add79aef79851406bef42cc607cd866e8e1ca799176 SHA512 008de33cbb15544b01984dc49beb029b5da5f35de2b0a145438cebc9150229330ab8632702cf008f8531a4c5ad1cd77b07bec417781086646b4d3f4a2d104407
diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-6.2.3060.3.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.2.3060.3.ebuild
new file mode 100644
index 000000000000..0411bd537ae5
--- /dev/null
+++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.2.3060.3.ebuild
@@ -0,0 +1,218 @@
+# 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
+
+ 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
+}