summaryrefslogtreecommitdiff
blob: f21e9874d3282de81c76a315a499d6ea68a9990e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# 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.5.0.ebuild,v 1.3 2007/12/31 10:44:28 jokey 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.8/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/kdesdk kde-base/cervisia ) )"

RDEPEND="${DEPEND}
		subversion? ( || ( kde-base/kdesdk kde-base/kdesdk-kioslaves ) )"
DEPEND="${DEPEND}
		>=sys-devel/flex-2.5.33"

need-kde 3.5

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

	# Fix some post-3.5.8 quirks in qmake.
	epatch "${FILESDIR}/${P}-scope.patch"

	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" <<EOF

[CTAGS]
ctags binary=/usr/bin/exuberant-ctags

EOF
}

pkg_postinst() {
	elog "kdevelop can use a wide range of apps for extra functionality. This is an"
	elog "almost complete list. All these packages can be emerged after kdevelop."
	elog
	elog "kde-base/konsole:		  (RECOMMENDED) embed konsole kpart in kdevelop ide"
	elog "OR kde-base/kdebase:	  (RECOMMENDED) embed konsole kpart in kdevelop ide"
	elog "dev-util/kdbg:		  (RECOMMENDED) kde frontend to gdb"
	elog "dev-util/valgrind:	  (RECOMMENDED) integrates valgrind (memory debugger) commands"
	elog "kde-base/kompare:		  (RECOMMENDED) show differences between files"
	elog "media-gfx/graphviz:	  (RECOMMENDED) support the new graphical classbrowser"
	elog "dev-java/ant:			  support projects using the ant build tool"
	elog "dev-util/ctags:		  faster and more powerful code browsing logic"
	elog "app-doc/doxygen:		  generate KDE-style documentation for your project"
	elog "www-misc/htdig:		  index and search your project's documentation"
	elog "app-arch/rpm:			  support creating RPMs of your project"
	elog "app-emulation/visualboyadvance: create and run projects for this gameboy"
	elog
	elog "Support for GNU-style make, tmake, qmake is included."
	elog "Support for using clearcase, perforce and subversion"
	elog "as version control systems is optional."
}