--- trophy-1.1.5.ebuild.orig 2010-05-04 23:21:07.264001586 +0200 +++ trophy-1.1.5.ebuild 2010-05-04 17:43:36.988424112 +0200 @@ -3,7 +3,7 @@ # $Header: /var/cvsroot/gentoo-x86/games-sports/trophy/trophy-1.1.5.ebuild,v 1.3 2009/01/05 01:26:13 mr_bones_ Exp $ EAPI=2 -inherit games +inherit autotools games DESCRIPTION="2D Racing Game" HOMEPAGE="http://trophy.sourceforge.net/" @@ -18,7 +18,11 @@ DEPEND="${RDEPEND} dev-util/pkgconfig" -PATCHES=( "${FILESDIR}"/${P}-display-segv.patch ) +src_prepare() { + epatch "${FILESDIR}"/${P}-display-segv.patch + epatch "${FILESDIR}"/${P}-asneeded.patch + eautoreconf +} src_install() { emake DESTDIR="${D}" install || die "emake install failed"