/[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.25
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.25 2010/08/24 22:52:09 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-5 )"
26DEPEND="${RDEPEND} 29DEPEND="${RDEPEND}
27 dev-lang/ruby" 30 >=sys-devel/autogen-5.10
31 >=dev-lang/python-2.5.2"
28PROVIDE="virtual/bootloader" 32PROVIDE="virtual/bootloader"
29 33
30export STRIP_MASK="*/grub/*/*.mod" 34export STRIP_MASK="*/grub/*/*.mod"
31QA_EXECSTACK="sbin/grub-probe sbin/grub-setup" 35QA_EXECSTACK="sbin/grub-probe sbin/grub-setup sbin/grub-mkdevicemap bin/grub-script-check bin/grub-fstest"
32 36
33src_unpack() { 37src_unpack() {
34 if [[ ${PV} == "9999" ]] ; then 38 if [[ ${PV} == "9999" ]] ; then
35 subversion_src_unpack 39 bzr_src_unpack
36 else 40 else
37 unpack ${A} 41 unpack ${A}
38 fi 42 fi
39 cd "${S}" 43 cd "${S}"
40 epatch "${FILESDIR}"/${PN}-1.96-genkernel.patch #256335 44 epatch "${FILESDIR}"/${PN}-1.99-genkernel.patch #256335
45 epatch_user
41 46
42 # autogen.sh does more than just run autotools 47 # autogen.sh does more than just run autotools
43 sed -i -e 's:^auto:eauto:' autogen.sh 48 # need to eautomake due to weirdness #296013
49 if [[ ${PV} == "9999" ]] ; then
50 sed -i -e '/^autoreconf/s:^:e:' autogen.sh || die
44 (. ./autogen.sh) || die 51 (. ./autogen.sh) || die
52 fi
45} 53}
46 54
47src_compile() { 55src_compile() {
48 use custom-cflags || unset CFLAGS CPPFLAGS LDFLAGS 56 use custom-cflags || unset CFLAGS CPPFLAGS LDFLAGS
49 use static && append-ldflags -static 57 use static && append-ldflags -static
52 --disable-werror \ 60 --disable-werror \
53 --sbindir=/sbin \ 61 --sbindir=/sbin \
54 --bindir=/bin \ 62 --bindir=/bin \
55 --libdir=/$(get_libdir) \ 63 --libdir=/$(get_libdir) \
56 --disable-efiemu \ 64 --disable-efiemu \
57 --disable-grub-pe2elf \ 65 $(use_enable truetype grub-mkfont) \
58 --enable-grub-mkfont \
59 $(use_enable debug mm-debug) \ 66 $(use_enable debug mm-debug) \
60 $(use_enable debug grub-emu) \ 67 $(use_enable debug grub-emu) \
61 $(use_enable debug grub-emu-usb) \ 68 $(use_enable debug grub-emu-usb) \
62 $(use_enable debug grub-fstest) 69 $(use_enable debug grub-fstest)
63 emake -j1 || die "making regular stuff" 70 emake -j1 || die "making regular stuff"
68 dodoc AUTHORS ChangeLog NEWS README THANKS TODO 75 dodoc AUTHORS ChangeLog NEWS README THANKS TODO
69 cat <<-EOF >> "${D}"/lib*/grub/grub-mkconfig_lib 76 cat <<-EOF >> "${D}"/lib*/grub/grub-mkconfig_lib
70 GRUB_DISTRIBUTOR="Gentoo" 77 GRUB_DISTRIBUTOR="Gentoo"
71 EOF 78 EOF
72 if use multislot ; then 79 if use multislot ; then
73 sed -i s:grub-install:grub2-install: "${D}"/sbin/grub-install 80 sed -i "s:grub-install:grub2-install:" "${D}"/sbin/grub-install || die
74 mv "${D}"/sbin/grub{,2}-install || die 81 mv "${D}"/sbin/grub{,2}-install || die
82 mv "${D}"/sbin/grub{,2}-set-default || die
75 mv "${D}"/usr/share/man/man8/grub{,2}-install.8 || die 83 mv "${D}"/usr/share/man/man8/grub{,2}-install.8 || die
76 mv "${D}"/usr/share/info/grub{,2}.info || die 84 mv "${D}"/usr/share/info/grub{,2}.info || die
77 fi 85 fi
78} 86}
79 87

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

  ViewVC Help
Powered by ViewVC 1.1.20