summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2021-07-03 09:57:08 +0100
committerJames Le Cuirot <chewi@gentoo.org>2021-07-03 09:57:08 +0100
commit66014d4ed02fe806948866c8094c90f46baf474c (patch)
tree66f1dbb5d29152a28fa1dcbaa012ef847f50ca2f
parentwww-client/vivaldi-snapshot: Add version 4.1.2345.3 (diff)
downloadgentoo-66014d4ed02fe806948866c8094c90f46baf474c.tar.gz
gentoo-66014d4ed02fe806948866c8094c90f46baf474c.tar.bz2
gentoo-66014d4ed02fe806948866c8094c90f46baf474c.zip
www-client/vivaldi: Add version 4.0.2312.36
Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
-rw-r--r--www-client/vivaldi/Manifest3
-rw-r--r--www-client/vivaldi/vivaldi-4.0.2312.36.ebuild205
2 files changed, 208 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest
index cd97e709662..29ca7b77a18 100644
--- a/www-client/vivaldi/Manifest
+++ b/www-client/vivaldi/Manifest
@@ -8,3 +8,6 @@ DIST vivaldi-stable_4.0.2312.27-1_armhf.deb 75851284 BLAKE2B 7d77d47ea4b25df635f
DIST vivaldi-stable_4.0.2312.33-1_amd64.deb 84295960 BLAKE2B 5624a91b3e957056eebac9c3d2e11b8b15a351d67d4cb6d42256ba04ddb37c876838cc492986703206ca57d079f0d06f146e941ea29565fb11f62b11ff451e46 SHA512 5d237d4bc6652091cdbfc2595c9f33de11c16be5c2d8b0c498d4e1d43c03501bb49b865422f78519a1762ddd18f7c566fce7fafc8fd4126b0baee23a158fc687
DIST vivaldi-stable_4.0.2312.33-1_arm64.deb 79737104 BLAKE2B 8161941f9ab7dd427f9b117f51d60b84b16c6114ae6fadcf016d4dd87f0002a5f33eafb613e5c31cf97fdbdc00b5665a8f8226fd6232a4396fce5fd53ff58a3d SHA512 fa3d6cb5eb9cf3227c55e0dcdb0c3d5c493069a3abdd00f29f8668ce794e521e86a52c40e299e43c642f54423fbfc07b83d0e0a0713a771312a9d5f6c67d1f65
DIST vivaldi-stable_4.0.2312.33-1_armhf.deb 75854768 BLAKE2B 63a3420e89d75ca1491eae66c4a7927e64d631fa45b3b5016f161c7730d75886872c54e0d9c6bbdaaed1a3ac0d1632b32ee62785f3f45da1d20ce6740bf096f3 SHA512 921ba73aa67413bbac2ac6cbffbf337fb35319ffc2b0bf6bcc77c1830d06260d354326a8bbc454b6127065149d633895a19c3b97e4e67cc1e0c4cb8a1e07e952
+DIST vivaldi-stable_4.0.2312.36-1_amd64.deb 84302392 BLAKE2B 96c6cde74ed82d015c042c90e82d839de56cd9de39076a17f8e0e662334504169778441bd1151e0d58403a146f84f0d9c26ba195eac9bbd3b7e2926fb2c7a751 SHA512 9635c01218278ca348ae57d3fdf37ef37726bdb495b650c29d95431b9f47355ecc90cf3296ab287f195f56f8482ae31e76a2953327a5b3e48c09907fe1286845
+DIST vivaldi-stable_4.0.2312.36-1_arm64.deb 79722080 BLAKE2B cd34349f2a7b0d7e2bd453fd8201e3a15fde904fa73e64c31acc33c68302d8bb3443379239b9b10e517a3a2112695ee4e7ed0e8b31e3563908543804f619810b SHA512 9ff85712f870490b1efd261bde39174a2f24af9a07c322b2556121004a3646948d1813256a46090fa7e443e044672833cd4626ca2ec014f9dad71ca9bd5ab22d
+DIST vivaldi-stable_4.0.2312.36-1_armhf.deb 75847636 BLAKE2B 1c32ebbcabc34b76f00927bd3902c24ec6c21a9268c8591b685c96c23eb446bc773db38c9e78558e2259b0986e561122f75d1e32c2128135291807d2cf55e094 SHA512 83ea795dc117a7476f998fb4602d59f6b1f4f0e3c13b1b1aa52bb68de24cf9faeb57821a4b3f24f16b835062b8d9fe91bea56a167702b4a9cfe907112a3c7a68
diff --git a/www-client/vivaldi/vivaldi-4.0.2312.36.ebuild b/www-client/vivaldi/vivaldi-4.0.2312.36.ebuild
new file mode 100644
index 00000000000..c2409d01a97
--- /dev/null
+++ b/www-client/vivaldi/vivaldi-4.0.2312.36.ebuild
@@ -0,0 +1,205 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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="
+ dev-libs/expat
+ dev-libs/glib:2
+ dev-libs/nspr
+ dev-libs/nss
+ media-libs/alsa-lib
+ media-libs/fontconfig
+ media-libs/freetype
+ media-libs/speex
+ net-print/cups
+ sys-apps/dbus
+ sys-libs/libcap
+ x11-libs/cairo
+ x11-libs/gdk-pixbuf
+ x11-libs/gtk+:3
+ x11-libs/libX11
+ x11-libs/libXScrnSaver
+ x11-libs/libXcomposite
+ x11-libs/libXcursor
+ x11-libs/libXdamage
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libXi
+ x11-libs/libXrandr
+ x11-libs/libXrender
+ x11-libs/libXtst
+ x11-libs/pango[X]
+ proprietary-codecs? ( media-video/ffmpeg:0/56.58.58[chromium(-)] )
+ 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 ${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/${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 \
+ /${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
+
+ [[ ${PN} = vivaldi-snapshot ]] &&
+ dosym ${PN} /${VIVALDI_HOME}/vivaldi
+}