Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/zoom/
Date: Mon, 01 Feb 2021 10:57:17
Message-Id: 1612176860.a590b62d6723729619fe70dfac67ee2325a7ef86.ulm@gentoo
1 commit: a590b62d6723729619fe70dfac67ee2325a7ef86
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 1 10:54:20 2021 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 1 10:54:20 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a590b62d
7
8 net-im/zoom: Version bump to 5.5.6955.0131
9
10 Package-Manager: Portage-3.0.14, Repoman-3.0.2
11 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
12
13 net-im/zoom/Manifest | 1 +
14 net-im/zoom/zoom-5.5.6955.0131.ebuild | 144 ++++++++++++++++++++++++++++++++++
15 2 files changed, 145 insertions(+)
16
17 diff --git a/net-im/zoom/Manifest b/net-im/zoom/Manifest
18 index 493aa073a3c..489139b4228 100644
19 --- a/net-im/zoom/Manifest
20 +++ b/net-im/zoom/Manifest
21 @@ -2,3 +2,4 @@ DIST zoom-5.4.53391.1108_i686.tar.xz 40384800 BLAKE2B 0d449103e16799e6e6bcaf6ef1
22 DIST zoom-5.4.53391.1108_x86_64.tar.xz 44660944 BLAKE2B 7152f4daccdbce56e2c83971f507bc70d5b77e8edd558f311e67f0e2ab127967cdd15c90b92ca95735b2fad3e11d692b206c32c5f7d65cd116050e8e6579fcdd SHA512 f52e2fda15a29c2232656e8f34a5d65c3c401eb50f249d5436a949c09efd5b821d1c5e1f59dc4c27b5f4aadc1c24f474854498664b5d333d340d03f4998c59ba
23 DIST zoom-5.4.57450.1220_x86_64.tar.xz 45788732 BLAKE2B 932187da18c52baeaba90114b7d7115bb973787fe690f94482d53527fbd4ded327eecee6d3097831a5e3c164c79b46dcb32ee3a28223f8b1543e166ea282d44f SHA512 cf8581f175518fdc83c6780bd6a1154d58db1c012bcaf14228e32d839532e741d8eaae4883f7905d181b7d2f0c1e2efe125377dd85eb5ebb742cc5252bbc4b54
24 DIST zoom-5.4.57862.0110_x86_64.tar.xz 45850484 BLAKE2B 987efd8b0d75c3ff6dae43e7175b1c2967a554c5ac04baf1f634c5298d8e976129665a7b69943f6a2e5207f027f29612ddb2c3d8464995d2802fa457982e04d5 SHA512 69441864d7b413b76d6e1cd97808491aa4776988a1ffe30ac7ae1ab13f562fc43b27f810814155972f576b92a7d3ce13f90ed2a754bc374d20b6ee3ddcfbf40d
25 +DIST zoom-5.5.6955.0131_x86_64.tar.xz 50900928 BLAKE2B f8d79368874e4545a13e597f470136990d44d0c70d14efe654c7d48b6265ebe2ae82265b90f2e3789ca35c0dda5d2c4aee79fce3796ef3576ddab62633200aa8 SHA512 ae40d286e8c5f5975537e672fd0fbdea0fe64cb1aab57783cea22f5d06962b8dcb64047ca8ac00de64252573dd177bc38ae193c4d7713cf771d16d67eed69688
26
27 diff --git a/net-im/zoom/zoom-5.5.6955.0131.ebuild b/net-im/zoom/zoom-5.5.6955.0131.ebuild
28 new file mode 100644
29 index 00000000000..6e49d223e0f
30 --- /dev/null
31 +++ b/net-im/zoom/zoom-5.5.6955.0131.ebuild
32 @@ -0,0 +1,144 @@
33 +# Copyright 1999-2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit desktop eapi8-dosym readme.gentoo-r1 wrapper xdg-utils
39 +
40 +DESCRIPTION="Video conferencing and web conferencing service"
41 +HOMEPAGE="https://zoom.us/"
42 +SRC_URI="https://zoom.us/client/${PV}/${PN}_x86_64.tar.xz -> ${P}_x86_64.tar.xz"
43 +S="${WORKDIR}/${PN}"
44 +
45 +LICENSE="all-rights-reserved"
46 +SLOT="0"
47 +KEYWORDS="-* ~amd64"
48 +IUSE="bundled-libjpeg-turbo +bundled-qt pulseaudio wayland"
49 +RESTRICT="mirror bindist strip"
50 +
51 +RDEPEND="!games-engines/zoom
52 + dev-libs/glib:2
53 + dev-libs/quazip
54 + media-libs/fontconfig
55 + media-libs/freetype
56 + media-sound/mpg123
57 + sys-apps/dbus
58 + sys-apps/util-linux
59 + virtual/opengl
60 + x11-libs/libX11
61 + x11-libs/libxcb
62 + x11-libs/libXext
63 + x11-libs/libXfixes
64 + x11-libs/libxkbcommon[X]
65 + x11-libs/libXrender
66 + x11-libs/libXtst
67 + x11-libs/xcb-util-image
68 + x11-libs/xcb-util-keysyms
69 + pulseaudio? ( media-sound/pulseaudio )
70 + !pulseaudio? ( media-libs/alsa-lib )
71 + wayland? ( dev-libs/wayland )
72 + !bundled-libjpeg-turbo? ( >=media-libs/libjpeg-turbo-2.0.5 )
73 + !bundled-qt? (
74 + dev-libs/icu
75 + dev-qt/qtcore:5
76 + dev-qt/qtdbus:5
77 + dev-qt/qtdeclarative:5[widgets]
78 + dev-qt/qtdiag:5
79 + dev-qt/qtgraphicaleffects:5
80 + dev-qt/qtgui:5
81 + dev-qt/qtlocation:5
82 + dev-qt/qtnetwork:5
83 + dev-qt/qtquickcontrols:5[widgets]
84 + dev-qt/qtquickcontrols2:5
85 + dev-qt/qtscript:5
86 + dev-qt/qtsvg:5
87 + dev-qt/qtwidgets:5
88 + wayland? ( dev-qt/qtwayland )
89 + )"
90 +
91 +BDEPEND="dev-util/bbe
92 + bundled-libjpeg-turbo? ( dev-util/patchelf )"
93 +
94 +QA_PREBUILT="opt/zoom/*"
95 +
96 +src_prepare() {
97 + default
98 +
99 + # The tarball doesn't contain an icon, so extract it from the binary
100 + bbe -s -b '/<svg width="32"/:/<\x2fsvg>\n/' -e 'J 1;D' zoom \
101 + >zoom-videocam.svg && [[ -s zoom-videocam.svg ]] \
102 + || die "Extraction of icon failed"
103 +
104 + if ! use pulseaudio; then
105 + # For some strange reason, zoom cannot use any ALSA sound devices if
106 + # it finds libpulse. This causes breakage if media-sound/apulse[sdk]
107 + # is installed. So, force zoom to ignore libpulse.
108 + bbe -e 's/libpulse.so/IgNoRePuLsE/' zoom >zoom.tmp || die
109 + mv zoom.tmp zoom || die
110 + fi
111 +
112 + if use bundled-libjpeg-turbo; then
113 + # Remove insecure RPATH from bundled lib
114 + patchelf --remove-rpath libturbojpeg.so || die
115 + fi
116 +}
117 +
118 +src_install() {
119 + insinto /opt/zoom
120 + exeinto /opt/zoom
121 + doins -r json ringtone sip timezones translations
122 + doins *.pcm *.sh Embedded.properties version.txt
123 + doexe zoom zopen ZoomLauncher
124 + dosym8 -r {"/usr/$(get_libdir)",/opt/zoom}/libmpg123.so
125 + dosym8 -r {"/usr/$(get_libdir)",/opt/zoom}/libquazip.so
126 +
127 + if use bundled-libjpeg-turbo; then
128 + doexe libturbojpeg.so
129 + else
130 + dosym8 -r {"/usr/$(get_libdir)",/opt/zoom}/libturbojpeg.so
131 + fi
132 +
133 + if use bundled-qt; then
134 + doexe libicu*.so.56 libQt5*.so.5
135 + doins qt.conf
136 +
137 + local dirs="Qt* generic iconengines imageformats \
138 + platforminputcontexts platforms wayland* xcbglintegrations"
139 + doins -r ${dirs}
140 + find ${dirs} -type f '(' -name '*.so' -o -name '*.so.*' ')' \
141 + -printf '/opt/zoom/%p\0' | xargs -0 -r fperms 0755 || die
142 +
143 + ( # Remove libs and plugins with unresolved soname dependencies
144 + cd "${ED}"/opt/zoom || die
145 + rm -r Qt/labs/location QtQml/RemoteObjects \
146 + QtQuick/LocalStorage QtQuick/Particles.2 QtQuick/Scene2D \
147 + QtQuick/Scene3D QtQuick/Shapes QtQuick/XmlListModel \
148 + platforms/libqeglfs.so platforms/libqlinuxfb.so || die
149 + use wayland || rm -r libQt5Wayland*.so* QtWayland wayland* \
150 + platforms/libqwayland*.so || die
151 + )
152 + fi
153 +
154 + make_wrapper zoom /opt/zoom{/zoom,} $(usex bundled-qt /opt/zoom "")
155 + make_desktop_entry "zoom %U" Zoom zoom-videocam "" \
156 + "MimeType=x-scheme-handler/zoommtg;application/x-zoom;"
157 + doicon zoom-videocam.svg
158 + doicon -s scalable zoom-videocam.svg
159 + readme.gentoo_create_doc
160 +}
161 +
162 +pkg_postinst() {
163 + xdg_desktop_database_update
164 + xdg_icon_cache_update
165 +
166 + local FORCE_PRINT_ELOG v
167 + for v in ${REPLACING_VERSIONS}; do
168 + ver_test ${v} -le 5.0.403652.0509 && FORCE_PRINT_ELOG=1
169 + done
170 + readme.gentoo_print_elog
171 +}
172 +
173 +pkg_postrm() {
174 + xdg_desktop_database_update
175 + xdg_icon_cache_update
176 +}