--- /usr/portage/sys-boot/grub/grub-1.98.ebuild 2010-05-08 19:36:52.000000000 +0200 +++ /usr/portage/local/my-overlay/sys-boot/grub/grub-1.98-r1.ebuild 2010-05-10 09:07:21.003544876 +0200 @@ -21,7 +21,7 @@ LICENSE="GPL-3" use multislot && SLOT="2" || SLOT="0" KEYWORDS="" -IUSE="custom-cflags debug truetype multislot static" +IUSE="custom-cflags debug truetype multislot static efi" RDEPEND=">=sys-libs/ncurses-5.2-r5 dev-libs/lzo @@ -58,6 +58,12 @@ use custom-cflags || unset CFLAGS CPPFLAGS LDFLAGS use static && append-ldflags -static + if use efi; then + PLATFORM="--with-platform=efi" + else + PLATFORM="" + fi + econf \ --disable-werror \ --sbindir=/sbin \ @@ -67,7 +73,8 @@ $(use_enable truetype grub-mkfont) \ $(use_enable debug mm-debug) \ $(use_enable debug grub-emu-usb) \ - $(use_enable debug grub-fstest) + $(use_enable debug grub-fstest) \ + ${PLATFORM} emake -j1 || die "making regular stuff" }