summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2022-08-25 21:27:27 +0100
committerJames Le Cuirot <chewi@gentoo.org>2022-08-25 21:27:27 +0100
commit9159e6ec937f30e192c76c6809ec43ee0b35eb4b (patch)
treee3a6cf7b0852e60b7c4c2afc0a187c66f85a557e /www-client/vivaldi
parentdev-python/pypy3-exe-bin: Add support for arm64 and ppc64le (diff)
downloadgentoo-9159e6ec937f30e192c76c6809ec43ee0b35eb4b.tar.gz
gentoo-9159e6ec937f30e192c76c6809ec43ee0b35eb4b.tar.bz2
gentoo-9159e6ec937f30e192c76c6809ec43ee0b35eb4b.zip
www-client/vivaldi: Add version 5.4.2753.40
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'www-client/vivaldi')
-rw-r--r--www-client/vivaldi/Manifest3
-rw-r--r--www-client/vivaldi/vivaldi-5.4.2753.40.ebuild206
2 files changed, 209 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest
index fd85e2121f67..8fb6aed7622d 100644
--- a/www-client/vivaldi/Manifest
+++ b/www-client/vivaldi/Manifest
@@ -4,3 +4,6 @@ DIST vivaldi-stable_5.4.2753.33-1_armhf.deb 88395604 BLAKE2B 814c490fb4ac1d73209
DIST vivaldi-stable_5.4.2753.37-1_amd64.deb 97622892 BLAKE2B ea636fe9b6dcd92a2e9978df41a7fe635acd074c926da9cd7676fe399bdfe3785d229fa9e0d60abc087e426c1a3562e9e849a7c323ba1d44e4d8d4e90ee08843 SHA512 12d7037ef482a9f675053ea150f55a9ff14b7f20c05fd959011f4d5c08c888bd78ea5432bd428f82770302efae6c4534686059160ddff191f7ead91c55c7dfd9
DIST vivaldi-stable_5.4.2753.37-1_arm64.deb 87878980 BLAKE2B 65f73b926facf8b00298f714759710feace86b779309289c0f40d44c8ce8881673d3994838ea7272d31aa1561863cf6c3ef4e85c6c5f251bacc77ffec9748cc8 SHA512 888955f09cfb70672ee7ae2228fced49394881fbdb9da53d1685c64c3bc804d2b299e83d2c018530bdff85cf3291ed13939943177de6fddc8bb199ab1db242cd
DIST vivaldi-stable_5.4.2753.37-1_armhf.deb 88414104 BLAKE2B 566efb6c64b604140ec45ecf3954bfecc89d89592d9fe8c4f0c7e765dfcf174761bdaaa8550b85b47368e566470c3dc92c1f8e23cff9000737531ebaa0637072 SHA512 457f52fb5f10b2de8cd98abd93d99ca7f2a1463864bfc647ff48d2dc15698e206f1dfb24da22720cc3db18cecb345d899c84e6fb90627aed3297ab81ad953c27
+DIST vivaldi-stable_5.4.2753.40-1_amd64.deb 97585144 BLAKE2B e2ddfe3f1b8a75e7abf39fd2fef296f1d72233a4932e2c2833e464b985724a3c00b5b79190a84e4d51e6e25bfda21ba70e8441d0a9a4d2d37a20788698dad871 SHA512 2e0ce8da1be818e10271975baa6dde825d6edb9dcef07b2a54270eed6ef7d2393c6f1e8b41ad739df51482638596e3e603674dbc6a657f4f2208c9747b47428a
+DIST vivaldi-stable_5.4.2753.40-1_arm64.deb 87873620 BLAKE2B f88ee3481a3e3c91e94183323434fa3946927f345afa8fc67496ded5d9498ab8726397800f759aa9e38b37ccf77424f964a0a0d20bff8145407421163531884b SHA512 495c4e6804620b2a4c17aa8184a30ceed286de38ac59370908987893b59c897a4745a3443fd0df41a8d7573f6d4eac398192be470b5cb3279234c2cdbb02f991
+DIST vivaldi-stable_5.4.2753.40-1_armhf.deb 88402880 BLAKE2B 2ab20a288f7d91cdc840578b02b3bad8341baaff4d291e3a6edec00f04b06e28546389f8f4f0e7324fdacb4e012eb572ed74d6be28cb85ee32290dfdaf910f71 SHA512 884a45ddadf74ef906715f11f214e3d8d98a8fe6d295beaf8518d444833f3bfd1aa838bee244fccfaba8638d10c636dec9c233425c5c8358eb300fa79cc5f18d
diff --git a/www-client/vivaldi/vivaldi-5.4.2753.40.ebuild b/www-client/vivaldi/vivaldi-5.4.2753.40.ebuild
new file mode 100644
index 000000000000..cc815568ad94
--- /dev/null
+++ b/www-client/vivaldi/vivaldi-5.4.2753.40.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
+}