set automake-1.11 to default now that it is stable everywhere
authorMike Frysinger <vapier@gentoo.org>
Tue, 6 Jul 2010 18:55:50 +0000 (18:55 +0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 6 Jul 2010 18:55:50 +0000 (18:55 +0000)
eclass/autotools.eclass

index 384bacca98cb0edcf8c60dd8bab350e0264bd597..163b95a20f131c53aa1b1984b86e9916ae6dd78b 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2010 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.98 2010/05/23 22:52:41 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.99 2010/07/06 18:55:50 vapier Exp $
 
 # @ECLASS: autotools.eclass
 # @MAINTAINER:
@@ -31,23 +31,16 @@ inherit eutils libtool
 # If a newer version is stable on any arch, and is NOT reflected in this list,
 # then circular dependencies may arise during emerge @system bootstraps.
 # Do NOT change this variable in your ebuilds!
-_LATEST_AUTOMAKE='1.11 1.10'
+_LATEST_AUTOMAKE='1.11'
 
 _automake_atom="sys-devel/automake"
 _autoconf_atom="sys-devel/autoconf"
 if [[ -n ${WANT_AUTOMAKE} ]]; then
        case ${WANT_AUTOMAKE} in
                none)   _automake_atom="" ;; # some packages don't require automake at all
-               # if you change the “latest” version here, change also autotools_run_tool
+               # if you change the "latest" version here, change also autotools_run_tool
                # this MUST reflect the latest stable major version for each arch!
-               latest)
-                       t=""
-                       for v in ${_LATEST_AUTOMAKE} ; do
-                               t="${t} =sys-devel/automake-${v}*"
-                       done
-                       _automake_atom="|| ( ${t} )"
-                       unset t v
-                       ;;
+               latest) _automake_atom="|| ( `printf '=sys-devel/automake-%s* ' ${_LATEST_AUTOMAKE}` )" ;;
                *)      _automake_atom="=sys-devel/automake-${WANT_AUTOMAKE}*" ;;
        esac
        export WANT_AUTOMAKE
@@ -285,12 +278,12 @@ autotools_run_tool() {
        # We do the “latest” → version switch here because it solves
        # possible order problems, see bug #270010 as an example.
        if [[ ${WANT_AUTOMAKE} == "latest" ]]; then
+               local pv
                for pv in ${_LATEST_AUTOMAKE} ; do
                        # has_version respects ROOT, but in this case, we don't want it to,
                        # thus "ROOT=/" prefix:
                        ROOT=/ has_version "=sys-devel/automake-${pv}*" && export WANT_AUTOMAKE="$pv"
                done
-               unset pv
                [[ ${WANT_AUTOMAKE} == "latest" ]] && \
                        die "Cannot find the latest automake! Tried ${_LATEST_AUTOMAKE}"
        fi