blob: 5d0124557d2ce78b1d9f45be4a08525d2117c098 (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/kde-misc/networkmanagement/networkmanagement-0.8_p20110714.ebuild,v 1.2 2012/03/27 08:48:15 dilfridge Exp $
EAPI=4
KDE_MINIMAL="4.6"
MY_PV="4.4.0_p20110714"
KDE_SCM="git"
EGIT_REPONAME="networkmanagement"
[[ ${PV} = 9999* ]] ||
SRC_URI="http://dev.gentoo.org/~dilfridge/distfiles/knetworkmanager-${MY_PV}.tar.xz"
inherit kde4-base
DESCRIPTION="KDE frontend for NetworkManager"
HOMEPAGE="http://kde.org/"
LICENSE="GPL-2 LGPL-2"
KEYWORDS="amd64 x86"
SLOT="4"
IUSE="consolekit debug"
DEPEND="
net-misc/mobile-broadband-provider-info
>=net-misc/networkmanager-0.8.2-r10
<net-misc/networkmanager-0.9
$(add_kdebase_dep solid 'networkmanager')
"
RDEPEND="${DEPEND}"
RESTRICT="test"
S="${WORKDIR}/knetworkmanager-${MY_PV}"
src_prepare() {
kde4-base_src_prepare
if ! use consolekit; then
# Fix dbus policy
sed -i \
-e 's/at_console=".*"/group="plugdev"/' \
"${S}/NetworkManager-kde4.conf" \
|| die "Fixing dbus policy failed"
fi
}
src_configure() {
local mycmakeargs=(
-DDBUS_SYSTEM_POLICY_DIR=/etc/dbus-1/system.d
)
kde4-base_src_configure
}
|