/[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.27
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2011 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.27 2011/01/09 03:22:47 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"
32[[ ${PV} == "9999" ]] && DEPEND+=" sys-apps/help2man"
28PROVIDE="virtual/bootloader" 33PROVIDE="virtual/bootloader"
29 34
30export STRIP_MASK="*/grub/*/*.mod" 35export STRIP_MASK="*/grub/*/*.mod"
31QA_EXECSTACK="sbin/grub-probe sbin/grub-setup" 36QA_EXECSTACK="sbin/grub-probe sbin/grub-setup sbin/grub-mkdevicemap bin/grub-script-check bin/grub-fstest"
32 37
33src_unpack() { 38src_unpack() {
34 if [[ ${PV} == "9999" ]] ; then 39 if [[ ${PV} == "9999" ]] ; then
35 subversion_src_unpack 40 bzr_src_unpack
36 else 41 else
37 unpack ${A} 42 unpack ${A}
38 fi 43 fi
39 cd "${S}" 44 cd "${S}"
40 epatch "${FILESDIR}"/${PN}-1.96-genkernel.patch #256335 45 epatch "${FILESDIR}"/${PN}-1.99-genkernel.patch #256335
46 epatch_user
41 47
42 # autogen.sh does more than just run autotools 48 # autogen.sh does more than just run autotools
43 sed -i -e 's:^auto:eauto:' autogen.sh 49 # need to eautomake due to weirdness #296013
50 if [[ ${PV} == "9999" ]] ; then
51 sed -i -e '/^autoreconf/s:^:e:' autogen.sh || die
44 (. ./autogen.sh) || die 52 (. ./autogen.sh) || die
53 fi
45} 54}
46 55
47src_compile() { 56src_compile() {
48 use custom-cflags || unset CFLAGS CPPFLAGS LDFLAGS 57 use custom-cflags || unset CFLAGS CPPFLAGS LDFLAGS
49 use static && append-ldflags -static 58 use static && append-ldflags -static
52 --disable-werror \ 61 --disable-werror \
53 --sbindir=/sbin \ 62 --sbindir=/sbin \
54 --bindir=/bin \ 63 --bindir=/bin \
55 --libdir=/$(get_libdir) \ 64 --libdir=/$(get_libdir) \
56 --disable-efiemu \ 65 --disable-efiemu \
57 --disable-grub-pe2elf \ 66 $(use_enable truetype grub-mkfont) \
58 --enable-grub-mkfont \
59 $(use_enable debug mm-debug) \ 67 $(use_enable debug mm-debug) \
60 $(use_enable debug grub-emu) \ 68 $(use_enable debug grub-emu) \
61 $(use_enable debug grub-emu-usb) \ 69 $(use_enable debug grub-emu-usb) \
62 $(use_enable debug grub-fstest) 70 $(use_enable debug grub-fstest)
63 emake -j1 || die "making regular stuff" 71 emake -j1 || die "making regular stuff"
68 dodoc AUTHORS ChangeLog NEWS README THANKS TODO 76 dodoc AUTHORS ChangeLog NEWS README THANKS TODO
69 cat <<-EOF >> "${D}"/lib*/grub/grub-mkconfig_lib 77 cat <<-EOF >> "${D}"/lib*/grub/grub-mkconfig_lib
70 GRUB_DISTRIBUTOR="Gentoo" 78 GRUB_DISTRIBUTOR="Gentoo"
71 EOF 79 EOF
72 if use multislot ; then 80 if use multislot ; then
73 sed -i s:grub-install:grub2-install: "${D}"/sbin/grub-install 81 sed -i "s:grub-install:grub2-install:" "${D}"/sbin/grub-install || die
74 mv "${D}"/sbin/grub{,2}-install || die 82 mv "${D}"/sbin/grub{,2}-install || die
83 mv "${D}"/sbin/grub{,2}-set-default || die
75 mv "${D}"/usr/share/man/man8/grub{,2}-install.8 || die 84 mv "${D}"/usr/share/man/man8/grub{,2}-install.8 || die
76 mv "${D}"/usr/share/info/grub{,2}.info || die 85 mv "${D}"/usr/share/info/grub{,2}.info || die
77 fi 86 fi
78} 87}
79 88
91 #einfo "Running: ${install} " 100 #einfo "Running: ${install} "
92 #${install} 101 #${install}
93} 102}
94 103
95pkg_postinst() { 104pkg_postinst() {
105 mount-boot_pkg_postinst
106
96 if use multislot ; then 107 if use multislot ; then
97 elog "You have installed grub2 with USE=multislot, so to coexist" 108 elog "You have installed grub2 with USE=multislot, so to coexist"
98 elog "with grub1, the grub2 install binary is named grub2-install." 109 elog "with grub1, the grub2 install binary is named grub2-install."
99 fi 110 fi
100 setup_boot_dir "${ROOT}"boot 111 setup_boot_dir "${ROOT}"boot

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

  ViewVC Help
Powered by ViewVC 1.1.20