blob: b136565d2d08b5d557abb268cc3e6faf6e32e548 (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-fs/dd-rescue/dd-rescue-1.14-r1.ebuild,v 1.1 2010/10/17 14:28:41 chainsaw Exp $
EAPI=3
inherit base
MY_PN=${PN/-/_}
MY_P=${MY_PN}-${PV}
DESCRIPTION="similar to dd but can copy from source with errors"
HOMEPAGE="http://www.garloff.de/kurt/linux/ddrescue/"
SRC_URI="http://www.garloff.de/kurt/linux/ddrescue/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~mips ~ppc ~sparc ~x86 ~arm"
IUSE="static"
RDEPEND=""
DEPEND=""
S=${WORKDIR}/${MY_PN}
PATCHES=( "${FILESDIR}/${P}-ldflags.patch" )
src_compile() {
use static && append-flags -static
emake RPM_OPT_FLAGS="${CFLAGS}" || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" INSTALLFLAGS="" install || die "make install failed"
dodoc README.dd_rescue
}
|