/[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.5 Revision 1.6
1# Copyright 1999-2008 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.5 2009/01/01 11:24:35 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/Attic/grub-9999.ebuild,v 1.6 2009/03/14 13:28:30 vapier Exp $
4 4
5inherit mount-boot eutils flag-o-matic toolchain-funcs 5inherit 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"
26PROVIDE="virtual/bootloader" 26PROVIDE="virtual/bootloader"
27 27
28export STRIP_MASK="*/grub/*/*.mod" 28export STRIP_MASK="*/grub/*/*.mod"
29QA_EXECSTACK="sbin/grub-probe sbin/grub-setup" 29QA_EXECSTACK="sbin/grub-probe sbin/grub-setup"
30 30
31src_unpack() {
32 if [[ ${PV} == "9999" ]] ; then
33 subversion_src_unpack
34 else
35 unpack ${A}
36 fi
37 cd "${S}"
38 epatch "${FILESDIR}"/${PN}-1.96-genkernel.patch #256335
39}
40
31src_compile() { 41src_compile() {
32 use custom-cflags || unset CFLAGS CPPFLAGS LDFLAGS 42 use custom-cflags || unset CFLAGS CPPFLAGS LDFLAGS
33 use static && append-ldflags -static 43 use static && append-ldflags -static
34 44
35 econf \ 45 econf \
41} 51}
42 52
43src_install() { 53src_install() {
44 emake DESTDIR="${D}" install || die 54 emake DESTDIR="${D}" install || die
45 dodoc AUTHORS ChangeLog NEWS README THANKS TODO 55 dodoc AUTHORS ChangeLog NEWS README THANKS TODO
56 cat <<-EOF >> "${D}"/lib*/grub/grub-mkconfig_lib
57 GRUB_DISTRIBUTOR="Gentoo"
58 EOF
59 EOF
46 if use multislot ; then 60 if use multislot ; then
47 sed -i s:grub-install:grub2-install: "${D}"/sbin/grub-install 61 sed -i s:grub-install:grub2-install: "${D}"/sbin/grub-install
48 mv "${D}"/sbin/grub{,2}-install || die 62 mv "${D}"/sbin/grub{,2}-install || die
49 mv "${D}"/usr/share/man/man8/grub{,2}-install.8 || die 63 mv "${D}"/usr/share/man/man8/grub{,2}-install.8 || die
50 fi 64 fi

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

  ViewVC Help
Powered by ViewVC 1.1.20