--- lsyncd-1.26.ebuild.orig 2010-01-09 20:35:10.645743004 +0100 +++ lsyncd-1.26.ebuild 2010-01-09 20:36:58.292491736 +0100 @@ -1,7 +1,9 @@ -# Copyright 1999-2009 Gentoo Foundation +# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-admin/lsyncd/lsyncd-1.26.ebuild,v 1.2 2009/06/23 15:15:26 mr_bones_ Exp $ +inherit eutils autotools + DESCRIPTION="Live Syncing (Mirror) Daemon" HOMEPAGE="http://code.google.com/p/lsyncd/" SRC_URI="http://lsyncd.googlecode.com/files/${P}.tar.gz" @@ -9,10 +11,23 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="" +IUSE="xml" + +DEPEND="xml? ( dev-libs/libxml2 )" +RDEPEND="${DEPEND}" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${P}-libxml2.patch" + eautoreconf +} + +src_compile() { + econf $(use_enable xml) -DEPEND="${RDEPEND}" -RDEPEND="" + emake || die "Make failed!" +} src_install() { emake DESTDIR="${D}" install || die "Install failed"