# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="Expanded md5sum program that has recursive and comparison options." HOMEPAGE="http://md5deep.sourceforge.net" SRC_URI="mirror://sourceforge/md5deep/${P}.tar.gz" LICENSE="freedist" SLOT="0" KEYWORDS="~amd64 ~x86 ~ppc ~sparc ~ppc-macos" IUSE="" DEPEND="" src_unpack() { unpack ${A}; cd ${S} epatch ${FILESDIR}/${PN}-1.10-newline-fflush.patch } src_compile() { sed -i -e "s:-Wall -O3:${CFLAGS}:g" Makefile case ${CHOST} in *-darwin*) BUILDTARGET="mac" ;; *-linux*) BUILDTARGET="linux" ;; # Let it fallback to general "unix" when not using linux exactly *) BUILDTARGET="unix" ;; esac make "${BUILDTARGET}" || die "make failed" } src_install() { make BIN="${D}/usr/bin" MAN="${D}/usr/share/man/man1" install || die "make install failed" dodoc CHANGES README }