| 1 | # Copyright 1999-2012 Gentoo Foundation |
1 | # Copyright 1999-2012 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/grub-9999.ebuild,v 1.52 2012/02/29 23:09:30 floppym Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/grub-9999.ebuild,v 1.53 2012/03/04 21:23:33 floppym Exp $ |
| 4 | |
4 | |
| 5 | EAPI=4 |
5 | EAPI=4 |
| 6 | |
6 | |
| 7 | if [[ ${PV} == "9999" ]] ; then |
7 | if [[ ${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/" |
| … | |
… | |
| 169 | src_prepare() { |
169 | src_prepare() { |
| 170 | local i j |
170 | local i j |
| 171 | |
171 | |
| 172 | epatch_user |
172 | epatch_user |
| 173 | |
173 | |
| 174 | # fix texinfo file name, as otherwise the grub2.info file will be |
|
|
| 175 | # useless |
|
|
| 176 | sed -i \ |
|
|
| 177 | -e '/setfilename/s:grub.info:grub2.info:' \ |
|
|
| 178 | -e 's:(grub):(grub2):' \ |
|
|
| 179 | docs/grub.texi |
|
|
| 180 | |
|
|
| 181 | # autogen.sh does more than just run autotools |
174 | # autogen.sh does more than just run autotools |
| 182 | if [[ -n ${DO_AUTORECONF} ]] ; then |
175 | if [[ -n ${DO_AUTORECONF} ]] ; then |
| 183 | sed -i -e '/^autoreconf/s:^:set +e; e:' autogen.sh || die |
176 | sed -i -e '/^autoreconf/s:^:set +e; e:' autogen.sh || die |
| 184 | (. ./autogen.sh) || die |
177 | (. ./autogen.sh) || die |
| 185 | fi |
178 | fi |