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, 02 May 2022 10:52:40
Message-Id: 1651488733.030998bee4664b6c5b2fd65e6cb8c077164a3f2d.ulm@gentoo
1 commit: 030998bee4664b6c5b2fd65e6cb8c077164a3f2d
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 2 10:52:13 2022 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Mon May 2 10:52:13 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=030998be
7
8 net-im/zoom: Restore version 5.6.9.2225
9
10 Bug: https://bugs.gentoo.org/835930#c44
11 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
12
13 net-im/zoom/Manifest | 1 +
14 net-im/zoom/zoom-5.9.6.2225-r2.ebuild | 171 ++++++++++++++++++++++++++++++++++
15 2 files changed, 172 insertions(+)
16
17 diff --git a/net-im/zoom/Manifest b/net-im/zoom/Manifest
18 index c40804235327..2da420e5937c 100644
19 --- a/net-im/zoom/Manifest
20 +++ b/net-im/zoom/Manifest
21 @@ -1 +1,2 @@
22 DIST zoom-5.10.4.2845_x86_64.tar.xz 129882272 BLAKE2B e1d1e4aa460e56afc906ec2a0b9f8fd3c4ef40bfcc303993b01bde8d84f9935ab867c1527922771c19df451c4452b3838bcb262fbd43bcb65c2b35c021c56c07 SHA512 60115858e391c064893cdb85362fba733c48326acc8bb46e01fd8d6b1875ec0f2b53bf9c85b64a0d33456a781a9c613208705fa4cf03d87959d5254caf00c14f
23 +DIST zoom-5.9.6.2225_x86_64.tar.xz 57384044 BLAKE2B a6712499d903fa715170b9a50bf3fd1fadf7f403f4c9a9ff5ed890faf65ffd5564d06f64f26ca596598ef2c5cb53b4a477d8b08f7f7d44282911a890a00900d2 SHA512 f2899377c66cada60bf08326b7cd06a64b659d06fbdc19f0d6f1f0a6458bbfa0a40e59bdfb7ab4fe4877c0bde2f29fd0bfb8e05227b3c7cca66880e713345f10
24
25 diff --git a/net-im/zoom/zoom-5.9.6.2225-r2.ebuild b/net-im/zoom/zoom-5.9.6.2225-r2.ebuild
26 new file mode 100644
27 index 000000000000..01a338330463
28 --- /dev/null
29 +++ b/net-im/zoom/zoom-5.9.6.2225-r2.ebuild
30 @@ -0,0 +1,171 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +inherit desktop readme.gentoo-r1 wrapper xdg-utils
37 +
38 +DESCRIPTION="Video conferencing and web conferencing service"
39 +HOMEPAGE="https://zoom.us/"
40 +SRC_URI="https://zoom.us/client/${PV}/${PN}_x86_64.tar.xz -> ${P}_x86_64.tar.xz"
41 +S="${WORKDIR}/${PN}"
42 +
43 +LICENSE="all-rights-reserved"
44 +SLOT="0"
45 +KEYWORDS="-* ~amd64"
46 +IUSE="bundled-libjpeg-turbo +bundled-qt opencl pulseaudio wayland"
47 +RESTRICT="mirror bindist strip"
48 +
49 +RDEPEND="!games-engines/zoom
50 + dev-libs/glib:2
51 + >=dev-libs/quazip-1.0:0=
52 + media-libs/fdk-aac:0/2
53 + media-libs/fontconfig
54 + media-libs/freetype
55 + media-sound/mpg123
56 + sys-apps/dbus
57 + sys-apps/util-linux
58 + sys-libs/glibc
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 + opencl? ( virtual/opencl )
70 + pulseaudio? ( media-sound/pulseaudio )
71 + !pulseaudio? ( media-libs/alsa-lib )
72 + wayland? ( dev-libs/wayland )
73 + !bundled-libjpeg-turbo? ( >=media-libs/libjpeg-turbo-2.0.5 )
74 + !bundled-qt? (
75 + dev-libs/icu
76 + dev-qt/qtcore:5
77 + dev-qt/qtdbus:5
78 + dev-qt/qtdeclarative:5[widgets]
79 + dev-qt/qtdiag:5
80 + dev-qt/qtgraphicaleffects:5
81 + dev-qt/qtgui:5
82 + dev-qt/qtlocation:5
83 + dev-qt/qtnetwork:5
84 + dev-qt/qtquickcontrols:5[widgets]
85 + dev-qt/qtquickcontrols2:5
86 + dev-qt/qtsvg:5
87 + dev-qt/qtwidgets:5
88 + dev-qt/qtx11extras:5
89 + wayland? ( dev-qt/qtwayland )
90 + )"
91 +
92 +BDEPEND="dev-util/bbe
93 + bundled-libjpeg-turbo? ( dev-util/patchelf )"
94 +
95 +QA_PREBUILT="opt/zoom/*"
96 +
97 +src_prepare() {
98 + default
99 +
100 + # The tarball doesn't contain an icon, so extract it from the binary
101 + bbe -s -b '/<svg width="32" height="32"/:/<\x2fsvg>\n/' -e 'J 1;D' zoom \
102 + >videoconference-zoom.svg && [[ -s videoconference-zoom.svg ]] \
103 + || die "Extraction of icon failed"
104 +
105 + if ! use pulseaudio; then
106 + # For some strange reason, zoom cannot use any ALSA sound devices if
107 + # it finds libpulse. This causes breakage if media-sound/apulse[sdk]
108 + # is installed. So, force zoom to ignore libpulse.
109 + bbe -e 's/libpulse.so/IgNoRePuLsE/' zoom >zoom.tmp || die
110 + mv zoom.tmp zoom || die
111 + fi
112 +
113 + if use bundled-libjpeg-turbo; then
114 + # Remove insecure RPATH from bundled lib
115 + patchelf --remove-rpath libturbojpeg.so || die
116 + fi
117 +}
118 +
119 +src_install() {
120 + insinto /opt/zoom
121 + exeinto /opt/zoom
122 + doins -r json ringtone sip timezones translations
123 + doins *.pcm Embedded.properties version.txt
124 + doexe zoom zopen ZoomLauncher *.sh
125 + dosym -r {"/usr/$(get_libdir)",/opt/zoom}/libmpg123.so
126 + dosym -r "/usr/$(get_libdir)/libfdk-aac.so.2" /opt/zoom/libfdkaac2.so
127 + dosym -r "/usr/$(get_libdir)/libquazip1-qt5.so" /opt/zoom/libquazip.so
128 +
129 + if use opencl; then
130 + doexe aomhost libaomagent.so libclDNN64.so libmkldnn.so
131 + dosym -r {"/usr/$(get_libdir)",/opt/zoom}/libOpenCL.so.1
132 + fi
133 +
134 + if use bundled-libjpeg-turbo; then
135 + doexe libturbojpeg.so
136 + else
137 + dosym -r {"/usr/$(get_libdir)",/opt/zoom}/libturbojpeg.so
138 + fi
139 +
140 + if use bundled-qt; then
141 + doexe libicu*.so.56 libQt5*.so.5
142 + doins qt.conf
143 +
144 + local dirs="Qt* bearer generic iconengines imageformats \
145 + platforminputcontexts platforms wayland* xcbglintegrations"
146 + doins -r ${dirs}
147 + find ${dirs} -type f '(' -name '*.so' -o -name '*.so.*' ')' \
148 + -printf '/opt/zoom/%p\0' | xargs -0 -r fperms 0755 || die
149 +
150 + ( # Remove libs and plugins with unresolved soname dependencies
151 + cd "${ED}"/opt/zoom || die
152 + rm -r Qt/labs/location QtQml/RemoteObjects \
153 + QtQuick/LocalStorage QtQuick/Particles.2 QtQuick/Scene2D \
154 + QtQuick/Scene3D QtQuick/XmlListModel \
155 + platforms/libqeglfs.so platforms/libqlinuxfb.so || die
156 + use wayland || rm -r libQt5Wayland*.so* QtWayland wayland* \
157 + platforms/libqwayland*.so || die
158 + )
159 + else
160 + local qtzoom="5.12" qtver=$(best_version dev-qt/qtcore:5)
161 + if [[ ${qtver} != dev-qt/qtcore-${qtzoom}.* ]]; then
162 + ewarn "You have disabled the bundled-qt USE flag."
163 + ewarn "You may experience problems when running Zoom with"
164 + ewarn "a version of the system-wide Qt libs other than ${qtzoom}."
165 + ewarn "See https://bugs.gentoo.org/798681 for details."
166 + fi
167 + fi
168 +
169 + make_wrapper zoom /opt/zoom{/zoom,,}
170 + make_desktop_entry "zoom %U" Zoom videoconference-zoom \
171 + "Network;VideoConference;" \
172 + "MimeType=$(printf '%s;' \
173 + x-scheme-handler/zoommtg \
174 + x-scheme-handler/zoomus \
175 + application/x-zoom)"
176 + doicon videoconference-zoom.svg
177 + doicon -s scalable videoconference-zoom.svg
178 +
179 + local DOC_CONTENTS="Some of Zoom's screen share features (e.g.
180 + the whiteboard) require display compositing. If you encounter
181 + a black window when sharing the screen, then one of the following
182 + actions should help:
183 + \\n- Enable compositing in your window manager if it is supported
184 + \\n- Alternatively, run the xcompmgr command (from x11-misc/xcompmgr)"
185 + use wayland \
186 + && DOC_CONTENTS+="\\n\\nTo enable screen sharing on GNOME Wayland,
187 + edit ~/.config/zoomus.conf and change the value of
188 + enableWaylandShare to true."
189 + readme.gentoo_create_doc
190 +}
191 +
192 +pkg_postinst() {
193 + xdg_desktop_database_update
194 + xdg_icon_cache_update
195 + readme.gentoo_print_elog
196 +}
197 +
198 +pkg_postrm() {
199 + xdg_desktop_database_update
200 + xdg_icon_cache_update
201 +}