inherit autotools eutils DESCRIPTION="flexible filesystem archiver for backup and deployment tool" HOMEPAGE="http://www.fsarchiver.org" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="lzo lzma gcrypt static" DEPEND="sys-libs/zlib app-arch/bzip2 >=sys-fs/e2fsprogs-1.41.4 lzma? ( >=app-arch/xz-utils-4.999.9_beta ) lzo? ( >=dev-libs/lzo-2.02 ) gcrypt? ( dev-libs/libgcrypt )" src_unpack() { unpack ${A} cd "${S}" eautoconf } src_compile() { local myconf="--prefix=/usr" use lzma || myconf="${myconf} --disable-lzma" use lzo || myconf="${myconf} --disable-lzo" use gcrypt || myconf="${myconf} --disable-crypto" use static && myconf="${myconf} --enable-static" econf ${myconf} || die "econf failed." emake || die "emake failed." } src_install() { emake DESTDIR="${D}" install || die "emake install failed." }