# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="identify/delete duplicate files residing within specified directories" HOMEPAGE="http://netdial.caribe.net/~adrian2/fdupes.html" SRC_URI="http://netdial.caribe.net/~adrian2/programs/${P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="amd64 arm hppa ia64 ~mips ppc ppc64 s390 sparc x86" IUSE="md5sum-external" DEPEND="" src_unpack() { unpack ${A} # fix misplaced #include patch -p1 < ${FILESDIR}/fdupes-1.40-md5.c.patch \ || die "patch failed" if use md5sum-external; then cd "${S}" sed -i \ -e 's/^#EXTERNAL_MD5 = /EXTERNAL_MD5 = /g' \ Makefile \ || die "sed failed" fi } src_compile() { emake || die } src_install() { dobin fdupes || die doman fdupes.1 dodoc CHANGES CONTRIBUTORS INSTALL README TODO }