From: Ulrich Müller Date: Wed, 8 Apr 2020 12:47:26 +0000 (+0200) Subject: net-im/zoom: New use flag bundled-libjpeg-turbo. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9093b2fd2b0dc2b969a29f72dcdb150ba25e0dd8;p=gentoo.git net-im/zoom: New use flag bundled-libjpeg-turbo. Bug: https://bugs.gentoo.org/715106 Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Ulrich Müller --- diff --git a/net-im/zoom/metadata.xml b/net-im/zoom/metadata.xml index cef6d2567e16..df9fc1aee0d0 100644 --- a/net-im/zoom/metadata.xml +++ b/net-im/zoom/metadata.xml @@ -10,4 +10,8 @@ mva@gentoo.org + + Use bundled libturbojpeg + instead of media-libs/libjpeg-turbo + diff --git a/net-im/zoom/zoom-3.5.382995.0407.ebuild b/net-im/zoom/zoom-3.5.382995.0407.ebuild index 15de2f97fc13..c0591aa26637 100644 --- a/net-im/zoom/zoom-3.5.382995.0407.ebuild +++ b/net-im/zoom/zoom-3.5.382995.0407.ebuild @@ -14,7 +14,7 @@ S="${WORKDIR}/${PN}" LICENSE="all-rights-reserved Apache-2.0" # Apache-2.0 for icon SLOT="0" KEYWORDS="-* ~amd64 ~x86" -IUSE="pulseaudio" +IUSE="bundled-libjpeg-turbo pulseaudio" RESTRICT="mirror bindist strip" RDEPEND="dev-libs/glib:2 @@ -29,7 +29,6 @@ RDEPEND="dev-libs/glib:2 dev-qt/qtscript:5 dev-qt/qtwidgets:5 media-libs/libglvnd - media-libs/libjpeg-turbo media-sound/mpg123 sys-apps/dbus sys-apps/util-linux @@ -49,6 +48,7 @@ RDEPEND="dev-libs/glib:2 x86? ( dev-qt/qtwebkit:5 ) + !bundled-libjpeg-turbo? ( media-libs/libjpeg-turbo ) pulseaudio? ( media-sound/pulseaudio ) !pulseaudio? ( media-libs/alsa-lib )" @@ -75,7 +75,13 @@ src_install() { use amd64 && doins icudtl.dat doexe zoom{,.sh,linux} zopen ZoomLauncher dosym {"../../usr/$(get_libdir)",/opt/zoom}/libmpg123.so - dosym {"../../usr/$(get_libdir)",/opt/zoom}/libturbojpeg.so #715106 + + if use bundled-libjpeg-turbo; then + doexe libturbojpeg.so.0.1.0 + dosym libturbojpeg.so.0.1.0 /opt/zoom/libturbojpeg.so + else + dosym {"../../usr/$(get_libdir)",/opt/zoom}/libturbojpeg.so #715106 + fi make_wrapper zoom ./zoom /opt/zoom make_desktop_entry "zoom %U" Zoom zoom-videocam "" \