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

Diff of /eclass/autotools.eclass

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

Revision 1.85 Revision 1.86
1# Copyright 1999-2008 Gentoo Foundation 1# Copyright 1999-2008 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.85 2009/05/04 22:27:05 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.86 2009/05/18 11:24:30 flameeyes 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
27_automake_atom="sys-devel/automake" 27_automake_atom="sys-devel/automake"
28_autoconf_atom="sys-devel/autoconf" 28_autoconf_atom="sys-devel/autoconf"
29if [[ -n ${WANT_AUTOMAKE} ]]; then 29if [[ -n ${WANT_AUTOMAKE} ]]; then
30 case ${WANT_AUTOMAKE} in 30 case ${WANT_AUTOMAKE} in
31 none) _automake_atom="" ;; # some packages don't require automake at all 31 none) _automake_atom="" ;; # some packages don't require automake at all
32 # if you change the “latest” version here, change also autotools_run_tool
32 latest) _automake_atom="=sys-devel/automake-1.10*" ;; 33 latest) _automake_atom="=sys-devel/automake-1.10*" ;;
33 *) _automake_atom="=sys-devel/automake-${WANT_AUTOMAKE}*" ;; 34 *) _automake_atom="=sys-devel/automake-${WANT_AUTOMAKE}*" ;;
34 esac 35 esac
35 [[ ${WANT_AUTOMAKE} == "latest" ]] && WANT_AUTOMAKE="1.10"
36 export WANT_AUTOMAKE 36 export WANT_AUTOMAKE
37fi 37fi
38 38
39if [[ -n ${WANT_AUTOCONF} ]] ; then 39if [[ -n ${WANT_AUTOCONF} ]] ; then
40 case ${WANT_AUTOCONF} in 40 case ${WANT_AUTOCONF} in
41 none) _autoconf_atom="" ;; # some packages don't require autoconf at all 41 none) _autoconf_atom="" ;; # some packages don't require autoconf at all
42 2.1) _autoconf_atom="=sys-devel/autoconf-${WANT_AUTOCONF}*" ;; 42 2.1) _autoconf_atom="=sys-devel/autoconf-${WANT_AUTOCONF}*" ;;
43 # if you change the “latest” version here, change also autotools_run_tool
43 latest|2.5) _autoconf_atom=">=sys-devel/autoconf-2.61" ;; 44 latest|2.5) _autoconf_atom=">=sys-devel/autoconf-2.61" ;;
44 *) _autoconf_atom="INCORRECT-WANT_AUTOCONF-SETTING-IN-EBUILD" ;; 45 *) _autoconf_atom="INCORRECT-WANT_AUTOCONF-SETTING-IN-EBUILD" ;;
45 esac 46 esac
46 [[ ${WANT_AUTOCONF} == "latest" ]] && WANT_AUTOCONF="2.5"
47 export WANT_AUTOCONF 47 export WANT_AUTOCONF
48fi 48fi
49DEPEND="${_automake_atom} 49DEPEND="${_automake_atom}
50 ${_autoconf_atom}" 50 ${_autoconf_atom}"
51[[ ${CATEGORY}/${PN} != "sys-devel/libtool" ]] && DEPEND="${DEPEND} sys-devel/libtool" 51[[ ${CATEGORY}/${PN} != "sys-devel/libtool" ]] && DEPEND="${DEPEND} sys-devel/libtool"
239autotools_run_tool() { 239autotools_run_tool() {
240 if [[ ${EBUILD_PHASE} != "unpack" && ${EBUILD_PHASE} != "prepare" ]]; then 240 if [[ ${EBUILD_PHASE} != "unpack" && ${EBUILD_PHASE} != "prepare" ]]; then
241 ewarn "QA Warning: running $1 in ${EBUILD_PHASE} phase" 241 ewarn "QA Warning: running $1 in ${EBUILD_PHASE} phase"
242 fi 242 fi
243 243
244 # We do the “latest” → version switch here because it solves
245 # possible order problems, see bug #270010 as an example.
246 [[ ${WANT_AUTOMAKE} == "latest" ]] && export WANT_AUTOMAKE=1.10
247 [[ ${WANT_AUTOCONF} == "latest" ]] && export WANT_AUTOCONF=2.5
248
244 local STDERR_TARGET="${T}/$1.out" 249 local STDERR_TARGET="${T}/$1.out"
245 # most of the time, there will only be one run, but if there are 250 # most of the time, there will only be one run, but if there are
246 # more, make sure we get unique log filenames 251 # more, make sure we get unique log filenames
247 if [[ -e ${STDERR_TARGET} ]] ; then 252 if [[ -e ${STDERR_TARGET} ]] ; then
248 STDERR_TARGET="${T}/$1-$$.out" 253 STDERR_TARGET="${T}/$1-$$.out"

Legend:
Removed from v.1.85  
changed lines
  Added in v.1.86

  ViewVC Help
Powered by ViewVC 1.1.20