/[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.13 Revision 1.22
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2010 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.13 2009/10/14 00:06:34 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/Attic/grub-9999.ebuild,v 1.22 2010/07/06 00:41:18 vapier Exp $
4 4
5# XXX: need to implement a grub.conf migration in pkg_postinst before we ~arch
6
5inherit autotools mount-boot eutils flag-o-matic toolchain-funcs 7inherit mount-boot eutils flag-o-matic toolchain-funcs
6 8
7if [[ ${PV} == "9999" ]] ; then 9if [[ ${PV} == "9999" ]] ; then
8 ESVN_REPO_URI="svn://svn.sv.gnu.org/grub/trunk/grub2" 10 EBZR_REPO_URI="http://bzr.savannah.gnu.org/r/grub/trunk/grub"
9 inherit subversion 11 inherit autotools bzr
10 SRC_URI="" 12 SRC_URI=""
11else 13else
12 SRC_URI="ftp://alpha.gnu.org/gnu/${PN}/${P}.tar.gz 14 SRC_URI="ftp://alpha.gnu.org/gnu/${PN}/${P}.tar.gz
13 mirror://gentoo/${P}.tar.gz" 15 mirror://gentoo/${P}.tar.gz"
14fi 16fi
17HOMEPAGE="http://www.gnu.org/software/grub/" 19HOMEPAGE="http://www.gnu.org/software/grub/"
18 20
19LICENSE="GPL-3" 21LICENSE="GPL-3"
20use multislot && SLOT="2" || SLOT="0" 22use multislot && SLOT="2" || SLOT="0"
21KEYWORDS="" 23KEYWORDS=""
22IUSE="custom-cflags debug multislot static" 24IUSE="custom-cflags debug truetype multislot static"
23 25
24RDEPEND=">=sys-libs/ncurses-5.2-r5 26RDEPEND=">=sys-libs/ncurses-5.2-r5
25 dev-libs/lzo" 27 dev-libs/lzo
28 truetype? ( media-libs/freetype media-fonts/unifont )"
26DEPEND="${RDEPEND} 29DEPEND="${RDEPEND}
27 dev-lang/ruby" 30 dev-lang/ruby"
28PROVIDE="virtual/bootloader" 31PROVIDE="virtual/bootloader"
29 32
30export STRIP_MASK="*/grub/*/*.mod" 33export STRIP_MASK="*/grub/*/*.mod"
31QA_EXECSTACK="sbin/grub-probe sbin/grub-setup" 34QA_EXECSTACK="sbin/grub-probe sbin/grub-setup sbin/grub-mkdevicemap bin/grub-script-check"
32 35
33src_unpack() { 36src_unpack() {
34 if [[ ${PV} == "9999" ]] ; then 37 if [[ ${PV} == "9999" ]] ; then
35 subversion_src_unpack 38 bzr_src_unpack
36 else 39 else
37 unpack ${A} 40 unpack ${A}
38 fi 41 fi
39 cd "${S}" 42 cd "${S}"
40 epatch "${FILESDIR}"/${PN}-1.96-genkernel.patch #256335 43 epatch "${FILESDIR}"/${PN}-1.99-genkernel.patch #256335
44 epatch_user
41 45
42 # autogen.sh does more than just run autotools 46 # autogen.sh does more than just run autotools
43 sed -i -e 's:^auto:eauto:' autogen.sh 47 # need to eautomake due to weirdness #296013
48 if [[ ${PV} == "9999" ]] ; then
49 sed -i \
50 -e '/^\(auto\|ac\)/s:^:e:' \
51 -e "s:^eautomake:`which automake`:" \
52 autogen.sh
44 (. ./autogen.sh) || die 53 (. ./autogen.sh) || die
54 fi
45} 55}
46 56
47src_compile() { 57src_compile() {
48 use custom-cflags || unset CFLAGS CPPFLAGS LDFLAGS 58 use custom-cflags || unset CFLAGS CPPFLAGS LDFLAGS
49 use static && append-ldflags -static 59 use static && append-ldflags -static
52 --disable-werror \ 62 --disable-werror \
53 --sbindir=/sbin \ 63 --sbindir=/sbin \
54 --bindir=/bin \ 64 --bindir=/bin \
55 --libdir=/$(get_libdir) \ 65 --libdir=/$(get_libdir) \
56 --disable-efiemu \ 66 --disable-efiemu \
57 --disable-grub-pe2elf \ 67 $(use_enable truetype grub-mkfont) \
58 --enable-grub-mkfont \
59 $(use_enable debug mm-debug) \ 68 $(use_enable debug mm-debug) \
60 $(use_enable debug grub-emu) \ 69 $(use_enable debug grub-emu) \
61 $(use_enable debug grub-emu-usb) \ 70 $(use_enable debug grub-emu-usb) \
62 $(use_enable debug grub-fstest) 71 $(use_enable debug grub-fstest)
63 emake -j1 || die "making regular stuff" 72 emake -j1 || die "making regular stuff"
68 dodoc AUTHORS ChangeLog NEWS README THANKS TODO 77 dodoc AUTHORS ChangeLog NEWS README THANKS TODO
69 cat <<-EOF >> "${D}"/lib*/grub/grub-mkconfig_lib 78 cat <<-EOF >> "${D}"/lib*/grub/grub-mkconfig_lib
70 GRUB_DISTRIBUTOR="Gentoo" 79 GRUB_DISTRIBUTOR="Gentoo"
71 EOF 80 EOF
72 if use multislot ; then 81 if use multislot ; then
73 sed -i s:grub-install:grub2-install: "${D}"/sbin/grub-install 82 sed -i "s:grub-install:grub2-install:" "${D}"/sbin/grub-install || die
74 mv "${D}"/sbin/grub{,2}-install || die 83 mv "${D}"/sbin/grub{,2}-install || die
84 mv "${D}"/sbin/grub{,2}-set-default || die
75 mv "${D}"/usr/share/man/man8/grub{,2}-install.8 || die 85 mv "${D}"/usr/share/man/man8/grub{,2}-install.8 || die
76 mv "${D}"/usr/share/info/grub{,2}.info || die 86 mv "${D}"/usr/share/info/grub{,2}.info || die
77 fi 87 fi
78} 88}
79 89

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.22

  ViewVC Help
Powered by ViewVC 1.1.20