--- nfbtrans-7.74-r1.ebuild 2011-12-23 22:31:11.000000000 +0100 +++ nfbtrans-7.74-r2.ebuild 2013-03-16 22:12:12.125032403 +0100 @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-accessibility/nfbtrans/nfbtrans-7.74-r1.ebuild,v 1.3 2011/12/23 21:31:11 ago Exp $ -EAPI="3" +EAPI="4" inherit eutils @@ -23,19 +23,22 @@ src_prepare() { mv MAKEFILE Makefile mv SPANISH.ZIP spanish.zip - make lowercase || die + emake lowercase epatch "${FILESDIR}"/${P}-gentoo-fix.patch epatch "${FILESDIR}"/${P}-getline-fix.patch + sed -i \ + -e 's/$(CFLAGS)/$(CFLAGS) $(LDFLAGS)/' \ + "${S}"/Makefile || die } src_compile() { - make CC=$(tc-getCC) \ + emake CC=$(tc-getCC) \ LIBS= \ - CFLAGS="${CFLAGS} -DLINUX" LDFLAGS="${LDFLAGS}" all || die + CFLAGS="${CFLAGS} -DLINUX" LDFLAGS="${LDFLAGS}" all } src_install() { - dobin nfbtrans || die + dobin nfbtrans dodoc *fmt readme.txt makedoc insinto /etc/nfbtrans doins *cnf *tab *dic spell.dat *zip