diff -ru a/skyeye-1.0.0.ebuild b/skyeye-1.0.0.ebuild --- a/skyeye-1.0.0.ebuild 2006-01-04 00:05:46.000000000 +0000 +++ b/skyeye-1.0.0.ebuild 2010-08-21 21:04:01.581992643 +0000 @@ -2,6 +2,10 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-emulation/skyeye/skyeye-1.0.0.ebuild,v 1.3 2006/01/03 23:36:00 vapier Exp $ +EAPI="2" + +inherit toolchain-funcs + DESCRIPTION="an ARM embedded hardware simulator" HOMEPAGE="http://www.skyeye.org/" SRC_URI="http://download.gro.clinux.org/skyeye/${P}.tar.bz2" @@ -19,6 +23,14 @@ DEPEND="${RDEPEND} dev-util/pkgconfig" +src_prepare() { + sed -i \ + -e "s/^CC =.*/CC := $(tc-getCC)/" \ + -e "/^CFLAGS =/s:-g -O2:${CFLAGS}:" \ + -e '/-o binary\/skyeye/s/-o/$(LDFLAGS) -o/' \ + Makefile || die +} + src_install() { dobin binary/skyeye || die "skyeye" dodoc ChangeLog README