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

EAPI="2"

KMNAME="extragear/network"
inherit kde4-base

DESCRIPTION="Provides integration for the MLDonkey P2P software and KDE 4."
HOMEPAGE="http://www.kmldonkey.org/"

LICENSE="GPL-2"
KEYWORDS=""
SLOT="4"
IUSE="debug plasma"

RDEPEND="
	!net-p2p/kmldonkey:2
	plasma? ( >=kde-base/plasma-workspace-${KDE_MINIMAL} )
"
DEPEND="
	sys-devel/gettext
"

src_prepare() {
	kde4-base_src_prepare

	if ! use plasma; then
		sed -e '/add_subdirectory(kmlplasma)/s/^/# DISABLED /g' -i CMakeLists.txt \
			|| die "failed to disable plasmoid"
	fi
}

src_configure() {
	mycmakeargs=(
		$(cmake-utils_use_with plasma)
	)

	kde4-base_src_configure
}