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

Diff of /eclass/autotools.eclass

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

Revision 1.47 Revision 1.48
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 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.47 2006/10/02 22:52:08 flameeyes Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.48 2006/10/16 08:12:01 flameeyes Exp $
4# 4#
5# Author: Diego Pettenò <flameeyes@gentoo.org> 5# Author: Diego Pettenò <flameeyes@gentoo.org>
6# Enhancements: Martin Schlemmer <azarah@gentoo.org> 6# Enhancements: Martin Schlemmer <azarah@gentoo.org>
7# 7#
8# This eclass is for handling autotooled software packages that 8# This eclass is for handling autotooled software packages that
10# 10#
11# NB: If you add anything, please comment it! 11# NB: If you add anything, please comment it!
12 12
13inherit eutils libtool 13inherit eutils libtool
14 14
15[[ ${WANT_AUTOMAKE} == "latest" ]] && export WANT_AUTOMAKE=1.9
16[[ ${WANT_AUTOCONF} == "latest" ]] && export WANT_AUTOCONF=2.5
17
18_automake_atom="sys-devel/automake" 15_automake_atom="sys-devel/automake"
19_autoconf_atom="sys-devel/autoconf" 16_autoconf_atom="sys-devel/autoconf"
17if [[ -n ${WANT_AUTOMAKE} ]] && [[ ${WANT_AUTOMAKE} != "latest" ]]; then
20[[ -n ${WANT_AUTOMAKE} ]] && _automake_atom="=sys-devel/automake-${WANT_AUTOMAKE}*" 18 _automake_atom="=sys-devel/automake-${WANT_AUTOMAKE}*"
19fi
20
21if [[ -n ${WANT_AUTOCONF} ]] ; then 21if [[ -n ${WANT_AUTOCONF} ]] ; then
22 case ${WANT_AUTOCONF} in 22 case ${WANT_AUTOCONF} in
23 2.1) _autoconf_atom="=sys-devel/autoconf-${WANT_AUTOCONF}*" ;; 23 2.1) _autoconf_atom="=sys-devel/autoconf-${WANT_AUTOCONF}*" ;;
24 2.5) _autoconf_atom=">=sys-devel/autoconf-2.59" ;; 24 2.5) _autoconf_atom=">=sys-devel/autoconf-2.59" ;;
25 esac 25 esac
186 186
187autotools_set_versions() { 187autotools_set_versions() {
188 [[ -n ${autotools_version_sets} ]] && return 0 188 [[ -n ${autotools_version_sets} ]] && return 0
189 189
190 if [[ -n ${WANT_AUTOCONF} ]]; then 190 if [[ -n ${WANT_AUTOCONF} ]]; then
191 [[ ${WANT_AUTOCONF} == "latest" ]] && WANT_AUTOCONF="2.5"
191 export WANT_AUTOCONF 192 export WANT_AUTOCONF
192 einfo "Requested autoconf ${WANT_AUTOCONF}" 193 einfo "Requested autoconf ${WANT_AUTOCONF}"
193 einfo "Using $(autoconf --version 2>/dev/null | head -n 1)" 194 einfo "Using $(autoconf --version 2>/dev/null | head -n 1)"
194 einfo "Using $(autoheader --version 2>/dev/null | head -n 1)" 195 einfo "Using $(autoheader --version 2>/dev/null | head -n 1)"
195 fi 196 fi
196 197
197 if [[ -n ${WANT_AUTOMAKE} ]]; then 198 if [[ -n ${WANT_AUTOMAKE} ]]; then
199 if [[ ${WANT_AUTOMAKE} == "latest" ]]; then
200 # Consider starting from 1.9, as that is stable everywhere.
201 has_version '~sys-devel/automake-1.9' && WANT_AUTOMAKE="1.9"
202 has_version '~sys-devel/automake-1.10' && WANT_AUTOMAKE="1.10"
203 fi
198 export WANT_AUTOMAKE 204 export WANT_AUTOMAKE
199 einfo "Requested automake ${WANT_AUTOMAKE}" 205 einfo "Requested automake ${WANT_AUTOMAKE}"
200 einfo "Using $(automake --version 2>/dev/null | head -n 1)" 206 einfo "Using $(automake --version 2>/dev/null | head -n 1)"
201 einfo "Using $(aclocal --version 2>/dev/null | head -n 1)" 207 einfo "Using $(aclocal --version 2>/dev/null | head -n 1)"
202 fi 208 fi

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

  ViewVC Help
Powered by ViewVC 1.1.20