# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils gnome2 MY_PF=${PF%%_*} DESCRIPTION="A versatile IDE for GNOME" HOMEPAGE="http://www.anjuta.org" SRC_URI="mirror://sourceforge/anjuta/${MY_PF}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="doc gtkdoc inherit-graph subversion" RDEPEND=">=dev-libs/glib-2.4.0 >=x11-libs/gtk+-2.4.0 >=media-libs/gdk-pixbuf-0.22.0 >=gnome-base/orbit-2.6.0 >=gnome-base/libglade-2.3.0 >=gnome-base/libgnome-2.6.0 >=gnome-base/libgnomeui-2.6.0 >=gnome-base/libgnomeprint-2.4.0 >=gnome-base/libgnomeprintui-2.4.0 >=gnome-base/gnome-vfs-2.6.0 >=gnome-base/gconf-2.6.0 >=x11-libs/vte-0.7.0 >=dev-libs/libxml2-2.4.23 >=x11-libs/pango-1.1.1 >=dev-libs/gdl-0.5.0 >=sys-devel/autogen-5.6.4 >=dev-util/devhelp-0.9.3 >=dev-util/gnome-build-0.1.1 >=dev-libs/libpcre-5.0 dev-libs/libxslt gtkdoc? ( >=dev-util/gtk-doc-1.0 ) subversion? ( >=dev-util/subversion-1.1.4 net-misc/neon dev-libs/apr ) inherit-graph? ( >=media-gfx/graphviz-2.2.1 )" DEPEND="${RDEPEND} dev-lang/perl dev-perl/XML-Parser sys-devel/gettext dev-util/pkgconfig" # Make sure that it is not build in parallel MAKEOPTS="${MAKEOPTS} -j1" S=${WORKDIR}/${MY_PF} src_unpack() { unpack ${A} || die "Unable to extract sources" cd ${S} # Patch the configure script # Gnome Bugzilla Bug #304809 epatch ${FILESDIR}/configure-in.patch autoreconf || die "Unable to reconfigure autotools" libtoolize --force --copy } src_compile() { econf $(use_enable gtkdoc gtk-doc) \ $(use_enable subversion) \ $(use_enable inherit-graph class-inheritance) || die "Configure Failed!" emake || die "Compile Failed!" } pkg_postinst() { gnome2_pkg_postinst if use doc; then dodoc ${S}/manuals dodoc ${S}/doc fi ebeep 1 einfo "Some project templates may require additional development" einfo "libraries to function correctly. It goes beyond the scope" einfo "of this ebuild to provide them." epause 5 }