| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/sys-fs/ddrescue/ddrescue-1.15.ebuild,v 1.3 2012/04/24 12:40:16 ago Exp $
|
| 4 |
|
| 5 |
inherit toolchain-funcs
|
| 6 |
|
| 7 |
DESCRIPTION="Copies data from one file or block device to another with read-error recovery"
|
| 8 |
HOMEPAGE="http://www.gnu.org/software/ddrescue/ddrescue.html"
|
| 9 |
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
|
| 10 |
|
| 11 |
LICENSE="GPL-2"
|
| 12 |
SLOT="0"
|
| 13 |
KEYWORDS="amd64 ~arm ~ia64 ppc ~sparc x86"
|
| 14 |
IUSE=""
|
| 15 |
|
| 16 |
DEPEND=""
|
| 17 |
RDEPEND=""
|
| 18 |
|
| 19 |
src_compile() {
|
| 20 |
# not a normal configure script
|
| 21 |
./configure \
|
| 22 |
--prefix=/usr \
|
| 23 |
CC="$(tc-getCC)" \
|
| 24 |
CXX="$(tc-getCXX)" \
|
| 25 |
CPPFLAGS="${CPPFLAGS}" \
|
| 26 |
CFLAGS="${CFLAGS}" \
|
| 27 |
CXXFLAGS="${CXXFLAGS}" \
|
| 28 |
LDFLAGS="${LDFLAGS}" \
|
| 29 |
|| die "configure failed"
|
| 30 |
emake || die "emake failed"
|
| 31 |
}
|
| 32 |
|
| 33 |
src_test() {
|
| 34 |
./testsuite/check.sh "${S}"/testsuite || die
|
| 35 |
}
|
| 36 |
|
| 37 |
src_install() {
|
| 38 |
emake DESTDIR="${D}" install install-man || die "make install failed"
|
| 39 |
dodoc ChangeLog README NEWS AUTHORS
|
| 40 |
}
|