/[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.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.44 2012/01/19 21:49:38 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
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 touch "${T}"/.autotools-utils.timestamp || die
364 [[ ${PATCHES} ]] && epatch "${PATCHES[@]}" 363 [[ ${PATCHES} ]] && epatch "${PATCHES[@]}"
364
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)
365 epatch_user 373 epatch_user
366 if [[ ! ${want_autoreconf} ]]; then 374 if [[ ! ${want_autoreconf} ]]; then
367 if [[ $(find . -newer "${T}"/.autotools-utils.timestamp \ 375 if [[ ${checksum} != $(at_checksum) ]]; then
368 -a '(' -name 'Makefile.am' \
369 -o -name 'configure.ac' \
370 -o -name 'configure.in' ')' \
371 -print -quit) ]]; then
372 einfo 'Will autoreconfigure due to patches applied.' 376 einfo 'Will autoreconfigure due to user patches applied.'
373 want_autoreconf=yep 377 want_autoreconf=yep
374 fi 378 fi
375 fi 379 fi
376 380
377 [[ ${want_autoreconf} ]] && autotools-utils_autoreconf 381 [[ ${want_autoreconf} ]] && autotools-utils_autoreconf

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

  ViewVC Help
Powered by ViewVC 1.1.20