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

Diff of /eclass/autotools.eclass

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

Revision 1.119 Revision 1.120
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.eclass,v 1.119 2012/02/12 00:20:54 robbat2 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.120 2012/02/13 17:21:44 vapier 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
58 58
59if [[ -n ${WANT_AUTOCONF} ]] ; then 59if [[ -n ${WANT_AUTOCONF} ]] ; then
60 case ${WANT_AUTOCONF} in 60 case ${WANT_AUTOCONF} in
61 none) _autoconf_atom="" ;; # some packages don't require autoconf at all 61 none) _autoconf_atom="" ;; # some packages don't require autoconf at all
62 2.1) _autoconf_atom="=sys-devel/autoconf-${WANT_AUTOCONF}*" ;; 62 2.1) _autoconf_atom="=sys-devel/autoconf-${WANT_AUTOCONF}*" ;;
63 # if you change the latest version here, change also autotools_run_tool 63 # if you change the "latest" version here, change also autotools_env_setup
64 latest|2.5) _autoconf_atom=">=sys-devel/autoconf-2.61" ;; 64 latest|2.5) _autoconf_atom=">=sys-devel/autoconf-2.61" ;;
65 *) die "Invalid WANT_AUTOCONF value '${WANT_AUTOCONF}'" ;; 65 *) die "Invalid WANT_AUTOCONF value '${WANT_AUTOCONF}'" ;;
66 esac 66 esac
67 export WANT_AUTOCONF 67 export WANT_AUTOCONF
68fi 68fi
322 done 322 done
323} 323}
324 324
325# Internal function to run an autotools' tool 325# Internal function to run an autotools' tool
326autotools_env_setup() { 326autotools_env_setup() {
327 # We do the latest → version switch here because it solves 327 # We do the "latest" → version switch here because it solves
328 # possible order problems, see bug #270010 as an example. 328 # possible order problems, see bug #270010 as an example.
329 if [[ ${WANT_AUTOMAKE} == "latest" ]]; then 329 if [[ ${WANT_AUTOMAKE} == "latest" ]]; then
330 local pv 330 local pv
331 for pv in ${_LATEST_AUTOMAKE} ; do 331 for pv in ${_LATEST_AUTOMAKE} ; do
332 # has_version respects ROOT, but in this case, we don't want it to, 332 # has_version respects ROOT, but in this case, we don't want it to,

Legend:
Removed from v.1.119  
changed lines
  Added in v.1.120

  ViewVC Help
Powered by ViewVC 1.1.20