/[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.38 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.38 2011/08/28 10:30:23 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
154} 154}
155 155
156src_prepare() { 156src_prepare() {
157 local i j archs 157 local i j archs
158 158
159 epatch \
160 "${FILESDIR}/1.99-call_proper_grub_probe.patch"
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
163 sed -i -e '/^autoreconf/s:^:set +e; e:' autogen.sh || die 166 sed -i -e '/^autoreconf/s:^:set +e; e:' autogen.sh || die
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.38  
changed lines
  Added in v.1.40

  ViewVC Help
Powered by ViewVC 1.1.20