# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-libs/libpeas/libpeas-1.0.0.ebuild,v 1.2 2011/08/16 19:03:57 nirbheek Exp $ EAPI="3" GCONF_DEBUG="no" GNOME2_LA_PUNT="yes" PYTHON_DEPEND="python? 2:2.5" inherit gnome2 python virtualx DESCRIPTION="A GObject plugins library" HOMEPAGE="http://www.gnome.org/" LICENSE="LGPL-2" SLOT="0" IUSE="doc +gtk glade python seed vala" KEYWORDS="~amd64 ~x86" RDEPEND=">=dev-libs/glib-2.23.6:2 >=dev-libs/gobject-introspection-0.10.1 glade? ( >=dev-util/glade-3.9.1:3.10 ) gtk? ( >=x11-libs/gtk+-2.90:3[introspection] ) python? ( >=dev-python/pygobject-2.28:2[introspection] ) seed? ( >=dev-libs/seed-2.91.91 )" DEPEND="${RDEPEND} >=dev-util/intltool-0.40 >=sys-devel/gettext-0.17 doc? ( >=dev-util/gtk-doc-1.11 ) vala? ( >=dev-lang/vala-0.11.1:0.12 )" DOCS="AUTHORS ChangeLog NEWS README" pkg_setup() { G2CONF="${G2CONF} $(use_enable glade glade-catalog) $(use_enable gtk) $(use_enable python) $(use_enable seed) $(use_enable vala) VALAC=$(type -P valac-0.12) --disable-static --disable-maintainer-mode --disable-gtk2-test-build" # Wtf, --disable-gcov, --enable-gcov=no, --enable-gcov, all enable gcov # What do we do about gdb, valgrind, gcov, etc? python_set_active_version 2 } src_test() { # FIXME: Tests fail because of some bug involving Xvfb and Gtk.IconTheme # DO NOT REPORT UPSTREAM, this is not a libpeas bug. # To reproduce: # >>> from gi.repository import Gtk # >>> Gtk.IconTheme.get_default().has_icon("gtk-about") # This should return True, it returns False for Xvfb Xemake check || die }