diff options
-rw-r--r-- | net-im/zoom/metadata.xml | 4 | ||||
-rw-r--r-- | net-im/zoom/zoom-3.5.382995.0407.ebuild | 12 |
2 files changed, 13 insertions, 3 deletions
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 @@ <maintainer type="person"> <email>mva@gentoo.org</email> </maintainer> + <use> + <flag name="bundled-libjpeg-turbo">Use bundled libturbojpeg + instead of <pkg>media-libs/libjpeg-turbo</pkg></flag> + </use> </pkgmetadata> 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 "" \ |