summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2022-05-12 23:01:25 +0100
committerJames Le Cuirot <chewi@gentoo.org>2022-05-12 23:01:25 +0100
commit7892cb3fa6d4e8c0c2adb45fff2a92b91ae4766a (patch)
tree06de7a0815aa1b6708a4feb51efb648f8ad53d34 /www-client
parentwww-apps/xpra-html5: Version bump to 5.0 (diff)
downloadgentoo-7892cb3fa6d4e8c0c2adb45fff2a92b91ae4766a.tar.gz
gentoo-7892cb3fa6d4e8c0c2adb45fff2a92b91ae4766a.tar.bz2
gentoo-7892cb3fa6d4e8c0c2adb45fff2a92b91ae4766a.zip
www-client/vivaldi: Add version 5.2.2623.46
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.2.2623.46.ebuild205
2 files changed, 208 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest
index 1919f340ffb2..42432cefb05c 100644
--- a/www-client/vivaldi/Manifest
+++ b/www-client/vivaldi/Manifest
@@ -4,3 +4,6 @@ DIST vivaldi-stable_5.2.2623.39-1_armhf.deb 78938496 BLAKE2B dccd3b30649ae771c2a
DIST vivaldi-stable_5.2.2623.41-1_amd64.deb 87839604 BLAKE2B 6fff43fda458be703d1ec46919cf96bb3122a0118514e0ec9c6a3b14edcd169385e5bda1a8eab3fbaf91469884f410083ec823d92bcff4186ee37661cf7eeda6 SHA512 df8141d8e7141c81172bcace716607fb446e0330569ef5f95e62433eef60fdb7189e8456292c60cd358c7ebd0a9aadcb4b594f30f295446cd42489d80ac02fba
DIST vivaldi-stable_5.2.2623.41-1_arm64.deb 83065608 BLAKE2B 8a7fd2c48034cf9ffcc5b9b7f9af4e40659380c924293ff34c1ba0176b70a7f0ccaf36b5ed72742a48af83c4c15181002f3fb99f00ee7d4d998a9a0cde8d2c7b SHA512 96b3ea03d8a49ad8ff1e3ff75d52f604dc0faff151c7a7523459f3c248762143b73d971eb2edfbb5573bb75c5524eb98e127e28080b1212019ed5ff66329e940
DIST vivaldi-stable_5.2.2623.41-1_armhf.deb 78934848 BLAKE2B 8f794aed419b7c8c2e67ca4df134c5566eacd79c545c76ae97c7b7ad05c70b40daca9e53f17c81c483cf546f5fa03c52d0711739ac41d195c64c32bc09583105 SHA512 4366598a7a1c3c1f77d2a914cdbd0222bfdbb5fc125154b6c5a780ba260932c7d2d01c76c0379cc7c139912cd167f945c4c20345b17354826f2bd677c11dcb34
+DIST vivaldi-stable_5.2.2623.46-1_amd64.deb 87798652 BLAKE2B 75c7e4398be52a15f880617a5709f8d8f1b061c59f5a04187c28f62300db2934200e96d3c4cfe5d298af01e4b7cc05c956dd7e214339551557526e97750b87ab SHA512 d541b8cf668cc872925de1f66fbcf9586c319c765d378713d54ea4c54dff0ec84c5b35dc903f5ff3d408c3448a47ab2611f93f91308149131a12d6c1f2bcc641
+DIST vivaldi-stable_5.2.2623.46-1_arm64.deb 83057024 BLAKE2B 17ad94ab78b1441bddb966ddedddedc6a2af323d341374f8f041d2aa5e4d0c4c6c36a64ee7d5c441a2cff513c8b3b66ee7e62168edcfae0aa05b6beddaa22fa7 SHA512 c459fc6f906ea47737338780aa3052bcf3fd556a90c3d6cd23eb9c0ffb035bf3493fea02b84604e98e6f1b3fb805a4ec1e0974d4d7754ed6e2cafa14856bb0f7
+DIST vivaldi-stable_5.2.2623.46-1_armhf.deb 78935476 BLAKE2B a4dca3312e503cabe15990cf7e3610d6c54f8aa95d53561eedc61868e3e906cd44b1b61edeba0cfff5be720a7fa9dc3383c56622dd4c0f53088e2b36d644cee7 SHA512 388aaf0c8e869f884c4798bcd1f5a1fb27ed9d1da9db697de3e20ce5ccb4e4993e229790ad6c975b9435846f226415bc5ee4b3ca04d05aac97b97cdd283bc890
diff --git a/www-client/vivaldi/vivaldi-5.2.2623.46.ebuild b/www-client/vivaldi/vivaldi-5.2.2623.46.ebuild
new file mode 100644
index 000000000000..70be8917c6e8
--- /dev/null
+++ b/www-client/vivaldi/vivaldi-5.2.2623.46.ebuild
@@ -0,0 +1,205 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CHROMIUM_VERSION="100"
+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]
+ || ( 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
+}