diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2008-11-01 12:46:54 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2008-11-01 12:46:54 +0000 |
commit | 1aeef79535a0c1283cd45985ec7671490307a96e (patch) | |
tree | c47d2118d9870fc1149209c2641fb30285b7c088 /sys-boot/grub/grub-0.97-r6.ebuild | |
parent | Revert xerces-c blocker back to dependency. Glest needs xerces-c (diff) | |
download | historical-1aeef79535a0c1283cd45985ec7671490307a96e.tar.gz historical-1aeef79535a0c1283cd45985ec7671490307a96e.tar.bz2 historical-1aeef79535a0c1283cd45985ec7671490307a96e.zip |
Add a magic flag GRUB_STATIC_PACKAGE_BUILDING which along with USE='static -ncurses' is used to build grub-static tarballs from now on.
Package-Manager: portage-2.2_rc12/cvs/Linux 2.6.28-rc2-07920-g65fc716 x86_64
Diffstat (limited to 'sys-boot/grub/grub-0.97-r6.ebuild')
-rw-r--r-- | sys-boot/grub/grub-0.97-r6.ebuild | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/sys-boot/grub/grub-0.97-r6.ebuild b/sys-boot/grub/grub-0.97-r6.ebuild index 84521e0fbe97..cbc3bac9811a 100644 --- a/sys-boot/grub/grub-0.97-r6.ebuild +++ b/sys-boot/grub/grub-0.97-r6.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/grub-0.97-r6.ebuild,v 1.8 2008/07/07 08:48:08 robbat2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/grub-0.97-r6.ebuild,v 1.9 2008/11/01 12:46:54 robbat2 Exp $ # XXX: we need to review menu.lst vs grub.conf handling. We've been converting # all systems to grub.conf (and symlinking menu.lst to grub.conf), but @@ -90,7 +90,15 @@ src_compile() { # Per bug 216625, the emul packages do not provide .a libs for performing # suitable static linking if use amd64 && use static ; then - die "You must use the grub-static package if you want a static Grub on amd64!" + if [ -z "${GRUB_STATIC_PACKAGE_BUILDING}" ]; then + die "You must use the grub-static package if you want a static Grub on amd64!" + else + eerror "You have set GRUB_STATIC_PACKAGE_BUILDING. This" + eerror "is specifically intended for building the tarballs for the" + eerror "grub-static package via USE='static -ncurses'." + eerror "All bets are now off." + ebeep 10 + fi fi # build the net-bootable grub first, but only if "netboot" is set @@ -146,6 +154,12 @@ src_install() { dodoc AUTHORS BUGS ChangeLog NEWS README THANKS TODO newdoc docs/menu.lst grub.conf.sample dodoc "${FILESDIR}"/grub.conf.gentoo + prepalldocs + + [ -n "${GRUB_STATIC_PACKAGE_BUILDING}" ] && \ + mv \ + "${D}"/usr/share/doc/${PF} \ + "${D}"/usr/share/doc/grub-static-${PF/grub-} insinto /usr/share/grub doins "${DISTDIR}"/splash.xpm.gz |