summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2021-07-06 22:10:03 +0100
committerJames Le Cuirot <chewi@gentoo.org>2021-07-06 22:10:03 +0100
commit856acefc74fbe7bb81ddb60c1a7a87faf36d7165 (patch)
treef053bb53a73b56b5eaeb8cc5d2b004cc734b7af9 /www-client
parentsys-libs/openipmi: stabilize 2.0.29 for ppc64 (diff)
downloadgentoo-856acefc74fbe7bb81ddb60c1a7a87faf36d7165.tar.gz
gentoo-856acefc74fbe7bb81ddb60c1a7a87faf36d7165.tar.bz2
gentoo-856acefc74fbe7bb81ddb60c1a7a87faf36d7165.zip
www-client/vivaldi: Add version 4.0.2312.38
Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'www-client')
-rw-r--r--www-client/vivaldi/Manifest3
-rw-r--r--www-client/vivaldi/vivaldi-4.0.2312.38.ebuild205
2 files changed, 208 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest
index 6a92476f37f2..56c7500f1fdd 100644
--- a/www-client/vivaldi/Manifest
+++ b/www-client/vivaldi/Manifest
@@ -8,3 +8,6 @@ DIST vivaldi-stable_4.0.2312.33-1_armhf.deb 75854768 BLAKE2B 63a3420e89d75ca1491
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
+DIST vivaldi-stable_4.0.2312.38-1_amd64.deb 84294796 BLAKE2B 0942e8590d6af17eecb036ca22958c3aea4da3c02bcbf8253a85f921a4f1a292310f37f238830291afc7219b7f8bd81195956602f330bb4e836080e841ed92b4 SHA512 4081f8c702003c19d0568a939f689df1f7783ce406cfc71d40aeb69ab9f6dbcad4c959c74b9ebd6e66e822af3f5ed60906f654e5ddda8165751fc3b0493811d7
+DIST vivaldi-stable_4.0.2312.38-1_arm64.deb 79737624 BLAKE2B 367fdec2e15913c5282165f266ce057cd94043e7523f3839266f789a7a43c44d839b2e5394c07bae071bbfe86f89134ed59ca0dd0c76114c127da354fc2dc3fa SHA512 a40ddb6c928135c89e6ba5c654c46d9154c544132abad5f42685d2b4da55d5b71cc7acac58e45150d67106aaddd66e9f00d586f087b3f6fe5b2594fa7fee65b0
+DIST vivaldi-stable_4.0.2312.38-1_armhf.deb 75853312 BLAKE2B 24650e64ac1630b1e12d3671760d49cc31b529a35d0075b61485d3b15b0d50006119d16a20a16f395a0054f77b78bec4277919a156fb842adb1a50d68781ea26 SHA512 1f4a3188d14d89a45bbafdcb8c595b65f5649d7a39d04b7f477d8297a5f01b18fa3a0b1016d90306a5d01dd847211d0dd1796dcb08421bbb37abb735871e10db
diff --git a/www-client/vivaldi/vivaldi-4.0.2312.38.ebuild b/www-client/vivaldi/vivaldi-4.0.2312.38.ebuild
new file mode 100644
index 000000000000..c2409d01a97f
--- /dev/null
+++ b/www-client/vivaldi/vivaldi-4.0.2312.38.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
+}