diff options
Diffstat (limited to 'app-emulation/kvm/kvm-65.ebuild')
-rw-r--r-- | app-emulation/kvm/kvm-65.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/app-emulation/kvm/kvm-65.ebuild b/app-emulation/kvm/kvm-65.ebuild new file mode 100644 index 0000000..d4dd286 --- /dev/null +++ b/app-emulation/kvm/kvm-65.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +#inherit linux-mod multilib + +DESCRIPTION="KVM Virtualization package" +HOMEPAGE="http://kvm.qumranet.com/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +#IUSE="inkernel" + +RDEPEND="media-libs/libsdl + media-libs/alsa-lib + !app-emulation/qemu" +DEPEND="${RDEPEND}" + +#pkg_setup() { +# MODULE_NAMES="kvm(drivers/kvm:${S}/kernel) \ +# kvm-intel(drivers/kvm:${S}/kernel) \ +# kvm-amd(drivers/kvm:${S}/kernel)" +# linux-mod_pkg_setup +#} + +src_compile() { + MYCONF="--prefix=/usr --disable-gcc-check --qemu-cc=gcc" + ./configure ${MYCONF} || die "configure failed" + + BUILD_TARGETS="clean all" + linux-mod_src_compile + cd kernel + ARCH="$(tc-arch-kernel)" emake || die "making kernel module failed" + cd .. + emake -C libkvm || die "making libkvm failed" + emake -C user || die "making user failed" + emake -C qemu || die "making qemu failed" + emake || die "make failed" +} + +src_install() { +# addpredict /$(get_libdir)/modules/${KV_FULL} + linux-mod_src_install + emake -C libkvm DESTDIR=${D} install || die "installing user failed" + emake -C qemu DESTDIR=${D} install || die "installing qemu failed" +# emake DESTDIR=${D} install || die "install failed" + + rm ${D}/usr/include/linux/kvm.h +} |