# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-apps/sysvinit/sysvinit-2.87-r3.ebuild,v 1.12 2010/04/11 16:54:43 armin76 Exp $ inherit eutils git PATCH_VER="2" DESCRIPTION="Replacement for sysvinit" HOMEPAGE="http://www.freedesktop.org/wiki/Software/systemd" EGIT_REPO_URI="git://anongit.freedesktop.org/systemd" SRC_URI="" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="nosysv gtk" RDEPEND=">=dev-lang/vala-0.8 >=dev-libs/libcgroup-0.35 >=sys-apps/dbus-1.2.24 >=sys-fs/udev-151 >=sys-kernel/linux-headers-2.6.32 sys-libs/libcap gtk? ( >=x11-libs/gtk+-2.20 ) " DEPEND="${RDEPEND}" src_unpack() { git_src_unpack } src_compile() { if use nosysv ; then epatch "${FILESDIR}/${P}-nosysv.patch" || die "epatch failed" fi myargs="--with-distro=gentoo --prefix=/ --libexecdir=/usr/libexec --datarootdir=/usr/share" if ! use gtk ; then myargs="$myargs --disable-gtk" fi ./bootstrap.sh $myargs || die "bootstrap.sh failed" emake ${myconf} || die "emake failed" } src_install() { emake DESTDIR=${D} install || die "emake install failed" dodoc README }