# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 S="${WORKDIR}/qemu" 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="" RDEPEND=" virtual/glibc media-libs/libsdl media-libs/alsa-lib !app-emulation/qemu" DEPEND="${RDEPEND} dev-util/cvs" RESTRICT="nostrip" 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..." if ! [ -n "`grep savannah.nongnu.org $HOME/.ssh/known_hosts`" ]; then ewarn "You probably want to add the savannah.nongnu.org ssh key" \ "to your .ssh/known_hosts" fi 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 root:root ${S} } src_compile() { ./configure --prefix=/usr \ --target-list="${TARGET_LIST}" || die "could not configure" emake || die "make failed" } src_install() { make install prefix=${D}/usr sharedir=${D}/usr/share/qemu \ mandir=${D}/usr/share/man dodoc TODO VERSION COPYING* README README.distrib *.html } pkg_postinstall() { einfo "You will need the Universal TUN/TAP driver compiled into" einfo "kernel or as a module to use the virtual network device." }