/[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.37 Revision 1.40
1# Copyright 1999-2011 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.37 2011/08/27 11:29:52 scarabeus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/Attic/grub-9999.ebuild,v 1.40 2011/08/31 11:27:51 alexxy Exp $
4 4
5EAPI=4 5EAPI=4
6 6
7if [[ ${PV} == "9999" ]] ; then 7if [[ ${PV} == "9999" ]] ; then
8 EBZR_REPO_URI="http://bzr.savannah.gnu.org/r/grub/trunk/grub/" 8 EBZR_REPO_URI="http://bzr.savannah.gnu.org/r/grub/trunk/grub/"
13 SRC_URI="mirror://gnu/${PN}/${MY_P}.tar.xz 13 SRC_URI="mirror://gnu/${PN}/${MY_P}.tar.xz
14 mirror://gentoo/${MY_P}.tar.xz" 14 mirror://gentoo/${MY_P}.tar.xz"
15 S=${WORKDIR}/${MY_P} 15 S=${WORKDIR}/${MY_P}
16fi 16fi
17 17
18inherit mount-boot eutils flag-o-matic toolchain-funcs ${LIVE_ECLASS} 18inherit mount-boot eutils flag-o-matic pax-utils toolchain-funcs ${LIVE_ECLASS}
19unset LIVE_ECLASS 19unset LIVE_ECLASS
20 20
21DESCRIPTION="GNU GRUB boot loader" 21DESCRIPTION="GNU GRUB boot loader"
22HOMEPAGE="http://www.gnu.org/software/grub/" 22HOMEPAGE="http://www.gnu.org/software/grub/"
23 23
24LICENSE="GPL-3" 24LICENSE="GPL-3"
25SLOT="2" 25SLOT="2"
26[[ ${PV} != "9999" ]] && KEYWORDS="~amd64 ~mips ~x86" 26[[ ${PV} != "9999" ]] && KEYWORDS="~amd64 ~mips ~x86"
27IUSE="custom-cflags debug device-mapper nls static sdl truetype" 27IUSE="custom-cflags debug device-mapper efiemu nls static sdl truetype"
28 28
29GRUB_PLATFORMS="coreboot efi-32 efi-64 emu ieee1275 multiboot pc qemu qemu-mips loongson" 29GRUB_PLATFORMS="coreboot efi-32 efi-64 emu ieee1275 multiboot pc qemu qemu-mips loongson"
30# everywhere: 30# everywhere:
31# emu 31# emu
32# mips only: 32# mips only:
132 econf \ 132 econf \
133 --disable-werror \ 133 --disable-werror \
134 --sbindir=/sbin \ 134 --sbindir=/sbin \
135 --bindir=/bin \ 135 --bindir=/bin \
136 --libdir=/$(get_libdir) \ 136 --libdir=/$(get_libdir) \
137 --disable-efiemu \
138 --program-transform-name=s,grub,grub2, \ 137 --program-transform-name=s,grub,grub2, \
138 $(use_enable debug mm-debug) \
139 $(use_enable debug grub-emu-usb) \
139 $(use_enable device-mapper) \ 140 $(use_enable device-mapper) \
141 $(use_enable efiemu) \
142 $(use_enable nls) \
140 $(use_enable truetype grub-mkfont) \ 143 $(use_enable truetype grub-mkfont) \
141 $(use_enable nls) \
142 $(use_enable debug mm-debug) \
143 $(use sdl && use_enable debug grub-emu-sdl) \ 144 $(use sdl && use_enable debug grub-emu-sdl) \
144 $(use_enable debug grub-emu-usb) \
145 ${platform} 145 ${platform}
146} 146}
147 147
148grub_src_compile() { 148grub_src_compile() {
149 default_src_compile 149 default_src_compile
153 default_src_install 153 default_src_install
154} 154}
155 155
156src_prepare() { 156src_prepare() {
157 local i j archs 157 local i j archs
158
159 epatch \
160 "${FILESDIR}/1.99-call_proper_grub_probe.patch"
158 161
159 epatch_user 162 epatch_user
160 163
161 # autogen.sh does more than just run autotools 164 # autogen.sh does more than just run autotools
162 if [[ ${PV} == "9999" ]] ; then 165 if [[ ${PV} == "9999" ]] ; then
205 done 208 done
206 209
207 # slot all collisions with grub legacy 210 # slot all collisions with grub legacy
208 mv "${ED}"/usr/share/info/grub.info \ 211 mv "${ED}"/usr/share/info/grub.info \
209 "${ED}"/usr/share/info/grub2.info || die 212 "${ED}"/usr/share/info/grub2.info || die
213
214 # Do pax marking
215 local PAX=(
216 "sbin/grub2-probe"
217 "sbin/grub2-setup"
218 "sbin/grub2-mkdevicemap"
219 "bin/grub2-script-check"
220 "bin/grub2-fstest"
221 "bin/grub2-mklayout"
222 "bin/grub2-menulst2cfg"
223 "bin/grub2-mkrelpath"
224 "bin/grub2-mkpasswd-pbkdf2"
225 "bin/grub2-editenv"
226 "bin/grub2-mkimage"
227 )
228 for e in ${PAX[@]}; do
229 pax-mark -mpx "${ED}/${e}"
230 done
210 231
211 # can't be in docs array as we use defualt_src_install in different builddir 232 # can't be in docs array as we use defualt_src_install in different builddir
212 dodoc AUTHORS ChangeLog NEWS README THANKS TODO 233 dodoc AUTHORS ChangeLog NEWS README THANKS TODO
213 insinto /etc/default 234 insinto /etc/default
214 newins "${FILESDIR}"/grub.default grub 235 newins "${FILESDIR}"/grub.default grub

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.40

  ViewVC Help
Powered by ViewVC 1.1.20