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