summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2022-06-11 11:27:14 +0100
committerJames Le Cuirot <chewi@gentoo.org>2022-06-11 11:45:20 +0100
commit2329d49ebbf5ad448bed1f728a715b36feb6a830 (patch)
tree134e4963232c22239b9f5d4b934b5f943f02ff0c /www-client
parentmedia-video/ffmpeg-chromium: Stabilise 102 on amd64 (diff)
downloadgentoo-2329d49ebbf5ad448bed1f728a715b36feb6a830.tar.gz
gentoo-2329d49ebbf5ad448bed1f728a715b36feb6a830.tar.bz2
gentoo-2329d49ebbf5ad448bed1f728a715b36feb6a830.zip
www-client/vivaldi-snapshot: Add version 5.3.2679.50
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.2679.50.ebuild206
2 files changed, 209 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest
index d1083fd0875b..5efe48b86477 100644
--- a/www-client/vivaldi-snapshot/Manifest
+++ b/www-client/vivaldi-snapshot/Manifest
@@ -4,3 +4,6 @@ DIST vivaldi-snapshot_5.3.2679.30-1_armhf.deb 80320400 BLAKE2B a86615a56b645689b
DIST vivaldi-snapshot_5.3.2679.46-1_amd64.deb 89889532 BLAKE2B 23b32123f9dee0fbdf10b7d036d5ed48a18a86dc60060b09d8599e46a50a8fa32bed9f71e9f7a0fa84262868324c6c57a2331f44152045ca0f7cfa60dd44ff53 SHA512 0c71edfaf6cd4503e008fb93cc8321abcf6a7c88b2cc53f9ded747121d3ce8dba539704414762a3241dd424b73d29ff54e56520936ae4abdfde843ece29298fb
DIST vivaldi-snapshot_5.3.2679.46-1_arm64.deb 81639900 BLAKE2B 98421bad31b4e1e8f89b4a5b4da4e97248eaab318457122b0e68dc190d94e6ff2dfc23e0266c18c1cddd0753bc731e3a5bc9712ad6234b3eb80b343863dd073e SHA512 93f5072edb46f417b08ec4558c46232706a10656600f5777e977bf82c06276faf6369d879195da4265c11041ef12d53d3eca43dd946350a2dee5242b7afcc284
DIST vivaldi-snapshot_5.3.2679.46-1_armhf.deb 81289752 BLAKE2B 682c0d5c77c868629b073c071d13d856f7c7bf153f8b4b7124451f4a886efc687caa35af3170e1c37f8715eaca68a2cf36f7786b36d297a868a40e94f6f9aff2 SHA512 b2ae390467d2d5da85af56805adebda5e6bd18e952f9bae36793a1cc40f4cd5901452f51a2e976ecedb29f8dd3c333043ce3b78ae9debe8ee4e658ff20c5a124
+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
diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-5.3.2679.50.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.3.2679.50.ebuild
new file mode 100644
index 000000000000..cc815568ad94
--- /dev/null
+++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.3.2679.50.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
+}