# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit mount-boot DESCRIPTION="The Xen virtual machine monitor" HOMEPAGE="http://xen.sourceforge.net" SRC_URI="http://www.cl.cam.ac.uk/Research/SRG/netos/xen/downloads/${P}-src.tgz" S="${WORKDIR}/${PN}-2.0" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="doc" DEPEND="sys-apps/iproute2 net-misc/bridge-utils dev-lang/python >=dev-python/twisted-1.3.0 net-misc/curl sys-libs/zlib doc? ( dev-tex/latex2html media-gfx/transfig media-gfx/tgif )" src_compile() { make -C xen || die "failed compiling xen" make -C tools || die "failed compiling tools" if use doc; then sh ./docs/check_pkgs || die "failed to check packages" make -C docs || die "failed compiling docs" fi } src_install() { make DESTDIR=${D} -C xen install || die "failed installing xen" make DESTDIR=${D} -C tools install || die "failed installing tools" if use doc; then make DESTDIR=${D} -C docs install || die "failed installing docs" # Rename doc/xen to the Gentoo-style doc/xen-2.0 mv ${D}/usr/share/doc/xen ${D}/usr/share/doc/${PF} fi sed -i -e "s/(xend-address \'\')/(xend-address \'localhost\')/" \ ${D}/etc/xen/xend-config.sxp cp ${FILESDIR}/xendomains-init ${D}/etc/init.d/xendomains || die "copying xendomains-init failed" cp ${FILESDIR}/xend ${D}/etc/init.d || die "copying xend failed" cp ${FILESDIR}/xendomains-conf ${D}/etc/conf.d/xendomains || die "copying xendomains-conf failed" }