summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2022-04-30 10:06:18 +0100
committerJames Le Cuirot <chewi@gentoo.org>2022-04-30 10:10:09 +0100
commit492c9983083f458e737704fb33fa7a2c1682cf53 (patch)
tree66730ab223775097eb47563bc020e2d2f095716e /www-client
parentdev-python/dask: Bump to 2022.04.2 (diff)
downloadgentoo-492c9983083f458e737704fb33fa7a2c1682cf53.tar.gz
gentoo-492c9983083f458e737704fb33fa7a2c1682cf53.tar.bz2
gentoo-492c9983083f458e737704fb33fa7a2c1682cf53.zip
www-client/vivaldi-snapshot: Add version 5.3.2658.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')
-rw-r--r--www-client/vivaldi-snapshot/Manifest3
-rw-r--r--www-client/vivaldi-snapshot/vivaldi-snapshot-5.3.2658.3.ebuild204
2 files changed, 207 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest
index 320a93b34d22..3731212d3af2 100644
--- a/www-client/vivaldi-snapshot/Manifest
+++ b/www-client/vivaldi-snapshot/Manifest
@@ -4,3 +4,6 @@ DIST vivaldi-snapshot_5.3.2652.3-1_armhf.deb 78930880 BLAKE2B f498cf0e8f62e01e4d
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
+DIST vivaldi-snapshot_5.3.2658.3-1_amd64.deb 87839820 BLAKE2B 7b7d7d7c36f27c24c8720363302efb43fb6916b310ca475e0dc31bd18e0c1dd784e87fa468d00eb11bcc0783bf966897db4db0649d956a75cf81766dc74cfe66 SHA512 7778ad2b296a8bcc3592226d91e35cb197e2602a4efa73a32069e43d7c7623c26031a0f661211007f9211e690fb790e4aec956001473dd115d92f05e4672eb67
+DIST vivaldi-snapshot_5.3.2658.3-1_arm64.deb 83070228 BLAKE2B c42df98b16a4d2c541eb0249c54a4872597f3fec2778e96a6580b54fffdbd00269a62358816e2ef1db3205884b589a012e05fd4d5d1c17f8220ca13b4c0e3558 SHA512 73032b7dd0e15eb7495d11ccd85d42430ed5dbd0d5e9fbdee5109379fba0d81c48fcdf48e9d0d6b8cead009949f9231fa550649df3570baf1661d24e88ca276b
+DIST vivaldi-snapshot_5.3.2658.3-1_armhf.deb 78953032 BLAKE2B a54f829c2d1c55fc48a1f4ff1e46d5c005832a6a5e02162222fe665b55d52bbd8a40d937947491b0f2df4cbc09607913efc2355a3ac7974e0ee4ddb68f8b7b7a SHA512 ba22b9a58d5175eff607a5fbfad5087f2163d38e4a3f30e6542b0a723384512bac17b877fcabf0826b251b74fac9a6e36e4103a134e07eeb91f0e06d4562bea2
diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-5.3.2658.3.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.3.2658.3.ebuild
new file mode 100644
index 000000000000..d6cfbbe0cedf
--- /dev/null
+++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.3.2658.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
+}