/[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.46 Revision 1.47
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.46 2012/01/30 13:11:27 jlec Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/autotools-utils.eclass,v 1.47 2012/02/02 22:01:13 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>
360 360
361 local want_autoreconf=${AUTOTOOLS_AUTORECONF} 361 local want_autoreconf=${AUTOTOOLS_AUTORECONF}
362 362
363 [[ ${PATCHES} ]] && epatch "${PATCHES[@]}" 363 [[ ${PATCHES} ]] && epatch "${PATCHES[@]}"
364 364
365 touch "${T}"/.autotools-utils.timestamp || die 365 at_checksum() {
366 find '(' -name 'Makefile.am' \
367 -o -name 'configure.ac' \
368 -o -name 'configure.in' ')' \
369 -exec cksum {} + | sort -k2
370 }
371
372 [[ ! ${want_autoreconf} ]] && local checksum=$(at_checksum)
366 epatch_user 373 epatch_user
367 if [[ ! ${want_autoreconf} ]]; then 374 if [[ ! ${want_autoreconf} ]]; then
368 if [[ $(find . -newer "${T}"/.autotools-utils.timestamp \ 375 if [[ ${checksum} != $(at_checksum) ]]; then
369 -a '(' -name 'Makefile.am' \
370 -o -name 'configure.ac' \
371 -o -name 'configure.in' ')' \
372 -print -quit) ]]; then
373 einfo 'Will autoreconfigure due to user patches applied.' 376 einfo 'Will autoreconfigure due to user patches applied.'
374 want_autoreconf=yep 377 want_autoreconf=yep
375 fi 378 fi
376 fi 379 fi
377 380

Legend:
Removed from v.1.46  
changed lines
  Added in v.1.47

  ViewVC Help
Powered by ViewVC 1.1.20