1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit desktop eutils xdg-utils
8 DESCRIPTION="Video conferencing and web conferencing service"
9 HOMEPAGE="https://zoom.us/"
10 SRC_URI="amd64? ( https://zoom.us/client/${PV}/${PN}_x86_64.tar.xz -> ${P}_x86_64.tar.xz )
11 x86? ( https://zoom.us/client/${PV}/${PN}_i686.tar.xz -> ${P}_i686.tar.xz )"
14 LICENSE="all-rights-reserved Apache-2.0" # Apache-2.0 for icon
16 KEYWORDS="-* ~amd64 ~x86"
18 RESTRICT="mirror bindist strip"
20 RDEPEND="dev-libs/glib:2
23 dev-qt/qtdeclarative:5
24 dev-qt/qtgraphicaleffects:5
27 dev-qt/qtpositioning:5
28 dev-qt/qtprintsupport:5
29 dev-qt/qtquickcontrols:5
35 media-libs/libjpeg-turbo
43 x11-libs/xcb-util-image
44 x11-libs/xcb-util-keysyms
45 pulseaudio? ( media-sound/pulseaudio )"
47 BDEPEND="!pulseaudio? ( dev-util/bbe )"
49 QA_PREBUILT="opt/zoom/*"
53 if ! use pulseaudio; then
54 # For some strange reason, zoom cannot use any ALSA sound devices if
55 # it finds libpulse. This causes breakage if media-sound/apulse[sdk]
56 # is installed. So, force zoom to ignore libpulse.
57 bbe -e 's/libpulse.so/IgNoRePuLsE/' zoom >zoom.tmp || die
58 mv zoom.tmp zoom || die
65 doins -r json sip timezones translations
66 doins *.pcm *.pem *.sh Embedded.properties version.txt
67 use amd64 && doins icudtl.dat
68 doexe zoom{,.sh,linux} zopen ZoomLauncher
69 dosym {"../../usr/$(get_libdir)",/opt/zoom}/libturbojpeg.so #715106
71 make_wrapper zoom ./zoom /opt/zoom
72 make_desktop_entry "zoom %U" Zoom zoom-videocam "" \
73 "MimeType=x-scheme-handler/zoommtg;application/x-zoom;"
74 # The tarball doesn't contain an icon, so take a generic camera icon
75 # from https://github.com/google/material-design-icons, modified to be
76 # white on a blue background
77 doicon "${FILESDIR}"/zoom-videocam.svg
81 xdg_desktop_database_update
85 xdg_desktop_database_update