summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-04-03 18:18:12 +0000
committerMike Frysinger <vapier@gentoo.org>2011-04-03 18:18:12 +0000
commitb4fb4b68f99094c4698585b3abfb8e1b798f8f6f (patch)
tree4a9be4013cf8962189196ee08781ad8e54900711 /sys-boot
parentversion bump (diff)
downloadgentoo-2-b4fb4b68f99094c4698585b3abfb8e1b798f8f6f.tar.gz
gentoo-2-b4fb4b68f99094c4698585b3abfb8e1b798f8f6f.tar.bz2
gentoo-2-b4fb4b68f99094c4698585b3abfb8e1b798f8f6f.zip
Add support for USE="device-mapper sdl", drop dead configure options, and only depend on autogen for live scm ebuilds #357337 by Jon Severinsson.
(Portage version: 2.2.0_alpha28/cvs/Linux x86_64)
Diffstat (limited to 'sys-boot')
-rw-r--r--sys-boot/grub/ChangeLog7
-rw-r--r--sys-boot/grub/grub-9999.ebuild20
-rw-r--r--sys-boot/grub/metadata.xml1
3 files changed, 18 insertions, 10 deletions
diff --git a/sys-boot/grub/ChangeLog b/sys-boot/grub/ChangeLog
index cc75496b18f6..68ef0f267573 100644
--- a/sys-boot/grub/ChangeLog
+++ b/sys-boot/grub/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-boot/grub
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/ChangeLog,v 1.152 2011/04/03 18:10:01 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/ChangeLog,v 1.153 2011/04/03 18:18:12 vapier Exp $
+
+ 03 Apr 2011; Mike Frysinger <vapier@gentoo.org> grub-9999.ebuild,
+ metadata.xml:
+ Add support for USE="device-mapper sdl", drop dead configure options, and
+ only depend on autogen for live scm ebuilds #357337 by Jon Severinsson.
03 Apr 2011; Mike Frysinger <vapier@gentoo.org> grub-9999.ebuild,
+files/defaults:
diff --git a/sys-boot/grub/grub-9999.ebuild b/sys-boot/grub/grub-9999.ebuild
index 3091fd126783..76218eaf0036 100644
--- a/sys-boot/grub/grub-9999.ebuild
+++ b/sys-boot/grub/grub-9999.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/grub-9999.ebuild,v 1.31 2011/04/03 18:10:01 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/grub-9999.ebuild,v 1.32 2011/04/03 18:18:12 vapier Exp $
# XXX: need to implement a grub.conf migration in pkg_postinst before we ~arch
@@ -15,22 +15,24 @@ else
mirror://gentoo/${P}.tar.gz"
fi
-DESCRIPTION="GNU GRUB 2 boot loader"
+DESCRIPTION="GNU GRUB boot loader"
HOMEPAGE="http://www.gnu.org/software/grub/"
LICENSE="GPL-3"
use multislot && SLOT="2" || SLOT="0"
KEYWORDS=""
-IUSE="custom-cflags debug truetype multislot static"
+IUSE="custom-cflags debug device-mapper multislot static sdl truetype"
RDEPEND=">=sys-libs/ncurses-5.2-r5
dev-libs/lzo
+ debug? (
+ sdl? ( media-libs/libsdl )
+ )
+ device-mapper? ( >=sys-fs/lvm2-2.02.45 )
truetype? ( media-libs/freetype >=media-fonts/unifont-5 )"
DEPEND="${RDEPEND}
- >=sys-devel/autogen-5.10
>=dev-lang/python-2.5.2"
-[[ ${PV} == "9999" ]] && DEPEND+=" sys-apps/help2man"
-PROVIDE="virtual/bootloader"
+[[ ${PV} == "9999" ]] && DEPEND+=" >=sys-devel/autogen-5.10 sys-apps/help2man"
export STRIP_MASK="*/grub/*/*.mod"
QA_EXECSTACK="sbin/grub-probe sbin/grub-setup sbin/grub-mkdevicemap bin/grub-script-check bin/grub-fstest"
@@ -62,11 +64,11 @@ src_compile() {
--bindir=/bin \
--libdir=/$(get_libdir) \
--disable-efiemu \
+ $(use_enable device-mapper) \
$(use_enable truetype grub-mkfont) \
$(use_enable debug mm-debug) \
- $(use_enable debug grub-emu) \
- $(use_enable debug grub-emu-usb) \
- $(use_enable debug grub-fstest)
+ $(use sdl && use_enable debug grub-emu-sdl) \
+ $(use_enable debug grub-emu-usb)
emake -j1 || die "making regular stuff"
}
diff --git a/sys-boot/grub/metadata.xml b/sys-boot/grub/metadata.xml
index 6684143eeb97..a05c3308cc79 100644
--- a/sys-boot/grub/metadata.xml
+++ b/sys-boot/grub/metadata.xml
@@ -3,6 +3,7 @@
<pkgmetadata>
<herd>base-system</herd>
<use>
+ <flag name='device-mapper'>Enable support for <pkg>sys-fs/device-mapper</pkg></flag>
<flag name='multislot'>Allow grub1 and grub2 to be installed simultaneously</flag>
</use>
</pkgmetadata>