X-Git-Url: http://git.draconx.ca/gitweb/gentoo-draconx.git/blobdiff_plain/704f82754be3823f54a5e261be047bd08b7752ff..517e88684054366d75397951101fe3192d52fd20:/app-emulation/qemu/qemu-1.2.1.ebuild diff --git a/app-emulation/qemu/qemu-1.2.1.ebuild b/app-emulation/qemu/qemu-1.2.1.ebuild new file mode 100644 index 0000000..9a0142a --- /dev/null +++ b/app-emulation/qemu/qemu-1.2.1.ebuild @@ -0,0 +1,321 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu/qemu-1.2.1.ebuild,v 1.3 2012/12/05 21:37:29 cardoe Exp $ + +EAPI="4" + +PYTHON_DEPEND="2" +inherit eutils flag-o-matic linux-info toolchain-funcs multilib python user + +SRC_URI="http://wiki.qemu.org/download/${P}.tar.bz2" +KEYWORDS="" + +DESCRIPTION="Free machine emulator and virtualizer" +HOMEPAGE="http://www.qemu.org/" + +LICENSE="GPL-2 LGPL-2 BSD-2" +SLOT="0" +IUSE="+aio alsa bluetooth brltty +caps +curl debug doc fdt +jpeg kernel_linux \ +kernel_FreeBSD kvm mixemu ncurses opengl +png pulseaudio python rbd sasl \ ++seccomp sdl smartcard spice static systemtap tci +threads tls usbredir \ ++uuid vde +vhost-net virtfs +vnc xattr xen xfs" + +COMMON_TARGETS="i386 x86_64 alpha arm cris m68k microblaze microblazeel mips mipsel ppc ppc64 sh4 sh4eb sparc sparc64 s390x" +IUSE_SOFTMMU_TARGETS="${COMMON_TARGETS} lm32 mips64 mips64el ppcemb xtensa xtensaeb" +IUSE_USER_TARGETS="${COMMON_TARGETS} armeb ppc64abi32 sparc32plus unicore32" + +# Setup the default SoftMMU targets, while using the loops +# below to setup the other targets. +REQUIRED_USE="|| (" + +for target in ${IUSE_SOFTMMU_TARGETS}; do + IUSE="${IUSE} qemu_softmmu_targets_${target}" + REQUIRED_USE="${REQUIRED_USE} qemu_softmmu_targets_${target}" +done +REQUIRED_USE="${REQUIRED_USE} )" + +for target in ${IUSE_USER_TARGETS}; do + IUSE="${IUSE} qemu_user_targets_${target}" +done + +# Block USE flag configurations known to not work +REQUIRED_USE="${REQUIRED_USE} + static? ( !alsa !pulseaudio !bluetooth ) + virtfs? ( xattr )" + +# Yep, you need both libcap and libcap-ng since virtfs only uses libcap. +LIB_DEPEND=">=dev-libs/glib-2.0[static-libs(+)] + sys-apps/pciutils[static-libs(+)] + sys-libs/zlib[static-libs(+)] + aio? ( dev-libs/libaio[static-libs(+)] ) + caps? ( sys-libs/libcap-ng[static-libs(+)] ) + curl? ( >=net-misc/curl-7.15.4[static-libs(+)] ) + fdt? ( >=sys-apps/dtc-1.2.0[static-libs(+)] ) + jpeg? ( virtual/jpeg[static-libs(+)] ) + ncurses? ( sys-libs/ncurses[static-libs(+)] ) + png? ( media-libs/libpng[static-libs(+)] ) + rbd? ( sys-cluster/ceph[static-libs(+)] ) + sasl? ( dev-libs/cyrus-sasl[static-libs(+)] ) + sdl? ( >=media-libs/libsdl-1.2.11[static-libs(+)] ) + seccomp? ( >=sys-libs/libseccomp-1.0.0[static-libs(+)] ) + spice? ( >=app-emulation/spice-0.9.0[static-libs(+)] ) + tls? ( net-libs/gnutls[static-libs(+)] ) + uuid? ( >=sys-apps/util-linux-2.16.0[static-libs(+)] ) + vde? ( net-misc/vde[static-libs(+)] ) + xattr? ( sys-apps/attr[static-libs(+)] ) + xfs? ( sys-fs/xfsprogs[static-libs(+)] )" +RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} ) + !app-emulation/kqemu + sys-firmware/ipxe + >=sys-firmware/seabios-1.7.0 + sys-firmware/sgabios + sys-firmware/vgabios + alsa? ( >=media-libs/alsa-lib-1.0.13 ) + bluetooth? ( net-wireless/bluez ) + brltty? ( app-accessibility/brltty ) + opengl? ( virtual/opengl ) + pulseaudio? ( media-sound/pulseaudio ) + python? ( =dev-lang/python-2*[ncurses] ) + sdl? ( media-libs/libsdl[X] ) + smartcard? ( dev-libs/nss ) + spice? ( >=app-emulation/spice-protocol-0.12.0 ) + systemtap? ( dev-util/systemtap ) + usbredir? ( + >=sys-apps/usbredir-0.3.4 + x86? ( kvm', then have re-login." + elog + elog "The ssl USE flag was renamed to tls, so adjust your USE flags." + elog "The nss USE flag was renamed to smartcard, so adjust your USE flags." + fi +}