1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 )
7 PYTHON_REQ_USE="threads(+)"
8 VALA_USE_DEPEND="vapigen"
10 inherit python-single-r1 waf-utils vala
12 DESCRIPTION="A desktop-agnostic library for GLib-based projects"
13 HOMEPAGE="https://launchpad.net/libdesktop-agnostic"
14 SRC_URI="https://launchpad.net/${PN}/0.4/${PV}/+download/${P}.tar.gz"
16 LICENSE="GPL-2 LGPL-2.1"
19 IUSE="debug +gconf glade gnome +introspection"
21 RDEPEND=">=dev-libs/glib-2
22 dev-python/pygobject:2[${PYTHON_USEDEP}]
23 dev-python/pygtk:2[${PYTHON_USEDEP}]
25 gconf? ( gnome-base/gconf:2 )
26 glade? ( gnome-base/libglade:2.0 )
27 gnome? ( gnome-base/gnome-desktop:2 )
31 dev-libs/gobject-introspection
32 introspection? ( x11-libs/gtk+:2[introspection] )"
34 REQUIRED_USE=${PYTHON_REQUIRED_USE}
37 local cfg="keyfile" fdo="glib" myconf=""
39 use gconf && cfg="gconf,${cfg}"
40 use gnome && fdo="${fdo},gnome"
41 use debug && myconf="${myconf} --enable-debug"
42 use glade && myconf="${myconf} --with-glade"
43 use introspection || myconf="${myconf} --disable-gi"
45 waf-utils_src_configure \
46 --sysconfdir="${EPREFIX}"/etc \
47 --config-backends=${cfg} \
48 --desktop-entry-backends=${fdo} \