# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-libs/clutter/clutter-1.6.16.ebuild,v 1.5 2012/05/05 08:02:29 jdhore Exp $ EAPI="3" GNOME_TARBALL_SUFFIX="xz" WANT_AUTOMAKE="1.11" # Inherit gnome.org last for new tarball location inherit clutter gnome.org DESCRIPTION="Clutter is a library for creating graphical user interfaces" SLOT="1.0" IUSE="debug doc +introspection" KEYWORDS="amd64 ppc ppc64 x86" # NOTE: glx flavour uses libdrm + >=mesa-7.3 # We always use the gdk-pixbuf backend now since it's been split out RDEPEND="${RDEPEND} >=dev-libs/glib-2.26:2 >=x11-libs/cairo-1.10[glib] >=x11-libs/pango-1.20[introspection?] >=dev-libs/json-glib-0.12[introspection?] >=dev-libs/atk-1.17[introspection?] virtual/opengl x11-libs/libdrm x11-libs/libX11 x11-libs/libXext x11-libs/libXdamage x11-proto/inputproto >=x11-libs/libXi-1.3 >=x11-libs/libXfixes-3 >=x11-libs/libXcomposite-0.4 || ( x11-libs/gdk-pixbuf:2 >=x11-libs/gtk+-2.0:2 ) introspection? ( >=dev-libs/gobject-introspection-0.9.6 ) " DEPEND="${RDEPEND} ${DEPEND} sys-apps/sed sys-devel/gettext virtual/pkgconfig >=dev-util/gtk-doc-am-1.13 doc? ( >=dev-util/gtk-doc-1.13 >=app-text/docbook-sgml-utils-0.6.14[jadetex] dev-libs/libxslt ) " DOCS="AUTHORS README NEWS ChangeLog*" src_configure() { # We only need conformance tests, the rest are useless for us sed -e 's/^\(SUBDIRS =\).*/\1/g' \ -i tests/Makefile.am || die "am tests sed failed" sed -e 's/^\(SUBDIRS =\).*/\1/g' \ -i tests/Makefile.in || die "in tests sed failed" # XXX: Conformance test suite (and clutter itself) does not work under Xvfb # XXX: Profiling, coverage disabled for now # XXX: What about eglx/eglnative/opengl-egl-xlib/osx/wayland/etc flavours? # Uses gudev-1.0 and libxkbcommon for eglnative/cex1000 local myconf=" --enable-debug=minimum --enable-cogl-debug=minimum --enable-conformance=no --disable-gcov --enable-profile=no --enable-maintainer-flags=no --enable-xinput --with-flavour=glx --with-imagebackend=gdk-pixbuf $(use_enable introspection) $(use_enable doc docs)" if use debug; then myconf="${myconf} --enable-debug=yes --enable-cogl-debug=yes" fi econf ${myconf} }