--- rcsi-0.5.ebuild 2012-11-07 16:35:14.793174472 +0100 +++ rcsi-0.5-r1.ebuild 2012-11-07 16:48:32.343144863 +0100 @@ -2,6 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-vcs/rcsi/rcsi-0.5.ebuild,v 1.1 2011/02/10 21:36:09 ulm Exp $ +EAPI=4 inherit toolchain-funcs DESCRIPTION="A program to give information about RCS files" @@ -18,18 +19,12 @@ S=${WORKDIR}/${PN} -src_unpack() { - unpack ${A} - CC="$(tc-getCC)" - sed -e "s^gcc -Wall -O2 -Xlinker -s^${CC} -Wall ${CFLAGS}^g" -i "${S}"/Makefile -} - src_compile() { - emake -j1 rcsi || die + $(tc-getCC) $CFLAGS $LDFLAGS rcsi.c -o rcsi || die "Compile failed" } src_install() { - dobin rcsi || die + dobin rcsi doman rcsi.1 dodoc README dohtml README.html example{1,2}.png