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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.6 Revision 1.7
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/Attic/grub-9999.ebuild,v 1.6 2009/03/14 13:28:30 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/Attic/grub-9999.ebuild,v 1.7 2009/04/27 05:23:28 vapier Exp $
4 4
5inherit mount-boot eutils flag-o-matic toolchain-funcs 5inherit autotools mount-boot eutils flag-o-matic toolchain-funcs
6 6
7if [[ ${PV} == "9999" ]] ; then 7if [[ ${PV} == "9999" ]] ; then
8 ESVN_REPO_URI="svn://svn.sv.gnu.org/grub/trunk/grub2" 8 ESVN_REPO_URI="svn://svn.sv.gnu.org/grub/trunk/grub2"
9 inherit subversion 9 inherit subversion
10 SRC_URI="" 10 SRC_URI=""
34 else 34 else
35 unpack ${A} 35 unpack ${A}
36 fi 36 fi
37 cd "${S}" 37 cd "${S}"
38 epatch "${FILESDIR}"/${PN}-1.96-genkernel.patch #256335 38 epatch "${FILESDIR}"/${PN}-1.96-genkernel.patch #256335
39
40 # autogen.sh does more than just run autotools
41 sed -i -e 's:^auto:eauto:' autogen.sh
42 (. ./autogen.sh) || die
39} 43}
40 44
41src_compile() { 45src_compile() {
42 use custom-cflags || unset CFLAGS CPPFLAGS LDFLAGS 46 use custom-cflags || unset CFLAGS CPPFLAGS LDFLAGS
43 use static && append-ldflags -static 47 use static && append-ldflags -static
53src_install() { 57src_install() {
54 emake DESTDIR="${D}" install || die 58 emake DESTDIR="${D}" install || die
55 dodoc AUTHORS ChangeLog NEWS README THANKS TODO 59 dodoc AUTHORS ChangeLog NEWS README THANKS TODO
56 cat <<-EOF >> "${D}"/lib*/grub/grub-mkconfig_lib 60 cat <<-EOF >> "${D}"/lib*/grub/grub-mkconfig_lib
57 GRUB_DISTRIBUTOR="Gentoo" 61 GRUB_DISTRIBUTOR="Gentoo"
58 EOF
59 EOF 62 EOF
60 if use multislot ; then 63 if use multislot ; then
61 sed -i s:grub-install:grub2-install: "${D}"/sbin/grub-install 64 sed -i s:grub-install:grub2-install: "${D}"/sbin/grub-install
62 mv "${D}"/sbin/grub{,2}-install || die 65 mv "${D}"/sbin/grub{,2}-install || die
63 mv "${D}"/usr/share/man/man8/grub{,2}-install.8 || die 66 mv "${D}"/usr/share/man/man8/grub{,2}-install.8 || die

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.20