1 |
commit: e398dcb1a77d6dc70f5e53c06a3376f7696e57ad |
2 |
Author: Yixun Lan <dlan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Nov 3 07:15:03 2016 +0000 |
4 |
Commit: Yixun Lan <dlan <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 3 07:17:35 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e398dcb1 |
7 |
|
8 |
net-misc/spice-gtk: fix spice-protocol deps |
9 |
|
10 |
Gentoo-Bug: 598820 |
11 |
|
12 |
Package-Manager: portage-2.3.2 |
13 |
|
14 |
net-misc/spice-gtk/spice-gtk-0.33-r1.ebuild | 147 ++++++++++++++++++++++++++++ |
15 |
1 file changed, 147 insertions(+) |
16 |
|
17 |
diff --git a/net-misc/spice-gtk/spice-gtk-0.33-r1.ebuild b/net-misc/spice-gtk/spice-gtk-0.33-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000..1bd1b61 |
20 |
--- /dev/null |
21 |
+++ b/net-misc/spice-gtk/spice-gtk-0.33-r1.ebuild |
22 |
@@ -0,0 +1,147 @@ |
23 |
+# Copyright 1999-2016 Gentoo Foundation |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+# $Id$ |
26 |
+ |
27 |
+EAPI=5 |
28 |
+GCONF_DEBUG="no" |
29 |
+WANT_AUTOMAKE="1.12" |
30 |
+VALA_MIN_API_VERSION="0.14" |
31 |
+VALA_USE_DEPEND="vapigen" |
32 |
+ |
33 |
+inherit autotools eutils vala readme.gentoo-r1 |
34 |
+ |
35 |
+DESCRIPTION="Set of GObject and Gtk objects for connecting to Spice servers and a client GUI" |
36 |
+HOMEPAGE="http://spice-space.org https://cgit.freedesktop.org/spice/spice-gtk/" |
37 |
+ |
38 |
+LICENSE="LGPL-2.1" |
39 |
+SLOT="0" |
40 |
+SRC_URI="http://spice-space.org/download/gtk/${P}.tar.bz2" |
41 |
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
42 |
+IUSE="dbus gstaudio gstvideo gtk3 +introspection lz4 mjpeg policykit pulseaudio sasl smartcard static-libs usbredir vala webdav libressl" |
43 |
+ |
44 |
+REQUIRED_USE="?? ( pulseaudio gstaudio )" |
45 |
+ |
46 |
+# TODO: |
47 |
+# * check if sys-freebsd/freebsd-lib (from virtual/acl) provides acl/libacl.h |
48 |
+# * use external pnp.ids as soon as that means not pulling in gnome-desktop |
49 |
+RDEPEND=" |
50 |
+ !libressl? ( dev-libs/openssl:0= ) |
51 |
+ libressl? ( dev-libs/libressl:0= ) |
52 |
+ pulseaudio? ( media-sound/pulseaudio[glib] ) |
53 |
+ gstvideo? ( |
54 |
+ media-libs/gstreamer:1.0 |
55 |
+ media-libs/gst-plugins-base:1.0 |
56 |
+ media-libs/gst-plugins-good:1.0 |
57 |
+ ) |
58 |
+ gstaudio? ( |
59 |
+ media-libs/gstreamer:1.0 |
60 |
+ media-libs/gst-plugins-base:1.0 |
61 |
+ media-libs/gst-plugins-good:1.0 |
62 |
+ ) |
63 |
+ >=x11-libs/pixman-0.17.7 |
64 |
+ >=media-libs/celt-0.5.1.1:0.5.1 |
65 |
+ media-libs/opus |
66 |
+ gtk3? ( x11-libs/gtk+:3[introspection?] ) |
67 |
+ >=dev-libs/glib-2.36:2 |
68 |
+ >=x11-libs/cairo-1.2 |
69 |
+ virtual/jpeg:0= |
70 |
+ sys-libs/zlib |
71 |
+ introspection? ( dev-libs/gobject-introspection ) |
72 |
+ lz4? ( app-arch/lz4 ) |
73 |
+ sasl? ( dev-libs/cyrus-sasl ) |
74 |
+ smartcard? ( app-emulation/qemu[smartcard] ) |
75 |
+ usbredir? ( |
76 |
+ sys-apps/hwids |
77 |
+ >=sys-apps/usbredir-0.4.2 |
78 |
+ virtual/libusb:1 |
79 |
+ virtual/libgudev:= |
80 |
+ policykit? ( |
81 |
+ sys-apps/acl |
82 |
+ >=sys-auth/polkit-0.110-r1 |
83 |
+ !~sys-auth/polkit-0.111 ) |
84 |
+ ) |
85 |
+ webdav? ( |
86 |
+ net-libs/phodav:2.0 |
87 |
+ >=dev-libs/glib-2.43.90:2 |
88 |
+ >=net-libs/libsoup-2.49.91 ) |
89 |
+" |
90 |
+DEPEND="${RDEPEND} |
91 |
+ >=app-emulation/spice-protocol-0.12.12 |
92 |
+ dev-perl/Text-CSV |
93 |
+ >=dev-util/gtk-doc-am-1.14 |
94 |
+ >=dev-util/intltool-0.40.0 |
95 |
+ >=sys-devel/gettext-0.17 |
96 |
+ virtual/pkgconfig |
97 |
+ vala? ( $(vala_depend) ) |
98 |
+" |
99 |
+ |
100 |
+# Hard-deps while building from git: |
101 |
+# dev-lang/vala:0.14 |
102 |
+# dev-lang/perl |
103 |
+ |
104 |
+src_prepare() { |
105 |
+ epatch_user |
106 |
+ |
107 |
+ AT_NO_RECURSIVE="yes" eautoreconf |
108 |
+ |
109 |
+ use vala && vala_src_prepare |
110 |
+} |
111 |
+ |
112 |
+src_configure() { |
113 |
+ # Prevent sandbox violations, bug #581836 |
114 |
+ # https://bugzilla.gnome.org/show_bug.cgi?id=744134 |
115 |
+ # https://bugzilla.gnome.org/show_bug.cgi?id=744135 |
116 |
+ addpredict /dev |
117 |
+ |
118 |
+ local myconf |
119 |
+ |
120 |
+ if use vala ; then |
121 |
+ # force vala regen for MinGW, etc |
122 |
+ rm -fv gtk/controller/controller.{c,vala.stamp} gtk/controller/menu.c |
123 |
+ fi |
124 |
+ |
125 |
+ myconf=" |
126 |
+ --disable-maintainer-mode \ |
127 |
+ $(use_enable static-libs static) \ |
128 |
+ $(use_enable introspection) \ |
129 |
+ $(use_with sasl) \ |
130 |
+ $(use_enable smartcard) \ |
131 |
+ $(use_enable usbredir) \ |
132 |
+ $(use_with usbredir usb-ids-path /usr/share/misc/usb.ids) \ |
133 |
+ $(use_with usbredir usb-acl-helper-dir /usr/libexec) \ |
134 |
+ $(use_with gtk3 gtk 3.0) \ |
135 |
+ $(use_enable policykit polkit) \ |
136 |
+ $(use_enable pulseaudio pulse) \ |
137 |
+ $(use_enable gstaudio) \ |
138 |
+ $(use_enable gstvideo) \ |
139 |
+ $(use_enable mjpeg builtin-mjpeg) \ |
140 |
+ $(use_enable vala) \ |
141 |
+ $(use_enable webdav) \ |
142 |
+ $(use_enable dbus) \ |
143 |
+ --disable-gtk-doc \ |
144 |
+ --disable-werror \ |
145 |
+ --enable-pie" |
146 |
+ |
147 |
+ econf ${myconf} |
148 |
+} |
149 |
+ |
150 |
+src_compile() { |
151 |
+ # Prevent sandbox violations, bug #581836 |
152 |
+ # https://bugzilla.gnome.org/show_bug.cgi?id=744134 |
153 |
+ # https://bugzilla.gnome.org/show_bug.cgi?id=744135 |
154 |
+ addpredict /dev |
155 |
+ |
156 |
+ default |
157 |
+} |
158 |
+ |
159 |
+src_install() { |
160 |
+ default |
161 |
+ |
162 |
+ dodoc AUTHORS ChangeLog NEWS README THANKS TODO |
163 |
+ |
164 |
+ # Remove .la files if they're not needed |
165 |
+ use static-libs || prune_libtool_files |
166 |
+ |
167 |
+ make_desktop_entry spicy Spicy "utilities-terminal" "Network;RemoteAccess;" |
168 |
+ readme.gentoo_create_doc |
169 |
+} |