summaryrefslogtreecommitdiff
path: root/dev-util/kdevelop-extra-plugins/kdevelop-extra-plugins-9999.ebuild
blob: 808f577e21f26c576efbf09596a7b834fd601220 (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
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="3"

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

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

LICENSE="GPL-2 LGPL-2"
SLOT="4"
KEYWORDS=""

PLUGINS="+bazaar +controlflowgraph +css
	+ctest +duchainviewer +erlang +executebrowser +executescript +gettersetter +git
	+includemanager +preprocessor
	+qtdesigner +ruby +sloc +sql +uistrings +valgrind +vcsprojectintegration"

#
# configure phase failed (on my box, missing cmake modules, missing deps)
# check coverage crossfire csharp java okteta teamwork veritascpp xdebug xml xtest
#
# compile phase failed (most look like c++ issues that may have worked in earlier gcc versions)
# automake cppunit python qmake
#
# install phase failed (no target install)
# mercurial metrics
#

IUSE="debug ${PLUGINS}"
PLUGINS="${PLUGINS//+/}"

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

src_prepare() {
	for plugin in ${PLUGINS}; do
		if use ${plugin}; then
			CMAKE_USE_DIR="${WORKDIR}/${P}/${plugin}"
			sed -i -e '/^project(/afind_package(Qt4 REQUIRED)\n' "$CMAKE_USE_DIR/CMakeLists.txt"
		fi
	done
}

src_configure() {
	for plugin in ${PLUGINS}; do
		if use ${plugin}; then
			CMAKE_USE_DIR="${WORKDIR}/${P}/${plugin}"
			kde4-base_src_configure
		fi
	done
}

src_compile() {
	for plugin in ${PLUGINS}; do
		if use ${plugin}; then
			CMAKE_USE_DIR="${WORKDIR}/${P}/${plugin}"
			kde4-base_src_compile
		fi
	done
}

src_install() {
	for plugin in ${PLUGINS}; do
		if use ${plugin}; then
			CMAKE_USE_DIR="${WORKDIR}/${P}/${plugin}"
			kde4-base_src_install
		fi
	done
}