# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/kde-misc/knetworkmanager/knetworkmanager-4.4.0_p20100820.ebuild,v 1.3 2010/10/13 15:31:39 hwoarang Exp $ EAPI=3 KMNAME="extragear/base" KMMODULE="networkmanagement" if [[ ${PV} != *9999* ]]; then SRC_URI="mirror://gentoo/${P}.tar.bz2" fi 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 +networkmanager wicd" DEPEND=" $(add_kdebase_dep solid 'networkmanager?,wicd?') net-misc/mobile-broadband-provider-info >=net-misc/networkmanager-0.7 consolekit? ( sys-auth/consolekit ) !wicd? ( $(add_kdebase_dep solid 'networkmanager') ) " RDEPEND="${DEPEND}" RESTRICT="test" 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 # Makes it KDE 4.4 compatible sed -i -e 's/KCMUTILS/KUTILS/' "${S}/applet/CMakeLists.txt" || die "sed died" } src_configure() { mycmakeargs=( -DDBUS_SYSTEM_POLICY_DIR=/etc/dbus-1/system.d ) kde4-base_src_configure }