--- /usr/portage/app-emulation/spectemu/spectemu-0.99.3.ebuild 2009-03-03 23:06:19.000000000 +0200 +++ spectemu-0.99.3.ebuild 2010-07-31 18:14:24.000000000 +0300 @@ -7,6 +7,8 @@ ### The ./configure script automagically figures out which binaries to build ### so the run/compiletime dependancies here are use dependant +EAPI=2 + inherit eutils DESCRIPTION="48k ZX Spectrum Emulator" @@ -27,22 +29,23 @@ readline? ( sys-libs/readline )" RDEPEND="svga? ( media-libs/svgalib )" -src_unpack() { - unpack ${A} - cd "${S}" - epatch "${FILESDIR}"/${P}-qa.patch +src_prepare() { + epatch "${FILESDIR}"/${P}-qa.patch \ + "${FILESDIR}"/${P}-parallel-make.patch } -src_compile() { +src_configure() { econf \ $(use_with readline) \ $(use_with X x) +} + +src_compile() { emake CC="$(tc-getCC)" \ CPP="$(tc-getCPP)" \ || die "emake failed" } src_install() { - # Parallel install bug #255777 - emake -j1 install_root="${D}" install || die "emake install failed" + emake install_root="${D}" install || die "emake install failed" }