summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2022-02-10 23:06:45 +0000
committerJames Le Cuirot <chewi@gentoo.org>2022-02-10 23:06:45 +0000
commit8b8aa2fb1c16039f24aa1276e1cdf792ee1959be (patch)
treea1c6279fc68cd7a799f078fe1800322e3a4eabd8 /www-client
parentwww-client/vivaldi-snapshot: Drop old 5.1.2567.24 (diff)
downloadgentoo-8b8aa2fb1c16039f24aa1276e1cdf792ee1959be.tar.gz
gentoo-8b8aa2fb1c16039f24aa1276e1cdf792ee1959be.tar.bz2
gentoo-8b8aa2fb1c16039f24aa1276e1cdf792ee1959be.zip
www-client/vivaldi: Add version 5.1.2567.39
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/Manifest3
-rw-r--r--www-client/vivaldi/vivaldi-5.1.2567.39.ebuild204
2 files changed, 207 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest
index eec026ac8e05..ea0dc3a0ffd8 100644
--- a/www-client/vivaldi/Manifest
+++ b/www-client/vivaldi/Manifest
@@ -4,3 +4,6 @@ DIST vivaldi-stable_5.0.2497.48-1_armhf.deb 77941040 BLAKE2B 39e519229a7ba00261c
DIST vivaldi-stable_5.0.2497.51-1_amd64.deb 86978924 BLAKE2B 36ec7888fcc4ea3b2ae8ca4f1eeb52fcce4660b3db5926bd5c8d499e46426d24559a90905c42e7d39a6dca19613992252decfed5bb43f7231e446e416edb8585 SHA512 17692575419b25851f83ce9c7138cbef722e4c9d53589ebc858f5120be04e8de419bd4d4723f95f1f2a1157691adf479de1dfbfd7afeb7d997f6c1f17db66d4f
DIST vivaldi-stable_5.0.2497.51-1_arm64.deb 81594972 BLAKE2B a74fa843967a1369f74af8182704543dd857f0b296fb500658931806365d6cae704953844c4872c6adf7a567bc0da63e766bbfd480d7882b22d8c1be01d6885e SHA512 5d920335b00d633e81e5961672f72df5c92ff75a421ccc14423ebafffb6dafd286e471a1933b0cde709916f789f76720aa497a1bdb40bd7b624dfdca1ade9a1d
DIST vivaldi-stable_5.0.2497.51-1_armhf.deb 77933792 BLAKE2B 483a3ab88c37303c9fac98487fc98e7b00c12f6137170352816bd4dbe0c6d2565ddad27b6b6001de05a776887984541a68b38753cc274c46c84d26ee509e6f32 SHA512 cf926604e205e91b793fdaf0ca69f375b8543c0afbef222090e18051bf387a9055fcf42b048f1d9dc8457eb5fad2b4bd51ae1b2a204d00b4ce7b8fe9846631ae
+DIST vivaldi-stable_5.1.2567.39-1_amd64.deb 87347696 BLAKE2B 534ac7ab2d40b2d4b931a090debe5916ace470547418333ccf093194e438d2cfbc045314d186caa18e39b1534f111d918ec61859c51f6c009fd508e03772cb5b SHA512 b43dc241611b19369a65a7d688f05639a8268fe97a8e06cf6d266b3802614482acd2368befcc3c3b15597847d55fc8f6c4bf9e42d6ac48d8dc797e162972ca29
+DIST vivaldi-stable_5.1.2567.39-1_arm64.deb 82256068 BLAKE2B 1ba9e77cb3e8262749e7464da365f0c198abeb69c40cd16fa4ab8ca6ad7c784f88eccaa70acbca7d5ac5f4213cdb106c49f0f7da023b5eee23655b9b02c00b00 SHA512 607c2b1d7c091aa8822123340f28459887a4b05eba5bc03a9475c5b0745d07dff8664556507989332aba6f7885f9deaa39df1131e152a5680be475fe8d3213f0
+DIST vivaldi-stable_5.1.2567.39-1_armhf.deb 78106432 BLAKE2B 2ca0b3241c744886d433f0a9636a2c09bc7c5466137d4a2cb5e09e4b731264fcf3eb366746ca603e22daf8c4341ec68ffe5d9b6017b9840f397aea5ac30a71a5 SHA512 00c1a4eb494f881b3e803a732c1afbe328dd6237aa382e38f1bbe5f89cab2878d60d30aa0b30f4fc94e663203c0bdab0d43c566a936ec9405112a4238791e393
diff --git a/www-client/vivaldi/vivaldi-5.1.2567.39.ebuild b/www-client/vivaldi/vivaldi-5.1.2567.39.ebuild
new file mode 100644
index 000000000000..a0fb3fa96f92
--- /dev/null
+++ b/www-client/vivaldi/vivaldi-5.1.2567.39.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="96"
+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
+}