1 |
commit: 66434115925e355179c4f0be49f9edb3199d4bfc |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 9 13:59:07 2022 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 9 14:07:20 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=66434115 |
7 |
|
8 |
net-im/zoom: Version bump to 5.9.1.1380 |
9 |
|
10 |
Change the desktop entry type from InstantMessaging (the default) |
11 |
to VideoConference. |
12 |
|
13 |
Change the icon name from zoom-icon to videoconference-zoom, in order to |
14 |
prevent a fallback to the zoom system icon. |
15 |
|
16 |
Bug: https://bugs.gentoo.org/829203 |
17 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
18 |
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> |
19 |
|
20 |
net-im/zoom/Manifest | 1 + |
21 |
net-im/zoom/zoom-5.9.1.1380.ebuild | 161 +++++++++++++++++++++++++++++++++++++ |
22 |
2 files changed, 162 insertions(+) |
23 |
|
24 |
diff --git a/net-im/zoom/Manifest b/net-im/zoom/Manifest |
25 |
index 408ddfc19dac..c49d0ed29f6f 100644 |
26 |
--- a/net-im/zoom/Manifest |
27 |
+++ b/net-im/zoom/Manifest |
28 |
@@ -2,3 +2,4 @@ DIST zoom-5.4.53391.1108_i686.tar.xz 40384800 BLAKE2B 0d449103e16799e6e6bcaf6ef1 |
29 |
DIST zoom-5.4.53391.1108_x86_64.tar.xz 44660944 BLAKE2B 7152f4daccdbce56e2c83971f507bc70d5b77e8edd558f311e67f0e2ab127967cdd15c90b92ca95735b2fad3e11d692b206c32c5f7d65cd116050e8e6579fcdd SHA512 f52e2fda15a29c2232656e8f34a5d65c3c401eb50f249d5436a949c09efd5b821d1c5e1f59dc4c27b5f4aadc1c24f474854498664b5d333d340d03f4998c59ba |
30 |
DIST zoom-5.8.4.210_x86_64.tar.xz 54613448 BLAKE2B 676697987ab188fef9317d6a25cb3cd6679afc7c268b008302198ef866eda297e97ca19dc22d4241a1b62edeca2ef3885e590ebb773c6556f2d1d1a7954cc28a SHA512 7e0f1d43aeeddd84c590c2bce758981afd3feaa148e54e3dffbd61879ea46750beb8fb36bfd7f43e72b0a17c2f48dfa3a6e3273fef19510202a0570f8cf5e1f1 |
31 |
DIST zoom-5.8.6.739_x86_64.tar.xz 55756408 BLAKE2B 5a0def3ebc239a55fbcba3aebfcf47d9121d0c7ad7bfb10477a0adce40fba278a15e74253261960c7c8fe452c1b0661c05aa9f48a79cd20e0e33048c247d9aba SHA512 5b2dbc9c914a8ec75978664b1cab19c3c7f8bc4a1e75772e5194b45c35e7ae8a2e5ed6c6fedd4be6ffd8af8736805163581ea5daefca1c9b914eff450f250200 |
32 |
+DIST zoom-5.9.1.1380_x86_64.tar.xz 57213592 BLAKE2B 5ff5202f36d97f7396d7b416ac84278177b3d15e42f05ab25420128b67ce69b5caab87b6df0737a143cc38a2afdb3cc245d05a17e7a82a2c1000b6ff875abe18 SHA512 95bc9572d94648ccbfdec95779ae8e9fc3d8be87da014263b744031e4144b3c7930f31b20443c9c4ff8651dff8cb9b1f93582de32eda97a21126e999d0e9b939 |
33 |
|
34 |
diff --git a/net-im/zoom/zoom-5.9.1.1380.ebuild b/net-im/zoom/zoom-5.9.1.1380.ebuild |
35 |
new file mode 100644 |
36 |
index 000000000000..ace44f92c150 |
37 |
--- /dev/null |
38 |
+++ b/net-im/zoom/zoom-5.9.1.1380.ebuild |
39 |
@@ -0,0 +1,161 @@ |
40 |
+# Copyright 1999-2022 Gentoo Authors |
41 |
+# Distributed under the terms of the GNU General Public License v2 |
42 |
+ |
43 |
+EAPI=8 |
44 |
+ |
45 |
+inherit desktop readme.gentoo-r1 wrapper xdg-utils |
46 |
+ |
47 |
+DESCRIPTION="Video conferencing and web conferencing service" |
48 |
+HOMEPAGE="https://zoom.us/" |
49 |
+SRC_URI="https://zoom.us/client/${PV}/${PN}_x86_64.tar.xz -> ${P}_x86_64.tar.xz" |
50 |
+S="${WORKDIR}/${PN}" |
51 |
+ |
52 |
+LICENSE="all-rights-reserved" |
53 |
+SLOT="0" |
54 |
+KEYWORDS="-* ~amd64" |
55 |
+IUSE="bundled-libjpeg-turbo +bundled-qt opencl pulseaudio wayland" |
56 |
+RESTRICT="mirror bindist strip" |
57 |
+ |
58 |
+RDEPEND="!games-engines/zoom |
59 |
+ dev-libs/glib:2 |
60 |
+ >=dev-libs/quazip-1.0:0= |
61 |
+ media-libs/fdk-aac:0/2 |
62 |
+ media-libs/fontconfig |
63 |
+ media-libs/freetype |
64 |
+ media-sound/mpg123 |
65 |
+ sys-apps/dbus |
66 |
+ sys-apps/util-linux |
67 |
+ virtual/opengl |
68 |
+ x11-libs/libX11 |
69 |
+ x11-libs/libxcb |
70 |
+ x11-libs/libXext |
71 |
+ x11-libs/libXfixes |
72 |
+ x11-libs/libxkbcommon[X] |
73 |
+ x11-libs/libXrender |
74 |
+ x11-libs/libXtst |
75 |
+ x11-libs/xcb-util-image |
76 |
+ x11-libs/xcb-util-keysyms |
77 |
+ opencl? ( virtual/opencl ) |
78 |
+ pulseaudio? ( media-sound/pulseaudio ) |
79 |
+ !pulseaudio? ( media-libs/alsa-lib ) |
80 |
+ wayland? ( dev-libs/wayland ) |
81 |
+ !bundled-libjpeg-turbo? ( >=media-libs/libjpeg-turbo-2.0.5 ) |
82 |
+ !bundled-qt? ( |
83 |
+ dev-libs/icu |
84 |
+ dev-qt/qtcore:5 |
85 |
+ dev-qt/qtdbus:5 |
86 |
+ dev-qt/qtdeclarative:5[widgets] |
87 |
+ dev-qt/qtdiag:5 |
88 |
+ dev-qt/qtgraphicaleffects:5 |
89 |
+ dev-qt/qtgui:5 |
90 |
+ dev-qt/qtlocation:5 |
91 |
+ dev-qt/qtnetwork:5 |
92 |
+ dev-qt/qtquickcontrols:5[widgets] |
93 |
+ dev-qt/qtquickcontrols2:5 |
94 |
+ dev-qt/qtsvg:5 |
95 |
+ dev-qt/qtwidgets:5 |
96 |
+ dev-qt/qtx11extras:5 |
97 |
+ wayland? ( dev-qt/qtwayland ) |
98 |
+ )" |
99 |
+ |
100 |
+BDEPEND="dev-util/bbe |
101 |
+ bundled-libjpeg-turbo? ( dev-util/patchelf )" |
102 |
+ |
103 |
+QA_PREBUILT="opt/zoom/*" |
104 |
+ |
105 |
+src_prepare() { |
106 |
+ default |
107 |
+ |
108 |
+ # The tarball doesn't contain an icon, so extract it from the binary |
109 |
+ bbe -s -b '/<svg width="32"/:/<\x2fsvg>\n/' -e 'J 1;D' zoom \ |
110 |
+ >videoconference-zoom.svg && [[ -s videoconference-zoom.svg ]] \ |
111 |
+ || die "Extraction of icon failed" |
112 |
+ |
113 |
+ if ! use pulseaudio; then |
114 |
+ # For some strange reason, zoom cannot use any ALSA sound devices if |
115 |
+ # it finds libpulse. This causes breakage if media-sound/apulse[sdk] |
116 |
+ # is installed. So, force zoom to ignore libpulse. |
117 |
+ bbe -e 's/libpulse.so/IgNoRePuLsE/' zoom >zoom.tmp || die |
118 |
+ mv zoom.tmp zoom || die |
119 |
+ fi |
120 |
+ |
121 |
+ if use bundled-libjpeg-turbo; then |
122 |
+ # Remove insecure RPATH from bundled lib |
123 |
+ patchelf --remove-rpath libturbojpeg.so || die |
124 |
+ fi |
125 |
+} |
126 |
+ |
127 |
+src_install() { |
128 |
+ insinto /opt/zoom |
129 |
+ exeinto /opt/zoom |
130 |
+ doins -r json ringtone sip timezones translations |
131 |
+ doins *.pcm Embedded.properties version.txt |
132 |
+ doexe zoom zopen ZoomLauncher *.sh |
133 |
+ dosym -r {"/usr/$(get_libdir)",/opt/zoom}/libmpg123.so |
134 |
+ dosym -r "/usr/$(get_libdir)/libfdk-aac.so.2" /opt/zoom/libfdkaac2.so |
135 |
+ dosym -r "/usr/$(get_libdir)/libquazip1-qt5.so" /opt/zoom/libquazip.so |
136 |
+ |
137 |
+ if use opencl; then |
138 |
+ doexe aomhost libaomagent.so libclDNN64.so libmkldnn.so |
139 |
+ dosym -r {"/usr/$(get_libdir)",/opt/zoom}/libOpenCL.so.1 |
140 |
+ fi |
141 |
+ |
142 |
+ if use bundled-libjpeg-turbo; then |
143 |
+ doexe libturbojpeg.so |
144 |
+ else |
145 |
+ dosym -r {"/usr/$(get_libdir)",/opt/zoom}/libturbojpeg.so |
146 |
+ fi |
147 |
+ |
148 |
+ if use bundled-qt; then |
149 |
+ doexe libicu*.so.56 libQt5*.so.5 |
150 |
+ doins qt.conf |
151 |
+ |
152 |
+ local dirs="Qt* bearer generic iconengines imageformats \ |
153 |
+ platforminputcontexts platforms wayland* xcbglintegrations" |
154 |
+ doins -r ${dirs} |
155 |
+ find ${dirs} -type f '(' -name '*.so' -o -name '*.so.*' ')' \ |
156 |
+ -printf '/opt/zoom/%p\0' | xargs -0 -r fperms 0755 || die |
157 |
+ |
158 |
+ ( # Remove libs and plugins with unresolved soname dependencies |
159 |
+ cd "${ED}"/opt/zoom || die |
160 |
+ rm -r Qt/labs/location QtQml/RemoteObjects \ |
161 |
+ QtQuick/LocalStorage QtQuick/Particles.2 QtQuick/Scene2D \ |
162 |
+ QtQuick/Scene3D QtQuick/XmlListModel \ |
163 |
+ platforms/libqeglfs.so platforms/libqlinuxfb.so || die |
164 |
+ use wayland || rm -r libQt5Wayland*.so* QtWayland wayland* \ |
165 |
+ platforms/libqwayland*.so || die |
166 |
+ ) |
167 |
+ else |
168 |
+ local qtzoom="5.12" qtver=$(best_version dev-qt/qtcore:5) |
169 |
+ if [[ ${qtver} != dev-qt/qtcore-${qtzoom}.* ]]; then |
170 |
+ ewarn "You have disabled the bundled-qt USE flag." |
171 |
+ ewarn "You may experience problems when running Zoom with" |
172 |
+ ewarn "a version of the system-wide Qt libs other than ${qtzoom}." |
173 |
+ ewarn "See https://bugs.gentoo.org/798681 for details." |
174 |
+ fi |
175 |
+ fi |
176 |
+ |
177 |
+ make_wrapper zoom /opt/zoom{/zoom,} $(usev bundled-qt /opt/zoom) |
178 |
+ make_desktop_entry "zoom %U" Zoom videoconference-zoom \ |
179 |
+ "Network;VideoConference;" \ |
180 |
+ "MimeType=x-scheme-handler/zoommtg;application/x-zoom;" |
181 |
+ doicon videoconference-zoom.svg |
182 |
+ doicon -s scalable videoconference-zoom.svg |
183 |
+ readme.gentoo_create_doc |
184 |
+} |
185 |
+ |
186 |
+pkg_postinst() { |
187 |
+ xdg_desktop_database_update |
188 |
+ xdg_icon_cache_update |
189 |
+ |
190 |
+ local FORCE_PRINT_ELOG v |
191 |
+ for v in ${REPLACING_VERSIONS}; do |
192 |
+ ver_test ${v} -lt 5.7.28852.0718 && use wayland && FORCE_PRINT_ELOG=1 |
193 |
+ done |
194 |
+ readme.gentoo_print_elog |
195 |
+} |
196 |
+ |
197 |
+pkg_postrm() { |
198 |
+ xdg_desktop_database_update |
199 |
+ xdg_icon_cache_update |
200 |
+} |