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

EAPI="2"

inherit kde4-base

KDEVELOP_PV="4.0.0"
DESCRIPTION="PHP plugin for KDevelop 4."
HOMEPAGE="http://www.kdevelop.org/"

LICENSE="GPL-2 LGPL-2"
KEYWORDS="~amd64 ~x86"
SLOT="4"

PLUGINS="+php +php-docs"
IUSE="debug ${PLUGINS}"
PLUGINS="${PLUGINS//+/}"

for plugin in ${PLUGINS}; do
	SRC_URI+=" ${plugin}? ( mirror://kde/stable/kdevelop/${KDEVELOP_PV}/src/kdevelop-${plugin}-${PV}.tar.bz2 )"
done

DEPEND="
	>=dev-util/kdevplatform-${PV}
"
RDEPEND="${DEPEND}"

S="${WORKDIR}"

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

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

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