1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 VALA_MIN_API_VERSION="0.14"
7 VALA_USE_DEPEND="vapigen"
9 inherit autotools eutils xdg-utils vala readme.gentoo-r1
11 DESCRIPTION="Set of GObject and Gtk objects for connecting to Spice servers and a client GUI"
12 HOMEPAGE="https://www.spice-space.org https://cgit.freedesktop.org/spice/spice-gtk/"
16 EGIT_REPO_URI="https://anongit.freedesktop.org/git/spice/spice-gtk.git"
18 IUSE="dbus gstaudio gstvideo gtk3 +introspection lz4 mjpeg policykit pulseaudio sasl smartcard static-libs usbredir vala webdav libressl"
20 REQUIRED_USE="?? ( pulseaudio gstaudio )"
23 # * check if sys-freebsd/freebsd-lib (from virtual/acl) provides acl/libacl.h
24 # * use external pnp.ids as soon as that means not pulling in gnome-desktop
26 !libressl? ( dev-libs/openssl:0= )
27 libressl? ( dev-libs/libressl:0= )
28 pulseaudio? ( media-sound/pulseaudio[glib] )
30 media-libs/gstreamer:1.0
31 media-libs/gst-plugins-base:1.0
32 media-libs/gst-plugins-good:1.0
35 media-libs/gstreamer:1.0
36 media-libs/gst-plugins-base:1.0
37 media-libs/gst-plugins-good:1.0
39 >=x11-libs/pixman-0.17.7
40 >=media-libs/celt-0.5.1.1:0.5.1
42 gtk3? ( x11-libs/gtk+:3[introspection?] )
43 >=dev-libs/glib-2.36:2
47 introspection? ( dev-libs/gobject-introspection )
49 sasl? ( dev-libs/cyrus-sasl )
50 smartcard? ( app-emulation/qemu[smartcard] )
53 >=sys-apps/usbredir-0.4.2
58 >=sys-auth/polkit-0.110-r1
59 !~sys-auth/polkit-0.111 )
63 >=dev-libs/glib-2.43.90:2
64 >=net-libs/libsoup-2.49.91 )
67 =app-emulation/spice-protocol-9999
69 >=dev-util/gtk-doc-am-1.14
70 >=dev-util/intltool-0.40.0
71 >=sys-devel/gettext-0.17
73 vala? ( $(vala_depend) )
81 use vala && vala_src_prepare
85 # Prevent sandbox violations, bug #581836
86 # https://bugzilla.gnome.org/show_bug.cgi?id=744134
87 # https://bugzilla.gnome.org/show_bug.cgi?id=744135
90 # Clean up environment, bug #586642
96 # force vala regen for MinGW, etc
97 rm -fv gtk/controller/controller.{c,vala.stamp} gtk/controller/menu.c
101 --disable-maintainer-mode \
102 $(use_enable static-libs static) \
103 $(use_enable introspection) \
105 $(use_enable smartcard) \
106 $(use_enable usbredir) \
107 $(use_with usbredir usb-ids-path /usr/share/misc/usb.ids) \
108 $(use_with usbredir usb-acl-helper-dir /usr/libexec) \
109 $(use_with gtk3 gtk 3.0) \
110 $(use_enable policykit polkit) \
111 $(use_enable pulseaudio pulse) \
112 $(use_enable gstaudio) \
113 $(use_enable gstvideo) \
114 $(use_enable mjpeg builtin-mjpeg) \
116 $(use_enable webdav) \
126 # Prevent sandbox violations, bug #581836
127 # https://bugzilla.gnome.org/show_bug.cgi?id=744134
128 # https://bugzilla.gnome.org/show_bug.cgi?id=744135
137 dodoc AUTHORS NEWS README TODO
139 # Remove .la files if they're not needed
140 use static-libs || prune_libtool_files
142 make_desktop_entry spicy Spicy "utilities-terminal" "Network;RemoteAccess;"
143 readme.gentoo_create_doc