# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=2 inherit flag-o-matic toolchain-funcs eutils DESCRIPTION="Utility to recover deleted files from ext3 or ext4 partitions" HOMEPAGE="http://extundelete.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${PV}/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="debug" RDEPEND=" sys-fs/e2fsprogs " DEPEND=" sys-kernel/linux-headers ${RDEPEND} " src_prepare() { #fix a syntax error epatch "${FILESDIR}/fix_missing_struct.patch" || die "epatch failed" } src_compile() { if use debug; then append-cppflags -DJDEBUG else append-cppflags -DNDEBUG fi tc-export 'CC' tc-export 'CXX' #override the default makefile, becouse it is a mess emake -C src -f ${FILESDIR}/Makefile || die "emake failed" } src_install() { dobin src/extundelete || die "dobin failed" dodoc README testing.txt || die "dodoc failed" }