diff options
Diffstat (limited to 'x11-libs/desktop-agnostic/desktop-agnostic-9999.ebuild')
-rw-r--r-- | x11-libs/desktop-agnostic/desktop-agnostic-9999.ebuild | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/x11-libs/desktop-agnostic/desktop-agnostic-9999.ebuild b/x11-libs/desktop-agnostic/desktop-agnostic-9999.ebuild index e922347..b284d2b 100644 --- a/x11-libs/desktop-agnostic/desktop-agnostic-9999.ebuild +++ b/x11-libs/desktop-agnostic/desktop-agnostic-9999.ebuild @@ -2,38 +2,36 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: $ -EAPI="2" -NEEDS_PYTHON=2.4 +EAPI="3" + +PYTHON_DEPEND=2:2.4 inherit python bzr +EBZR_REPO_URI="lp:libdesktop-agnostic" + DESCRIPTION="A desktop-agnostic library for GLib-based projects" HOMEPAGE="https://launchpad.net/libdesktop-agnostic" SRC_URI="" -EBZR_REPO_URI="lp:libdesktop-agnostic" LICENSE="LGPL-2.1 GPL-2" SLOT="0" -KEYWORDS="" -IUSE="debug gconf gnome -gnome-vfs -xfce" +KEYWORDS="~x86 ~amd64" +IUSE="debug glade gnome gnome-vfs xfce" -SHARED_DEPEND=">=dev-libs/glib-2.16 +RDEPEND=">=dev-libs/glib-2.16 >=x11-libs/gtk+-2.12 + >=dev-libs/gir-repository-0.6.3 + >=dev-libs/gobject-introspection-0.6.3 >=dev-python/pygobject-2.12 >=dev-python/pygtk-2.12 - gconf? ( >=gnome-base/gconf-2.0 ) - gnome? ( - gnome-base/gnome-desktop - ) - gnome-vfs? ( - gnome-base/gnome-vfs:2 - ) - xfce? ( xfce-base/thunar )" - -DEPEND="${SHARED_DEPEND} - dev-libs/gobject-introspection - >=dev-lang/vala-0.7.7" -RDEPEND="${SHARED_DEPEND}" + gnome? ( gnome-base/gnome-desktop ) + gnome-vfs? ( gnome-base/gnome-vfs:2 ) + xfce? ( xfce-base/thunar:1 )" +DEPEND="${RDEPEND} + >=dev-libs/gobject-introspection-0.6.3 + >=dev-lang/vala-0.7.0" +RDEPEND="${RDEPEND}" src_prepare() { # See https://bugs.launchpad.net/libdesktop-agnostic/+bug/519831 @@ -42,10 +40,8 @@ src_prepare() { src_configure() { local cfg="keyfile" de="glib" vfs="gio" myconf="" - if use gconf; then - cfg="gconf,${cfg}" - fi if use gnome; then + cfg="gconf" de="gnome,${de}" fi if use gnome-vfs; then @@ -57,15 +53,19 @@ src_configure() { if use debug; then myconf="${myconf} --enable-debug" fi - ./waf configure --prefix=/usr --with-glade --config-backends=${cfg} \ - --desktop-entry-backends=${de} --vfs-backends=${vfs} \ - ${myconf} || die "Could not configure ${PN}." + ./waf configure \ + --prefix=/usr \ + --config-backends=${cfg} \ + --desktop-entry-backends=${de} \ + --vfs-backends=${vfs} \ + $(use_with glade) \ + ${myconf} || die "configure failed" } src_compile() { - ./waf || die "Could not compile ${PN}." + ./waf || die "compile failed" } src_install() { - ./waf install --destdir="${D}" || die "Could not install ${PN}." + ./waf install --destdir="${D}" || die "install failed" } |