summaryrefslogtreecommitdiff
blob: f6224a289b0fcbd022e676e6fcd720c128a622cc (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/testdisk/testdisk-5.7.ebuild,v 1.4 2005/09/04 03:05:44 dragonheart Exp $

DESCRIPTION="Multi-platform tool to check and undelete partition, supports reiserfs, ntfs, fat32, ext2/3 and many others. Also includes PhotoRec to recover pictures from digital camera memory."
HOMEPAGE="http://www.cgsecurity.org/index.html?testdisk.html"
SRC_URI="http://www.cgsecurity.org/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="static reiserfs"
DEPEND=">=sys-libs/ncurses-5.2
	>=sys-fs/ntfsprogs-1.9.4
	reiserfs? ( >=sys-fs/progsreiserfs-0.3.1_rc8 )
	>=sys-fs/e2fsprogs-1.35"

src_compile() {
	econf || die
	if ! use reiserfs;
	then
		sed -i -e "s/.*REISERFS.*//g" config.h
		sed -i -e "s/\-lreiserfs//g"  Makefile src/Makefile
	fi
	if use static;
	then
		emake smallstatic || die
	else
		emake || die
	fi
}

src_install() {
	make DESTDIR=${D} install || die
	rm ${D}/usr/share/doc/${PF}/COPYING ${D}/usr/share/doc/${PF}/INSTALL
}