--- gargoyle-20060917-r1.ebuild.old 2009-08-06 00:44:38.000000000 +0300 +++ gargoyle-20060917-r1.ebuild 2009-08-06 00:46:26.000000000 +0300 @@ -2,6 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-engines/gargoyle/gargoyle-20060917-r1.ebuild,v 1.5 2009/06/04 13:31:07 ssuominen Exp $ +EAPI=2 + inherit eutils MY_PV="2006-09-17" @@ -31,10 +33,7 @@ S=${WORKDIR}/${PN} -src_unpack() { - unpack ${A} - cd "${S}" - +src_prepare() { #Fix file named epatch "${FILESDIR}"/filename-friendliness-${PV}.patch @@ -46,6 +45,12 @@ -e 's/"pkg-config freetype2 gtk+"/"pkg-config freetype2 gtk+-2.0"/' \ Jamrules \ || die "sed failed" + + #Fix getline function name conflict with glibc + sed -i \ + -e "s/getline/${PN}_getline/" \ + terps/alan3/parse.c terps/alan2/parse.c \ + || die "sed'ing getline failed" } src_compile() {