blob: c4126c4b4d03cf71482adb49ced2a6d6bb2d0e9c (
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
48
49
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-fs/safecopy/safecopy-1.3.ebuild,v 1.2 2009/05/27 15:30:45 scarabeus Exp $
EAPI="2"
inherit base eutils
DESCRIPTION="Data recovery tool to fault-tolerantly extract data from damaged (io-errors) devices or files."
HOMEPAGE="http://safecopy.sourceforge.net"
SRC_URI="mirror://sourceforge/safecopy/${P}.tar.gz -> ${P}.tar.gz
http://sourceforge.net/tracker/download.php?group_id=141056&atid=748330&file_id=328461&aid=2796779 -> ${P}-amd64.patch.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
PATCHES=(
"${FILESDIR}/${P}-sandbox.patch"
"${WORKDIR}/${P}-amd64.patch"
)
src_configure() {
base_src_configure
if use test ; then
cd "${S}"/test/libsafecopydebug
econf
fi
}
src_compile() {
base_src_compile
if use test ; then
cd "${S}"/test/libsafecopydebug
emake || die "Testsuite compilation failed"
fi
}
src_install() {
base_src_install
dodoc README || die "copying documentation failed"
}
src_test() {
cd "${S}"/test/
ebegin "Running safecopy self test..."
./test.sh
eend $? || die "Test run failed"
}
|