# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-arch/macutil/macutil-2.0_beta3.ebuild,v 1.5 2004/10/05 10:59:23 pvdabeel Exp $ inherit eutils MY_P=${P/_beta/b} DESCRIPTION="A collection of programs to handle Macintosh files/archives on non-Macintosh systems" HOMEPAGE="http://homepages.cwi.nl/~dik/english/ftp.html" SRC_URI="ftp://ftp.cwi.nl/pub/dik/${MY_P/-/}.shar.Z" LICENSE="as-is" SLOT="0" KEYWORDS="x86 ppc" IUSE="" DEPEND="virtual/libc" RDEPEND="${DEPEND} >=sys-apps/sed-4" S="${WORKDIR}/${PN}" src_unpack() { unpack ${A} unshar ${MY_P/-/}.shar cd ${PN} sed -i.orig \ -e "s:CF =\t\(.*\):CF = \1 $CFLAGS:g" \ -e "s:-DBSD::g" \ -e "s:-DDEBUG::g" \ -e "s:/ufs/dik/tmpbin:$D/usr/bin:g" \ makefile } src_compile() { emake || die "build failed" } src_install() { dodir /usr/bin einstall || die "install failed" doman man/*.1 dodoc README doc/* }