# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-apps/dd_rescue/dd_rescue-1.02.ebuild,v 1.1 2003/02/13 10:19:02 aliz Exp $ 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/${P}.tar.gz" LICENSE="GPL-2" IUSE="" SLOT="0" KEYWORDS="~x86" S="${WORKDIR}/${PN}" src_unpack() { unpack ${A} cd ${S} mv Makefile Makefile.orig sed -e "s:^CFLAGS.*:CFLAGS = ${CFLAGS}:" \ Makefile.orig > Makefile } src_compile() { emake || die } src_install () { make DESTDIR=${D} install || die dodoc COPYING README.dd_rescue }