--- /usr/portage/games-emulation/gens/gens-2.15.5.ebuild 2011-09-21 23:17:48.000000000 +0200 +++ /usr/local/portage/games-emulation/gens/gens-2.15.5-r1.ebuild 2012-11-05 14:37:16.893171314 +0100 @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-emulation/gens/gens-2.15.5.ebuild,v 1.7 2011/09/21 21:17:48 mr_bones_ Exp $ +# $Header: EAPI=2 inherit eutils flag-o-matic games @@ -11,12 +11,14 @@ LICENSE="GPL-2" SLOT="0" -KEYWORDS="x86" +KEYWORDS="x86 ~amd64" IUSE="" RDEPEND="virtual/opengl >=media-libs/libsdl-1.2[joystick,video] - x11-libs/gtk+:2" + x11-libs/gtk+:2 + amd64? ( app-emulation/emul-linux-x86-sdl + app-emulation/emul-linux-x86-gtklibs )" DEPEND="${RDEPEND} >=dev-lang/nasm-0.98" @@ -28,8 +30,16 @@ append-ldflags -Wl,-z,noexecstack } +src_configure() { + use amd64 && multilib_toolchain_setup x86 + egamesconf \ + $(use_enable x86 gtktest) \ + $(use_enable x86 sdltest) || die +} + src_install() { emake DESTDIR="${D}" install || die "emake install failed" - dodoc AUTHORS BUGS README + dodoc AUTHORS BUGS README gens.txt history.txt prepgamesdirs + make_desktop_entry "${PN}" "Gens" "/usr/share/games/gens/gens_small.png" "Game;" }