summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2022-06-15 23:01:42 +0100
committerJames Le Cuirot <chewi@gentoo.org>2022-06-15 23:07:20 +0100
commit197a1b8abb5058a38a332610fee021efc9166cd8 (patch)
treee548065e737794fe1bf2c4d2fb8775b217d4d4ef /www-client/vivaldi-snapshot
parentdev-texlive/texlive-luatex: fix copyright year (diff)
downloadgentoo-197a1b8abb5058a38a332610fee021efc9166cd8.tar.gz
gentoo-197a1b8abb5058a38a332610fee021efc9166cd8.tar.bz2
gentoo-197a1b8abb5058a38a332610fee021efc9166cd8.zip
www-client/vivaldi-snapshot: Add version 5.4.2704.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.4.2704.3.ebuild206
2 files changed, 209 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest
index ca4ba528a719..a3dcb19342e6 100644
--- a/www-client/vivaldi-snapshot/Manifest
+++ b/www-client/vivaldi-snapshot/Manifest
@@ -4,3 +4,6 @@ DIST vivaldi-snapshot_5.3.2679.46-1_armhf.deb 81289752 BLAKE2B 682c0d5c77c868629
DIST vivaldi-snapshot_5.3.2679.50-1_amd64.deb 89860344 BLAKE2B 717361941272e173cca0052fe61070723d7959bf54e6a32800f604a0ee6f2e7e0aecb7599cf917d45107a54e7243873e61017b05fc7c3f822ff9ae2b0d57fd56 SHA512 8dedecb29f38134aa73483274c6108ab6598fea78a4a6589d8f48c89f0e81a727d03535b1f4e98d8939f6be9078385eb141865d533ae76ef839c7f8ee304e326
DIST vivaldi-snapshot_5.3.2679.50-1_arm64.deb 81621900 BLAKE2B efaf8bf691106b2f061a373bc346db9022c33b763b992ecf2232843a9b2c6f614bd8b929d9f28f1b359df4cf98e30c2e66626f6ebc8326fe3d0f1f544ae32661 SHA512 89123c9899065c3f6bc305cd1ad8e3f215b5b31b3625272d7089d3fb60cf804be81d419b4c1b3cab20a8d4fb174be5176bbf44fda8524cf7fe882f3b4a41e71b
DIST vivaldi-snapshot_5.3.2679.50-1_armhf.deb 81289972 BLAKE2B cc841f04163bd44c16b3751bf37ccbf5e756bc563056bd411213e2a735f9c6e01705ef5b3ae14f1e69531b617b4482ef3a6463476477509504e600256da78f22 SHA512 f2a8c886b1d0dfb61091ade1612285c62de0b88fb14c42e55945d47bb601af4f69b6f5b68fda45b83a5bd35579e57ba89010fa981f61c7139e224949b082652b
+DIST vivaldi-snapshot_5.4.2704.3-1_amd64.deb 89878764 BLAKE2B 2b9cfe2471529f56c18e73f6334acaa802f5b8ee64c7dde531269f773dc437732d0a4be4bd44b5683b9e499b80f0bcf9e339b2ffbda68e15fbc45b7f930d6093 SHA512 a0075be7fb9d72d8b2ba5ad368667725f9e4921ea1de8a0f40b3ac25afd38289aa1f2d65ff5d5b376d3db3d2db0ad4ecd308014b2c23105298cd414691836ae0
+DIST vivaldi-snapshot_5.4.2704.3-1_arm64.deb 81633128 BLAKE2B 458d8a8cf3cc3765d45fa852f93fd61de75c0ac860f2ab8649c7ca10615e25c6dc0c5d28ac0a2800a582d29e17b62f08128d9e980618e3b13a7ae26e9a9f1260 SHA512 3c3d841ff8d00c63af674b6857e765acb4bced1fc0857b09008a701215e9d43a827faccb7e79de141990494ddfdb707958d4dcad13634c133f430eb8c555054d
+DIST vivaldi-snapshot_5.4.2704.3-1_armhf.deb 81291512 BLAKE2B 5a8546636b059db93fbfc3781304d1e935978b02b621f2e65a31d5bae0e457543173f318a58070652f1b037de7082e9f46794bd1f995c9eae5ffd8697115f4f1 SHA512 63fa6f435eef51c3b28a1596277e0601d9cc6ab6a1f75e282ce6aa7b4a1ebfc7ed2528e9014d51672913edd9f85933006ae9ae330f815389921ff2a92e7eb39a
diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-5.4.2704.3.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.4.2704.3.ebuild
new file mode 100644
index 000000000000..cc815568ad94
--- /dev/null
+++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.4.2704.3.ebuild
@@ -0,0 +1,206 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CHROMIUM_VERSION="102"
+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
+ ur
+ 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]
+ || ( gui-libs/gtk:4 x11-libs/gtk+:3 )
+ 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
+}