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

Diff of /eclass/autotools.eclass

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

Revision 1.61 Revision 1.63
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.61 2007/01/04 14:56:46 flameeyes Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.63 2007/01/08 23:25:30 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
9# needs to regenerate their build scripts. 9# needs to regenerate their build scripts.
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
15[[ -z ${WANT_AUTOCONF} ]] && WANT_AUTOCONF="latest"
16[[ -z ${WANT_AUTOMAKE} ]] && WANT_AUTOMAKE="latest"
14 17
15_automake_atom="sys-devel/automake" 18_automake_atom="sys-devel/automake"
16_autoconf_atom="sys-devel/autoconf" 19_autoconf_atom="sys-devel/autoconf"
17if [[ -n ${WANT_AUTOMAKE} ]]; then 20if [[ -n ${WANT_AUTOMAKE} ]]; then
18 case ${WANT_AUTOMAKE} in 21 case ${WANT_AUTOMAKE} in
19 # workaround while we have different versions of automake in arch and ~arch 22 # workaround while we have different versions of automake in arch and ~arch
23 none) _automake_atom="" ;; # some packages don't require automake at all
20 latest) _automake_atom="|| ( =sys-devel/automake-1.10* =sys-devel/automake-1.9* )" ;; 24 latest) _automake_atom="|| ( =sys-devel/automake-1.10* =sys-devel/automake-1.9* )" ;;
21 *) _automake_atom="=sys-devel/automake-${WANT_AUTOMAKE}*" ;; 25 *) _automake_atom="=sys-devel/automake-${WANT_AUTOMAKE}*" ;;
22 esac 26 esac
23fi 27fi
24 28
211 for amver in 1.10 1.9 1.8 1.7 1.6; do 215 for amver in 1.10 1.9 1.8 1.7 1.6; do
212 WANT_AUTOMAKE="${amver}" 216 WANT_AUTOMAKE="${amver}"
213 ROOT=/ has_version =sys-devel/automake-${amver}* && break 217 ROOT=/ has_version =sys-devel/automake-${amver}* && break
214 done 218 done
215 fi 219 fi
220
221 # Don't do stuff if no autoamke is requested/required
222 if [[ ${WANT_AUTOMAKE} != "none" ]]; then
216 export WANT_AUTOMAKE 223 export WANT_AUTOMAKE
217 einfo "Requested automake ${latest_automake}${WANT_AUTOMAKE}" 224 einfo "Requested automake ${latest_automake}${WANT_AUTOMAKE}"
218 einfo "Using $(automake --version 2>/dev/null | head -n 1)" 225 einfo "Using $(automake --version 2>/dev/null | head -n 1)"
219 einfo "Using $(aclocal --version 2>/dev/null | head -n 1)" 226 einfo "Using $(aclocal --version 2>/dev/null | head -n 1)"
227 fi
220 else 228 else
221 ewarn "QA Notice: \${WANT_AUTOMAKE} variable unset. Please report on http://bugs.gentoo.org/" 229 ewarn "QA Notice: \${WANT_AUTOMAKE} variable unset. Please report on http://bugs.gentoo.org/"
222 fi 230 fi
223 231
224 autotools_version_sets="yes" 232 autotools_version_sets="yes"

Legend:
Removed from v.1.61  
changed lines
  Added in v.1.63

  ViewVC Help
Powered by ViewVC 1.1.20