/[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.45 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.45 2012/01/21 20:44:28 mgorny 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>
304 # Support running additional tools like gnome-autogen.sh. 304 # Support running additional tools like gnome-autogen.sh.
305 # Note: you need to add additional depends to the ebuild. 305 # Note: you need to add additional depends to the ebuild.
306 306
307 # gettext 307 # gettext
308 if [[ $(autotools_check_macro AM_GLIB_GNU_GETTEXT) ]]; then 308 if [[ $(autotools_check_macro AM_GLIB_GNU_GETTEXT) ]]; then
309 echo 'no' | autotools_run_tool glib-gettextize --copy 309 echo 'no' | autotools_run_tool glib-gettextize --copy --force
310 elif [[ $(autotools_check_macro AM_GNU_GETTEXT) ]]; then 310 elif [[ $(autotools_check_macro AM_GNU_GETTEXT) ]]; then
311 eautopoint --force 311 eautopoint --force
312 fi 312 fi
313 313
314 # intltool 314 # intltool
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.45  
changed lines
  Added in v.1.47

  ViewVC Help
Powered by ViewVC 1.1.20