/[gentoo-x86]/eclass/autotools.eclass
Gentoo

Diff of /eclass/autotools.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.115 Revision 1.116
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/eclass/autotools.eclass,v 1.115 2011/12/14 19:15:13 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.116 2011/12/14 20:46:36 vapier Exp $
4 4
5# @ECLASS: autotools.eclass 5# @ECLASS: autotools.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# base-system@gentoo.org 7# base-system@gentoo.org
8# @BLURB: Regenerates auto* build scripts 8# @BLURB: Regenerates auto* build scripts
314 die "Cannot find the latest automake! Tried ${_LATEST_AUTOMAKE}" 314 die "Cannot find the latest automake! Tried ${_LATEST_AUTOMAKE}"
315 fi 315 fi
316 [[ ${WANT_AUTOCONF} == "latest" ]] && export WANT_AUTOCONF=2.5 316 [[ ${WANT_AUTOCONF} == "latest" ]] && export WANT_AUTOCONF=2.5
317} 317}
318autotools_run_tool() { 318autotools_run_tool() {
319 if [[ ${EBUILD_PHASE} != "unpack" && ${EBUILD_PHASE} != "prepare" ]]; then
320 ewarn "QA Warning: running $1 in ${EBUILD_PHASE} phase"
321 fi
322
323 # Process our own internal flags first 319 # Process our own internal flags first
324 local autofail=true m4flags=false 320 local autofail=true m4flags=false
325 while [[ -n $1 ]] ; do 321 while [[ -n $1 ]] ; do
326 case $1 in 322 case $1 in
327 --at-no-fail) autofail=false;; 323 --at-no-fail) autofail=false;;
330 *) break;; 326 *) break;;
331 esac 327 esac
332 shift 328 shift
333 done 329 done
334 330
331 if [[ ${EBUILD_PHASE} != "unpack" && ${EBUILD_PHASE} != "prepare" ]]; then
332 ewarn "QA Warning: running $1 in ${EBUILD_PHASE} phase"
333 fi
334
335 autotools_env_setup 335 autotools_env_setup
336 336
337 local STDERR_TARGET="${T}/$1.out" 337 local STDERR_TARGET="${T}/$1.out"
338 # most of the time, there will only be one run, but if there are 338 # most of the time, there will only be one run, but if there are
339 # more, make sure we get unique log filenames 339 # more, make sure we get unique log filenames
345 : $(( i++ )) 345 : $(( i++ ))
346 done 346 done
347 fi 347 fi
348 348
349 if ${m4flags} ; then 349 if ${m4flags} ; then
350 set -- $(autotools_m4dir_include) "$@" $(autotools_m4sysdir_include) 350 set -- "${1}" $(autotools_m4dir_include) "${@:2}" $(autotools_m4sysdir_include)
351 fi 351 fi
352 352
353 printf "***** $1 *****\n***** PWD: ${PWD}\n***** $*\n\n" > "${STDERR_TARGET}" 353 printf "***** $1 *****\n***** PWD: ${PWD}\n***** $*\n\n" > "${STDERR_TARGET}"
354 354
355 ebegin "Running $@" 355 ebegin "Running $@"

Legend:
Removed from v.1.115  
changed lines
  Added in v.1.116

  ViewVC Help
Powered by ViewVC 1.1.20