commit:     415ca2fc9582e38407e41bb10b4c905e00538661
Author:     Doug Goldstein <cardoe <AT> gentoo <DOT> org>
AuthorDate: Sun Dec  6 05:28:08 2015 +0000
Commit:     Doug Goldstein <cardoe <AT> gentoo <DOT> org>
CommitDate: Sun Dec  6 05:35:14 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=415ca2fc

app-emulation/xen: don't install EFI bits with USE=-efi

Don't install the EFI bits if the user didn't want them.

Signed-off-by: Doug Goldstein <cardoe <AT> gentoo.org>

 app-emulation/xen/xen-4.6.0-r2.ebuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/app-emulation/xen/xen-4.6.0-r2.ebuild 
b/app-emulation/xen/xen-4.6.0-r2.ebuild
index 717b3e1..b67f639 100644
--- a/app-emulation/xen/xen-4.6.0-r2.ebuild
+++ b/app-emulation/xen/xen-4.6.0-r2.ebuild
@@ -6,7 +6,7 @@ EAPI=5
 
 PYTHON_COMPAT=( python2_7 )
 
-inherit eutils mount-boot flag-o-matic python-any-r1 toolchain-funcs 
versionator
+inherit eutils multilib mount-boot flag-o-matic python-any-r1 toolchain-funcs 
versionator
 
 MY_PV=${PV/_/-}
 MY_P=${PN}-${PV/_/-}
@@ -170,6 +170,9 @@ src_install() {
        fi
 
        emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install
+
+       # make install likes to throw in some extra EFI bits if it built
+       use efi || rm -rf "${D}/usr/$(get_libdir)/efi"
 }
 
 pkg_postinst() {

Reply via email to