/[gentoo-x86]/sys-boot/grub/grub-9999.ebuild
Gentoo

Contents of /sys-boot/grub/grub-9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Dec 30 02:18:04 2008 UTC (5 years, 6 months ago) by vapier
Branch: MAIN
Changes since 1.1: +5 -1 lines
Fix by roger for SRC_URI setting with ebuild unification.
(Portage version: 2.2_rc20/cvs/Linux 2.6.28 x86_64)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/grub-9999.ebuild,v 1.1 2008/12/30 00:12:52 vapier Exp $
4
5 inherit mount-boot eutils flag-o-matic toolchain-funcs
6
7 if [[ ${PV} == "9999" ]] ; then
8 ESVN_REPO_URI="svn://svn.sv.gnu.org/grub/trunk/grub2"
9 inherit subversion
10 SRC_URI=""
11 else
12 SRC_URI="ftp://alpha.gnu.org/gnu/${PN}/${P}.tar.gz
13 mirror://gentoo/${P}.tar.gz"
14 fi
15
16 DESCRIPTION="GNU GRUB 2 boot loader"
17 HOMEPAGE="http://www.gnu.org/software/grub/"
18
19 LICENSE="GPL-2"
20 SLOT="0"
21 KEYWORDS=""
22 IUSE="static custom-cflags"
23
24 DEPEND=">=sys-libs/ncurses-5.2-r5
25 dev-libs/lzo"
26 PROVIDE="virtual/bootloader"
27
28 STRIP_MASK="/lib*/grub/*/*.mod"
29
30 src_compile() {
31 use amd64 && multilib_toolchain_setup x86
32 use custom-cflags || unset CFLAGS CPPFLAGS LDFLAGS
33 use static && append-ldflags -static
34
35 econf \
36 --prefix=/ \
37 --datadir=/usr/lib \
38 || die "econf failed"
39 emake -j1 || die "making regular stuff"
40 }
41
42 src_install() {
43 emake DESTDIR="${D}" install || die
44 dodoc AUTHORS ChangeLog NEWS README THANKS TODO
45 }
46
47 pkg_postinst() {
48 elog "To automatically generate a grub configuration file:"
49 elog "# /sbin/grub-mkconfig -o /boot/grub/grub.cfg"
50 }

  ViewVC Help
Powered by ViewVC 1.1.20