summaryrefslogtreecommitdiff
blob: 2f1dbae85cd99a18d53fd3b478c0a7737b35df69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu/qemu-0.5.1.ebuild,v 1.7 2004/06/27 23:06:17 vapier Exp $

DESCRIPTION="Multi-platform & multi-targets dynamic translator"
HOMEPAGE="http://fabrice.bellard.free.fr/qemu/"
SRC_URI="http://fabrice.bellard.free.fr/qemu/${P}.tar.gz"

LICENSE="GPL-2 LGPL-2.1"
SLOT="0"
KEYWORDS="x86 ~ppc -alpha -sparc"
IUSE=""
RESTRICT="nostrip"

DEPEND="virtual/libc
	media-libs/libsdl"
RDEPEND=""

TARGET_LIST="arm-user i386-user i386-softmmu ppc-user sparc-user"

src_compile() {
	./configure \
		--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_postinst() {
	echo ">> You will need the Universal TUN/TAP driver compiled into"
	echo ">> kernel or as a module to use the virtual network device."
}