| 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.131 2012/05/20 10:26:05 vapier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.133 2012/05/20 10:39:45 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 |
| … | |
… | |
| 47 | |
47 | |
| 48 | _automake_atom="sys-devel/automake" |
48 | _automake_atom="sys-devel/automake" |
| 49 | _autoconf_atom="sys-devel/autoconf" |
49 | _autoconf_atom="sys-devel/autoconf" |
| 50 | if [[ -n ${WANT_AUTOMAKE} ]]; then |
50 | if [[ -n ${WANT_AUTOMAKE} ]]; then |
| 51 | case ${WANT_AUTOMAKE} in |
51 | case ${WANT_AUTOMAKE} in |
| 52 | none) _automake_atom="" ;; # some packages don't require automake at all |
52 | # Even if the package doesn't use automake, we still need to depend |
| 53 | # if you change the "latest" version here, change also autotools_run_tool |
53 | # on it because we run aclocal to process m4 macros. This matches |
| 54 | # this MUST reflect the latest stable major version for each arch! |
54 | # the autoreconf tool, so this requirement is correct. #401605 |
|
|
55 | none) ;; |
| 55 | latest) |
56 | latest) |
| 56 | # Use SLOT deps if we can. For EAPI=0, we get pretty close. |
57 | # Use SLOT deps if we can. For EAPI=0, we get pretty close. |
| 57 | if [[ ${EAPI:-0} != 0 ]] ; then |
58 | if [[ ${EAPI:-0} != 0 ]] ; then |
| 58 | _automake_atom="|| ( `printf '>=sys-devel/automake-%s:%s ' ${_LATEST_AUTOMAKE[@]/:/ }` )" |
59 | _automake_atom="|| ( `printf '>=sys-devel/automake-%s:%s ' ${_LATEST_AUTOMAKE[@]/:/ }` )" |
| 59 | else |
60 | else |
| … | |
… | |
| 160 | local macdir=$(autotools_get_macrodir) |
161 | local macdir=$(autotools_get_macrodir) |
| 161 | |
162 | |
| 162 | einfo "Running eautoreconf in '${PWD}' ..." |
163 | einfo "Running eautoreconf in '${PWD}' ..." |
| 163 | [[ -n ${auxdir}${macdir} ]] && mkdir -p ${auxdir} ${macdir} |
164 | [[ -n ${auxdir}${macdir} ]] && mkdir -p ${auxdir} ${macdir} |
| 164 | eaclocal |
165 | eaclocal |
|
|
166 | if grep -q '^AM_GNU_GETTEXT_VERSION' configure.?? ; then |
|
|
167 | eautopoint --force |
|
|
168 | fi |
| 165 | [[ ${CHOST} == *-darwin* ]] && g=g |
169 | [[ ${CHOST} == *-darwin* ]] && g=g |
| 166 | if ${LIBTOOLIZE:-${g}libtoolize} -n --install >& /dev/null ; then |
170 | if ${LIBTOOLIZE:-${g}libtoolize} -n --install >& /dev/null ; then |
| 167 | _elibtoolize --copy --force --install |
171 | _elibtoolize --copy --force --install |
| 168 | else |
172 | else |
| 169 | _elibtoolize --copy --force |
173 | _elibtoolize --copy --force |