blob: a8f6c9c33e2ed1efcedbc1cb68ca8491df4b512d [file] [log] [blame]
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit autotools eutils
DESCRIPTION="Upstart is an event-based replacement for the init daemon"
HOMEPAGE="http://upstart.ubuntu.com/"
SRC_URI="http://upstart.ubuntu.com/download/0.6/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86 arm"
IUSE="examples nls upstartdebug"
DEPEND=">=dev-libs/expat-2.0.0
>=sys-apps/dbus-1.2.16
nls? ( sys-devel/gettext )
>=sys-libs/libnih-1.0.2"
RDEPEND=">=sys-apps/dbus-1.2.16
>=sys-libs/libnih-1.0.2"
src_unpack() {
unpack ${A}
cd "${S}"
if use upstartdebug; then
epatch "${FILESDIR}"/upstart-0.6-logger_kmsg.patch
fi
epatch "${FILESDIR}"/upstart-0.6.6-introspection.patch
}
src_compile() {
econf --prefix=/ --includedir='${prefix}/usr/include' \
$(use_enable nls) || die "econf failed"
emake NIH_DBUS_TOOL=$(which nih-dbus-tool) \
|| die "emake failed"
}
src_install() {
emake DESTDIR="${D}" install || die "make install failed"
if ! use examples ; then
elog "Removing example .conf files."
rm "${D}"/etc/init/*.conf
fi
}