# 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.1.1-r1.ebuild,v 1.8 2012/12/13 20:03:31 ssuominen Exp $ EAPI="4" MY_PN="qemu-kvm" MY_P=${MY_PN}-${PV} PYTHON_DEPEND="2" inherit eutils flag-o-matic linux-info toolchain-funcs multilib python user udev BACKPORTS=1 if [[ ${PV} = *9999* ]]; then EGIT_REPO_URI="git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git" inherit git-2 SRC_URI="" KEYWORDS="" else SRC_URI="mirror://sourceforge/kvm/${MY_PN}/${MY_P}.tar.gz ${BACKPORTS:+ http://dev.gentoo.org/~cardoe/distfiles/${MY_P}-bp-${BACKPORTS}.tar.xz}" KEYWORDS="amd64 ~ppc ~ppc64 x86 ~x86-fbsd" fi DESCRIPTION="QEMU + Kernel-based Virtual Machine userland tools" HOMEPAGE="http://www.linux-kvm.org" LICENSE="GPL-2 LGPL-2 BSD-2" SLOT="0" IUSE="+aio alsa bluetooth brltty +caps +curl debug doc fdt kernel_linux \ kernel_FreeBSD ncurses opengl pulseaudio python rbd sasl sdl \ smartcard spice static tci tls usbredir vde +vhost-net virtfs 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} 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. x86_64 should be the only # defaults on for qemu-kvm IUSE="${IUSE} +qemu_softmmu_targets_x86_64" for target in ${IUSE_SOFTMMU_TARGETS}; do if [ "x${target}" = "xx86_64" ]; then continue fi IUSE="${IUSE} qemu_softmmu_targets_${target}" done for target in ${IUSE_USER_TARGETS}; do IUSE="${IUSE} qemu_user_targets_${target}" done REQUIRED_USE="static? ( !alsa !pulseaudio !bluetooth ) amd64? ( qemu_softmmu_targets_x86_64 ) x86? ( qemu_softmmu_targets_x86_64 ) virtfs? ( xattr )" # Yep, you need both libcap and libcap-ng since virtfs only uses libcap. RDEPEND=" !app-emulation/kqemu >=dev-libs/glib-2.0 media-libs/libpng sys-apps/pciutils >=sys-firmware/seabios-1.7.0 sys-firmware/vgabios virtual/jpeg aio? ( dev-libs/libaio ) alsa? ( >=media-libs/alsa-lib-1.0.13 ) bluetooth? ( net-wireless/bluez ) brltty? ( app-accessibility/brltty ) caps? ( sys-libs/libcap-ng ) curl? ( >=net-misc/curl-7.15.4 ) fdt? ( >=sys-apps/dtc-1.2.0 ) kernel_linux? ( >=sys-apps/util-linux-2.16.0 ) ncurses? ( sys-libs/ncurses ) opengl? ( virtual/opengl ) pulseaudio? ( media-sound/pulseaudio ) python? ( =dev-lang/python-2*[ncurses] ) rbd? ( sys-cluster/ceph ) sasl? ( dev-libs/cyrus-sasl ) sdl? ( static? ( >=media-libs/libsdl-1.2.11[static-libs,X] ) !static? ( >=media-libs/libsdl-1.2.11[X] ) ) static? ( sys-libs/zlib[static-libs(+)] ) !static? ( sys-libs/zlib ) smartcard? ( dev-libs/nss ) spice? ( >=app-emulation/spice-protocol-0.8.1 static? ( >=app-emulation/spice-0.9.0[static-libs] ) !static? ( >=app-emulation/spice-0.9.0 ) ) tls? ( net-libs/gnutls ) 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 }