# Copyright 1999-2006 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.4 2006/03/13 18:04:21 gustavoz Exp $ inherit eutils gnome2 multilib 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} dev-util/pkgconfig" MAKEOPTS="${MAKEOPTS} -j1" 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 autoreconf -f -i libtoolize --copy --force || die 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 einfo 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." einfo 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 }