summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-fs/extcarve/extcarve-0.5.ebuild')
-rw-r--r--sys-fs/extcarve/extcarve-0.5.ebuild38
1 files changed, 38 insertions, 0 deletions
diff --git a/sys-fs/extcarve/extcarve-0.5.ebuild b/sys-fs/extcarve/extcarve-0.5.ebuild
new file mode 100644
index 0000000..27bd4ba
--- /dev/null
+++ b/sys-fs/extcarve/extcarve-0.5.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+inherit toolchain-funcs
+
+MY_P=${P/-/_}
+
+DESCRIPTION="Tool to recover deleted files"
+HOMEPAGE="http://www.giis.co.in/giis/"
+SRC_URI="http://www.giis.co.in/giis/${MY_P}.tar"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="sys-fs/e2fsprogs"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+S="${WORKDIR}"/${MY_P}
+
+src_prepare() {
+ sed -i \
+ -e '/^CFLAGS/d' \
+ -e 's/LDFLAGS =/LDFLAGS +=/' \
+ -e "s:gcc:$(tc-getCC):" \
+ -e 's:$(LDFLAGS) src/extcarve.c:src/extcarve.c $(LDFLAGS):' \
+ Makefile || die
+}
+
+src_install() {
+ dobin extcarve
+ dodoc README HOWTO_CUSTOMIZE
+}