# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-util/anjuta/anjuta-1.2.4-r1.ebuild,v 1.9 2007/03/05 03:16:43 genone Exp $ WANT_AUTOMAKE="latest" WANT_AUTOCONF="latest" inherit eutils gnome2 multilib autotools DESCRIPTION="A versatile IDE for GNOME" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" HOMEPAGE="http://anjuta.sourceforge.net/" IUSE="" SLOT="0" LICENSE="GPL-2" KEYWORDS="amd64 ppc sparc x86" RDEPEND=">=dev-libs/glib-2.0.6 >=x11-libs/gtk+-2.0.8 >=gnome-base/orbit-2.10.3 >=gnome-base/libglade-2 >=gnome-base/libgnome-2.0.2 >=gnome-base/libgnomeui-2.0.2 >=gnome-base/libgnomeprint-2.0.1 >=gnome-base/libgnomeprintui-2.0.1 >=gnome-base/gnome-vfs-2.0.2 >=gnome-base/libbonobo-2 >=gnome-base/libbonoboui-2.0.1 >=x11-libs/vte-0.9 >=dev-libs/libxml2-2.4.23 >=x11-libs/pango-1.1.1 dev-libs/libpcre app-text/scrollkeeper" DEPEND="${RDEPEND} sys-devel/gettext dev-util/pkgconfig" src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/anjuta-1.2.4-gtk-fix.patch sed -i -e "s:packageplugindir=lib:packageplugindir=$(get_libdir):" \ configure.in cp "/usr/share/gettext/config.rpath" "${S}" eautoreconf gnome2_omf_fix } src_install() { # Fix docs installation (per bug #61344) sed -i "s:share/doc/${PN}:share/doc/${PF}:g" Makefile sed -i "s:share/doc/${PN}:share/doc/${PF}/html:g" doc/Makefile gnome2_src_install prepalldocs } pkg_postinst() { gnome2_pkg_postinst elog elog "Some project templates may require additional development" elog "libraries to function correctly. It goes beyond the scope" elog "of this ebuild to provide them." elog ewarn "If code autocompletion is missing gtk+ and other pkg-config" ewarn "managed package headers, resolve any errors produced by the" ewarn "following command, and then re-emerge anjuta:" ewarn ewarn "# pkg-config --cflags \`pkg-config --list-all 2>/dev/null | awk '{printf(\"%s \",\$1);}'\`" ewarn }