# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-util/kdevelop/kdevelop-3.4.1.ebuild,v 1.5 2007/06/25 10:52:20 peper Exp $ inherit kde eutils db-use DESCRIPTION="Integrated Development Environment for Unix, supporting KDE/Qt, C/C++ and many other languages." HOMEPAGE="http://www.kdevelop.org" SRC_URI="mirror://kde/stable/3.5.7/src/${P}.tar.bz2" LICENSE="GPL-2" SLOT="3" KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" IUSE="ada clearcase cvs fortran haskell java pascal perforce perl php python ruby sql subversion" DEPEND="sys-devel/gdb >=sys-libs/db-4.1 cvs? ( || ( kde-base/cervisia kde-base/kdesdk ) )" RDEPEND="${DEPEND} subversion? ( || ( kde-base/kdesdk-kioslaves kde-base/kdesdk ) )" DEPEND="${DEPEND} >=sys-devel/flex-2.5.33" need-kde 3.5 PATCHES="${FILESDIR}/kdevelop-3.4.1-hang-fix.diff" MAKEOPTS="${MAKEOPTS} -j1" src_unpack() { kde_src_unpack # Update the admin dir used in KDE template projects. # See also kde bug 104386. for i in ${S}/admin/*; do cp "${i}" "${S}/parts/appwizard/common/admin/" done rm -f "${S}/configure" } src_compile() { local myconf="--with-kdelibsdoxy-dir=$(kde-config --prefix)/share/doc/HTML/en/kdelibs-apidocs" # languages myconf="${myconf} $(use_enable java) $(use_enable python) $(use_enable ruby) $(use_enable ada) $(use_enable fortran) $(use_enable haskell) $(use_enable pascal) $(use_enable perl) $(use_enable php) $(use_enable sql)" # build tools myconf="${myconf} $(use_enable java antproject)" # version control systems myconf="${myconf} $(use_enable cvs) $(use_enable clearcase) $(use_enable perforce) $(use_enable subversion)" # Explicitly set db include directory (bug 128897) myconf="${myconf} --with-db-includedir=$(db_includedir) --with-db-lib=$(db_libname)" kde_src_compile } src_install() { kde_src_install # Default to exuberant-ctags so that we don't end up trying to run emacs's # ctags. cat - >> "${D}/usr/share/config/kdeveloprc" <