summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2022-04-27 23:01:45 +0100
committerJames Le Cuirot <chewi@gentoo.org>2022-04-27 23:01:45 +0100
commit7ff1cf06438e4bc9cff3066b6d8c47689fb94f6d (patch)
tree88d59d49afa397ee668d0cda6b99fca2ec75b0ae /www-client/vivaldi-snapshot
parentmedia-libs/munt-mt32emu: Drop old 2.5.3-r1 and 2.6.1 (diff)
downloadgentoo-7ff1cf06438e4bc9cff3066b6d8c47689fb94f6d.tar.gz
gentoo-7ff1cf06438e4bc9cff3066b6d8c47689fb94f6d.tar.bz2
gentoo-7ff1cf06438e4bc9cff3066b6d8c47689fb94f6d.zip
www-client/vivaldi-snapshot: Add version 5.3.2656.3
Package-Manager: Portage-3.0.30, Repoman-3.0.3 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-5.3.2656.3.ebuild204
2 files changed, 207 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest
index 1c6239c12ff3..3cc1432e14bd 100644
--- a/www-client/vivaldi-snapshot/Manifest
+++ b/www-client/vivaldi-snapshot/Manifest
@@ -4,3 +4,6 @@ DIST vivaldi-snapshot_5.3.2643.3-1_armhf.deb 78922984 BLAKE2B a159305edea693f27b
DIST vivaldi-snapshot_5.3.2652.3-1_amd64.deb 87820896 BLAKE2B b68aa42c5cd5f455700cf1a0cf1dd89a14f7200e8b82a71478664ab1bce0d3b1d5ec30c357a184a12cb87d846f2b4af603fb0dd9271bed2cef7878ea67b9a6ed SHA512 703ff49275e0aeb6c82d3f0f4f33f1b353e9f23fb99f2cbb44d9357cbf376b82a898659dc67dd32e660b1947653632ccf51e67b5dc8d213ab1721da32d8a9c7a
DIST vivaldi-snapshot_5.3.2652.3-1_arm64.deb 83028328 BLAKE2B 3224cee79e0454bdf605a4b81a6190fb0feabdfcb2c07b2724897eb85dda9c5a6ccce15244e70628233146c1bbe04270c4d9c163ffa74dfd741f1fc3b0bd3b43 SHA512 6da23ec18ef70b89aa86ae778fbaf26250a63e4eae72384610253196a961a2db22b7c4adf1f544f968948d7306282fb11f58bc863afce6c9ddce43696316617c
DIST vivaldi-snapshot_5.3.2652.3-1_armhf.deb 78930880 BLAKE2B f498cf0e8f62e01e4da675f70d26147f9c599659b407bebf12d6465a9785f69202bab7d191fc257066c2fe2a7b05aeb4897b4fabc59ef0df32078ece96234d96 SHA512 392005e3c8ce651c94ec0b3c79b108c787784583756c364dc9255b4fd11ec6b0b6d0e480b49ab891edbab642dcaadf018e1a212e4c8a3b0ca4a93b4da55ef62b
+DIST vivaldi-snapshot_5.3.2656.3-1_amd64.deb 87815732 BLAKE2B 866fa4f86ef952dab2f9a0b663976948a5fb88129a3f9561ce9d84c57077e964decef969c670ac1dc766d1c799d2232bba6b3077903f8f62e5c7fb79875a0f36 SHA512 ecc3fefc97b8ac419cf80f6202ce8817cbe7beb4ecbce6e02b7b4e7328a6a3cdaf510cfe235bb1703724879ee768311258bc083dc3b01232ef10a3b7a85a47c0
+DIST vivaldi-snapshot_5.3.2656.3-1_arm64.deb 83051204 BLAKE2B cfb53638c4a70ac1566d0902b6ad469c48bf4b76190a25ad92bed3c37028e7cdd4817716202a57e7db95c27827c46c3aa65887fdf36361d455aa83192b3bf56d SHA512 f356b900a68b48113df79dbafe4788d93ec4d0aaa323a58585256422612e87e386e91305607a4c10fd00d634bdadb7839668f2a00a3dc780802fb2b5943bbf5c
+DIST vivaldi-snapshot_5.3.2656.3-1_armhf.deb 78955360 BLAKE2B 79659e6dd946ab72ee0b1ec4e918d91026324ec7b9a7952f368d92714c0dd7cfbe805e12e6b7c71d0a0f43058c208818ac94056ee96ecff277b7c8648802f6a9 SHA512 367db7fe29d27773f01c65f501d283b5f232ca001121e9e51091a70d8e8d1d880f77663b3ff2656e1bb6ba6031aecbcb6e3217f926b0f48389e03dc50fc93c4d
diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-5.3.2656.3.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.3.2656.3.ebuild
new file mode 100644
index 000000000000..d6cfbbe0cedf
--- /dev/null
+++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.3.2656.3.ebuild
@@ -0,0 +1,204 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CHROMIUM_VERSION="100"
+CHROMIUM_LANGS="
+ af
+ am
+ ar
+ az
+ be
+ bg
+ bn
+ ca
+ 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
+ vi
+ zh-CN
+ zh-TW
+"
+
+inherit chromium-2 desktop 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="proprietary-codecs widevine"
+RESTRICT="bindist mirror"
+
+RDEPEND="
+ app-accessibility/at-spi2-atk:2
+ app-accessibility/at-spi2-core:2
+ 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]
+ proprietary-codecs? ( media-video/ffmpeg-chromium:${CHROMIUM_VERSION} )
+ widevine? ( www-plugins/chrome-binary-plugins )
+"
+
+QA_PREBUILT="*"
+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
+
+ 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
+}