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 Mar 2021 11:26:39
Message-Id: 1614597989.a87585be85cdc2492e883a7fff7fe268cf94a2c3.ulm@gentoo
1 commit: a87585be85cdc2492e883a7fff7fe268cf94a2c3
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 1 11:25:13 2021 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 1 11:26:29 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a87585be
7
8 net-im/zoom: Version bump to 5.5.7938.0228
9
10 Package-Manager: Portage-3.0.16, 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.7938.0228.ebuild | 151 ++++++++++++++++++++++++++++++++++
15 2 files changed, 152 insertions(+)
16
17 diff --git a/net-im/zoom/Manifest b/net-im/zoom/Manifest
18 index 543a57c3f62..e90283c6f00 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.5.6981.0202_x86_64.tar.xz 50898976 BLAKE2B f6029dec4b082bdf9d74e31b04e0c1994b238c5e19482d5b0bdcbc6214c87e8e94ef527ae6a6dff4a96973d4cec3e40f369810b4b1b21abe20d64e0cccd0b15c SHA512 f408a292543028e2262ac1c528be0c38e0fbba61e641c4549bec1ef9e2283f5eb041e68cfd770d87e67e31dc51a27f3ca15c23cc2d82452568518cb0ee97f132
24 DIST zoom-5.5.7011.0206_x86_64.tar.xz 50893408 BLAKE2B 1d03f7fd1f0b7477ba2ff023f1b1f5fd26b0a8a3ac2a54170d3ec3e034a707a824e0b52f6bc3c144be414a28b2587f451d3b6990df02f4ce5df10530c00d1b6a SHA512 c427ed744138b5ef2c741970138e1ad91b5384a020c12451d30b411c8b533e3ffdc4ca785e73a8707d47f53bdd7b9af4e5ffe695ef7de75e1959150730aca913
25 +DIST zoom-5.5.7938.0228_x86_64.tar.xz 50938368 BLAKE2B e8a45c95db2080092674441f16d4bdeeadbe8999483f3ac7ba2da3afb1b340fb3f03cb879a97dd93512159f5a6ff57996782d7b4137547aa78c652c3c40b2641 SHA512 76d3d1dc3c8772636db59f8b641241c4910a54c0e71d33e3f51960d85fd5957536d0e5bbd20870fb7fc1af1457344a3567d7f46bcdfe99774bb87280b14e812c
26
27 diff --git a/net-im/zoom/zoom-5.5.7938.0228.ebuild b/net-im/zoom/zoom-5.5.7938.0228.ebuild
28 new file mode 100644
29 index 00000000000..7ae87da3f7b
30 --- /dev/null
31 +++ b/net-im/zoom/zoom-5.5.7938.0228.ebuild
32 @@ -0,0 +1,151 @@
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:0=
54 + media-libs/fdk-aac:0/2
55 + media-libs/fontconfig
56 + media-libs/freetype
57 + media-sound/mpg123
58 + sys-apps/dbus
59 + sys-apps/util-linux
60 + virtual/opengl
61 + x11-libs/libX11
62 + x11-libs/libxcb
63 + x11-libs/libXext
64 + x11-libs/libXfixes
65 + x11-libs/libxkbcommon[X]
66 + x11-libs/libXrender
67 + x11-libs/libXtst
68 + x11-libs/xcb-util-image
69 + x11-libs/xcb-util-keysyms
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/qtscript:5
87 + dev-qt/qtsvg:5
88 + dev-qt/qtwidgets: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"/:/<\x2fsvg>\n/' -e 'J 1;D' zoom \
102 + >zoom-videocam.svg && [[ -s zoom-videocam.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 *.sh Embedded.properties version.txt
124 + doexe zoom zopen ZoomLauncher
125 + dosym8 -r {"/usr/$(get_libdir)",/opt/zoom}/libmpg123.so
126 + dosym8 -r "/usr/$(get_libdir)/libfdk-aac.so.2" /opt/zoom/libfdkaac2.so
127 +
128 + local quazip_so="libquazip1-qt5.so"
129 + if has_version "<dev-libs/quazip-1.0"; then
130 + quazip_so="libquazip5.so"
131 + fi
132 + dosym8 -r "/usr/$(get_libdir)/${quazip_so}" /opt/zoom/libquazip.so
133 +
134 + if use bundled-libjpeg-turbo; then
135 + doexe libturbojpeg.so
136 + else
137 + dosym8 -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* 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/Shapes 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 + fi
160 +
161 + make_wrapper zoom /opt/zoom{/zoom,} $(usex bundled-qt /opt/zoom "")
162 + make_desktop_entry "zoom %U" Zoom zoom-videocam "" \
163 + "MimeType=x-scheme-handler/zoommtg;application/x-zoom;"
164 + doicon zoom-videocam.svg
165 + doicon -s scalable zoom-videocam.svg
166 + readme.gentoo_create_doc
167 +}
168 +
169 +pkg_postinst() {
170 + xdg_desktop_database_update
171 + xdg_icon_cache_update
172 +
173 + local FORCE_PRINT_ELOG v
174 + for v in ${REPLACING_VERSIONS}; do
175 + ver_test ${v} -le 5.0.403652.0509 && FORCE_PRINT_ELOG=1
176 + done
177 + readme.gentoo_print_elog
178 +}
179 +
180 +pkg_postrm() {
181 + xdg_desktop_database_update
182 + xdg_icon_cache_update
183 +}