summaryrefslogtreecommitdiff
blob: 156e1c48f46167c100a28891fecabf011797f362 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

DESCRIPTION="recover deleted files on an ext3 file system"
HOMEPAGE="http://www.xs4all.nl/~carlo17/howto/undelete_ext3.html"
SRC_URI="http://ext3grep.googlecode.com/files/${P}.tar.gz"

LICENSE="GPL-2"

SLOT="0"
KEYWORDS="~amd64 ~x86"

IUSE="debug largefile libcwd pch"
RDEPEND=""
DEPEND="${RDEPEND}
	debug? ( libcwd? ( dev-cpp/libcwd ) )"

src_unpack(){
	unpack ${A}
	cd "${S}"
	epatch "${FILESDIR}"/gcc-4.3.patch
}

src_compile() {
	local myconf

	use debug && myconf="--disable-optimize"

	econf ${myconf} \
		$(use_enable libcwd) \
		$(use_enable debug) \
		$(use_enable pch) \
		$(use_enable largefile) \
		|| die "econd failed"

	emake || die "emake failed"
}


src_install() {
	emake DESTDIR="${D}" install || die

	dodoc NEWS README || die
}