# Copyright 1999-2011 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_p30110815.ebuild,v 1.1 2011/08/15 15:11:21 dilfridge Exp $ # # NOTE: the "3" in the patchlevel is not a typo!!! # EAPI=4 KDE_MINIMAL="4.6" KDE_SCM="git" EGIT_REPONAME="networkmanagement" EGIT_BRANCH="nm09" [[ ${PV} = 9999* ]] || SRC_URI="http://dev.gentoo.org/~dilfridge/distfiles/${P}.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.9997 " 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 } src_configure() { local mycmakeargs=( -DDBUS_SYSTEM_POLICY_DIR=/etc/dbus-1/system.d ) kde4-base_src_configure }