# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 DESCRIPTION="Multi-platform & multi-targets dynamic translator" SRC_URI="" HOMEPAGE="http://fabrice.bellard.free.fr/qemu/" KEYWORDS="x86 ppc -alpha -sparc -arm" SLOT="0" LICENSE="GPL-2 LGPL-2.1" IUSE="" DEPEND="virtual/glibc dev-util/cvs media-libs/libsdl" RDEPEND="" RESTRICT="nostrip fetch" TARGET_LIST="arm-user i386-user i386-softmmu ppc-user sparc-user" src_unpack() { # This is hackish, but it works. addwrite ${DISTDIR}/cvs-src mkdir -p ${DISTDIR}/cvs-src/ cd ${DISTDIR}/cvs-src einfo "Checking out latest qemu from CVS..." export CVS_RSH=ssh cvs -z3 -d:ext:address@hidden:/cvsroot/qemu co qemu \ || die "could not checkout source from cvs" cp -a qemu ${S} # Fix an ownership porblem chown -R portage:portage ${S} } src_compile () { ./configure --enable-slirp --prefix=/usr \ --target-list="${TARGET_LIST}" || die "could not configure" make || die "make failed" } src_install() { dobin qemu-mkcow dodir /usr/share/qemu insinto /usr/share/qemu doins pc-bios/bios.bin pc-bios/vgabios.bin doman qemu.1 dobin arm-user/qemu-arm dobin i386-user/qemu-i386 dobin sparc-user/qemu-sparc dobin ppc-user/qemu-ppc dobin sparc-user/qemu-sparc dobin i386-softmmu/qemu dodoc README README.distrib *.html linux.sh } pkg_postinstall() { echo ">> You will need the Universal TUN/TAP driver compiled into" echo ">> kernel or as a module to use the virtual network device." }