aboutsummaryrefslogtreecommitdiff
blob: effa03f45e439aff585606646451b360f4c738e3 (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"

KMNAME="playground/devtools"
KMMODULE="kdevelop4-extra-plugins"
inherit kde4-base

DESCRIPTION="Various plugins for kdevelop (support for other langs)"
HOMEPAGE="http://www.kdevelop.org/"

LICENSE="GPL-2 LGPL-2"
SLOT="4"
KEYWORDS=""
IUSE="debug +php"

DEPEND="
	>=dev-util/kdevelop-${PV}:${SLOT}
"
RDEPEND="${DEPEND}"

src_prepare() {
	local dir enabled
	#generate basic cmakelists.txt
	cat <<-EOF > "${S}/CMakeLists.txt"
find_package(KDE4 REQUIRED)
find_package(KDevPlatform REQUIRED)
EOF
# # # search based on path
#	find ./ -mindepth 1 -maxdepth 1 -type d -print |sed -e "s:./::g"| \
#	sort | while read dir; do
	enabled="classbrowser php"
	for dir in ${enabled}; do
		echo "macro_optional_add_subdirectory(${dir}) " >> "${S}/CMakeLists.txt"
	done
}

src_configure() {
	mycmakeargs="
		$(cmake-utils_use_build php)"

	kde4-base_src_configure
}