/[gentoo-x86]/net-misc/spice-gtk/spice-gtk-0.12.ebuild
Gentoo

Contents of /net-misc/spice-gtk/spice-gtk-0.12.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Tue Dec 4 20:26:16 2012 UTC (6 months, 1 week ago) by cardoe
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
Remove older versions

(Portage version: 2.1.11.31/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/spice-gtk/spice-gtk-0.12.ebuild,v 1.7 2012/12/03 02:27:45 ssuominen Exp $
4
5 EAPI="4"
6 GCONF_DEBUG="no"
7 WANT_AUTOMAKE="1.11"
8
9 inherit autotools eutils python
10
11 PYTHON_DEPEND="2"
12
13 DESCRIPTION="Set of GObject and Gtk objects for connecting to Spice servers and a client GUI."
14 HOMEPAGE="http://spice-space.org http://gitorious.org/spice-gtk"
15
16 LICENSE="LGPL-2.1"
17 SLOT="0"
18 SRC_URI="http://spice-space.org/download/gtk/${P}.tar.bz2"
19 KEYWORDS="~amd64 ~x86"
20 IUSE="doc gstreamer gtk3 +introspection policykit pulseaudio
21 python sasl smartcard static-libs usbredir vala"
22
23 # TODO:
24 # * check if sys-freebsd/freebsd-lib (from virtual/acl) provides acl/libacl.h
25 # * use external pnp.ids as soon as that means not pulling in gnome-desktop
26 RDEPEND="pulseaudio? ( media-sound/pulseaudio )
27 gstreamer? ( !pulseaudio? (
28 media-libs/gstreamer:0.10
29 media-libs/gst-plugins-base:0.10 ) )
30 >=app-emulation/spice-protocol-0.10.1
31 >=x11-libs/pixman-0.17.7
32 >=media-libs/celt-0.5.1.1:0.5.1
33 dev-libs/openssl
34 gtk3? ( x11-libs/gtk+:3[introspection?] )
35 !gtk3? ( x11-libs/gtk+:2[introspection?] )
36 >=dev-libs/glib-2.26:2
37 >=x11-libs/cairo-1.2
38 virtual/jpeg
39 sys-libs/zlib
40 introspection? ( dev-libs/gobject-introspection )
41 python? ( dev-python/pygtk:2 )
42 sasl? ( dev-libs/cyrus-sasl )
43 smartcard? ( app-emulation/libcacard )
44 usbredir? (
45 sys-apps/hwids
46 policykit? (
47 sys-apps/acl
48 >=sys-auth/polkit-0.101 )
49 virtual/libusb:1
50 >=sys-apps/usbredir-0.4.2
51 <sys-apps/usbredir-0.5
52 virtual/udev[gudev] )"
53 DEPEND="${RDEPEND}
54 vala? ( dev-lang/vala:0.14 )
55 dev-lang/python
56 dev-python/pyparsing
57 virtual/pkgconfig
58 >=dev-util/intltool-0.40.0
59 >=sys-devel/gettext-0.17"
60
61 # Hard-deps while building from git:
62 # dev-lang/vala:0.14
63 # dev-lang/perl
64 # dev-perl/Text-CSV
65
66 pkg_setup() {
67 python_set_active_version 2
68 python_pkg_setup
69 if use gstreamer && use pulseaudio ; then
70 ewarn "spice-gtk can use only one audio backend: pulseaudio will be used since you enabled both."
71 fi
72 }
73
74 src_prepare() {
75 epatch "${FILESDIR}/${PV}-parallel-install.patch"
76 eautoreconf
77 }
78
79 src_configure() {
80 local audio="no"
81 local gtk="2.0"
82
83 use gstreamer && audio="gstreamer"
84 use pulseaudio && audio="pulse"
85 # TODO: do a double build like gtk-vnc does to install both gtk2 & gtk3 libs
86 use gtk3 && gtk="3.0"
87 if use vala ; then
88 # force vala regen for MinGW, etc
89 rm -fv gtk/controller/controller.{c,vala.stamp} gtk/controller/menu.c
90 fi
91
92 econf --disable-maintainer-mode \
93 VALAC=$(type -P valac-0.14) \
94 VAPIGEN=$(type -P vapigen-0.14) \
95 $(use_enable static-libs static) \
96 $(use_enable introspection) \
97 --with-audio="${audio}" \
98 $(use_with python) \
99 $(use_with sasl) \
100 $(use_enable smartcard) \
101 $(use_enable usbredir) \
102 $(use_with usbredir usb-ids-path /usr/share/misc/usb.ids) \
103 $(use_with usbredir usb-acl-helper-dir /usr/libexec) \
104 $(use_enable policykit polkit) \
105 $(use_enable vala) \
106 --with-gtk="${gtk}" \
107 --disable-werror
108 }
109
110 src_install() {
111 default
112
113 use static-libs || rm -rf "${D}"/usr/lib*/*.la
114 use python && rm -rf "${D}"/usr/lib*/python*/site-packages/*.la
115 use doc || rm -rf "${D}/usr/share/gtk-doc"
116
117 make_desktop_entry spicy Spicy "utilities-terminal" "Network;RemoteAccess;"
118 }

  ViewVC Help
Powered by ViewVC 1.1.20