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

Diff of /eclass/autotools-utils.eclass

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

Revision 1.44 Revision 1.45
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/eclass/autotools-utils.eclass,v 1.44 2012/01/19 21:49:38 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/autotools-utils.eclass,v 1.45 2012/01/21 20:44:28 mgorny Exp $
4 4
5# @ECLASS: autotools-utils.eclass 5# @ECLASS: autotools-utils.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Maciej Mrozowski <reavertm@gentoo.org> 7# Maciej Mrozowski <reavertm@gentoo.org>
8# Michał Górny <mgorny@gentoo.org> 8# Michał Górny <mgorny@gentoo.org>
358autotools-utils_src_prepare() { 358autotools-utils_src_prepare() {
359 debug-print-function ${FUNCNAME} "$@" 359 debug-print-function ${FUNCNAME} "$@"
360 360
361 local want_autoreconf=${AUTOTOOLS_AUTORECONF} 361 local want_autoreconf=${AUTOTOOLS_AUTORECONF}
362 362
363 [[ ${PATCHES} ]] && epatch "${PATCHES[@]}"
364
363 touch "${T}"/.autotools-utils.timestamp || die 365 touch "${T}"/.autotools-utils.timestamp || die
364 [[ ${PATCHES} ]] && epatch "${PATCHES[@]}"
365 epatch_user 366 epatch_user
366 if [[ ! ${want_autoreconf} ]]; then 367 if [[ ! ${want_autoreconf} ]]; then
367 if [[ $(find . -newer "${T}"/.autotools-utils.timestamp \ 368 if [[ $(find . -newer "${T}"/.autotools-utils.timestamp \
368 -a '(' -name 'Makefile.am' \ 369 -a '(' -name 'Makefile.am' \
369 -o -name 'configure.ac' \ 370 -o -name 'configure.ac' \
370 -o -name 'configure.in' ')' \ 371 -o -name 'configure.in' ')' \
371 -print -quit) ]]; then 372 -print -quit) ]]; then
372 einfo 'Will autoreconfigure due to patches applied.' 373 einfo 'Will autoreconfigure due to user patches applied.'
373 want_autoreconf=yep 374 want_autoreconf=yep
374 fi 375 fi
375 fi 376 fi
376 377
377 [[ ${want_autoreconf} ]] && autotools-utils_autoreconf 378 [[ ${want_autoreconf} ]] && autotools-utils_autoreconf

Legend:
Removed from v.1.44  
changed lines
  Added in v.1.45

  ViewVC Help
Powered by ViewVC 1.1.20