| 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.66 2012/06/05 19:02:50 floppym Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/grub-9999.ebuild,v 1.67 2012/06/09 04:47:30 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/" |
| … | |
… | |
| 206 | |
206 | |
| 207 | epatch_user |
207 | epatch_user |
| 208 | |
208 | |
| 209 | # autogen.sh does more than just run autotools |
209 | # autogen.sh does more than just run autotools |
| 210 | if [[ -n ${DO_AUTORECONF} ]] ; then |
210 | if [[ -n ${DO_AUTORECONF} ]] ; then |
| 211 | # sed -i -e '/^autoreconf/s:^:set +e; e:' autogen.sh || die |
211 | sed -i -e '/^autoreconf/s:^:set +e; e:' autogen.sh || die |
| 212 | # (. ./autogen.sh) || die |
212 | ( |
| 213 | autotools_env_setup |
213 | autopoint() { :; } |
| 214 | ./autogen.sh || die |
214 | . ./autogen.sh |
|
|
215 | ) || die |
| 215 | fi |
216 | fi |
| 216 | |
217 | |
| 217 | # install into the right dir for eselect #372735 |
218 | # install into the right dir for eselect #372735 |
| 218 | sed -i \ |
219 | sed -i \ |
| 219 | -e '/^bashcompletiondir =/s:=.*:= $(datarootdir)/bash-completion:' \ |
220 | -e '/^bashcompletiondir =/s:=.*:= $(datarootdir)/bash-completion:' \ |
| … | |
… | |
| 223 | GRUB_ENABLED_PLATFORMS="" |
224 | GRUB_ENABLED_PLATFORMS="" |
| 224 | for i in ${GRUB_PLATFORMS[@]}; do |
225 | for i in ${GRUB_PLATFORMS[@]}; do |
| 225 | use grub_platforms_${i} && GRUB_ENABLED_PLATFORMS+=" ${i}" |
226 | use grub_platforms_${i} && GRUB_ENABLED_PLATFORMS+=" ${i}" |
| 226 | done |
227 | done |
| 227 | [[ -z ${GRUB_ENABLED_PLATFORMS} ]] && GRUB_ENABLED_PLATFORMS="guessed" |
228 | [[ -z ${GRUB_ENABLED_PLATFORMS} ]] && GRUB_ENABLED_PLATFORMS="guessed" |
| 228 | elog "Going to build following platforms: ${GRUB_ENABLED_PLATFORMS}" |
229 | einfo "Going to build following platforms: ${GRUB_ENABLED_PLATFORMS}" |
| 229 | } |
230 | } |
| 230 | |
231 | |
| 231 | src_configure() { |
232 | src_configure() { |
| 232 | local i |
233 | local i |
| 233 | |
234 | |