--- xen-tools-4.1.1-r6.ebuild.old 2012-07-17 20:03:03.937681976 -0700 +++ xen-tools-4.1.1-r6.ebuild 2012-07-17 20:04:50.227681498 -0700 @@ -3,6 +3,8 @@ # $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-tools/xen-tools-4.1.1-r6.ebuild,v 1.4 2012/05/08 16:04:46 xarthisius Exp $ EAPI="3" +PYTHON_DEPEND="2" +PYTHON_USE_WITH="xml threads" if [[ $PV == *9999 ]]; then KEYWORDS="" @@ -75,6 +77,8 @@ usr/share/xen/qemu/openbios-sparc64" pkg_setup() { + python_set_active_version 2 + python_pkg_setup export "CONFIG_LOMOUNT=y" if use qemu; then @@ -237,6 +241,7 @@ make DESTDIR="${D}" DOCDIR="/usr/share/doc/${PF}" XEN_PYTHON_NATIVE_INSTALL=y install-tools \ || die "install failed" + python_convert_shebangs -r 2 "${D}" # Remove RedHat-specific stuff rm -r "${D}"/etc/init.d/xen* "${D}"/etc/default || die @@ -284,6 +289,7 @@ keepdir /var/log/xen-consoles fi + python_convert_shebangs -r 2 "${D}" # xend expects these to exist keepdir /var/run/xenstored /var/lib/xenstored /var/xen/dump /var/lib/xen /var/log/xen