# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Multi-platform & multi-targets dynamic translator" SRC_URI="http://fabrice.bellard.free.fr/qemu/qemu-0.5.1.tar.gz" HOMEPAGE="http://fabrice.bellard.free.fr/qemu/" KEYWORDS="x86 ~ppc -alpha -sparc -arm" SLOT="0" LICENSE="GPL-2 LGPL-2.1" IUSE="sdl" DEPEND="virtual/glibc media-libs/libsdl" RDEPEND="virtual/glibc media-libs/libsdl" RESTRICT="nostrip" USER_LIST="arm i386 ppc sparc" SOFTMMU_LIST="i386" TARGET_LIST="arm-user i386-user i386-softmmu ppc-user sparc-user" src_compile () { ./configure --target-list="${TARGET_LIST}" || die "could not configure" make || die "make failed" } src_install() { dodir /usr/bin dobin qemu-mkcow /usr/bin/qemu-mkcow dodir /usr/share/qemu insinto /usr/share/qemu doins pc-bios/bios.bin pc-bios/vgabios.bin doman qemu.1 for i in ${USER_LIST} ; do dobin qemu-${i} /usr/bin/qemu-${i} ; done for i in ${SOFTMMU_LIST} ; do dobin qemu /usr/bin/qemu-${i}-softmmu ; done }