| 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.40 2006/09/16 21:23:32 vapier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.41 2006/09/20 15:10:03 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 |
| … | |
… | |
| 13 | inherit eutils libtool |
13 | inherit eutils libtool |
| 14 | |
14 | |
| 15 | _automake_atom="sys-devel/automake" |
15 | _automake_atom="sys-devel/automake" |
| 16 | _autoconf_atom="sys-devel/autoconf" |
16 | _autoconf_atom="sys-devel/autoconf" |
| 17 | [[ -n ${WANT_AUTOMAKE} ]] && _automake_atom="=sys-devel/automake-${WANT_AUTOMAKE}*" |
17 | [[ -n ${WANT_AUTOMAKE} ]] && _automake_atom="=sys-devel/automake-${WANT_AUTOMAKE}*" |
| 18 | [[ -n ${WANT_AUTOCONF} ]] && _autoconf_atom="=sys-devel/autoconf-${WANT_AUTOCONF}*" |
18 | if [[ -n ${WANT_AUTOCONF} ]]; then |
|
|
19 | case ${WANT_AUTOCONF} in |
|
|
20 | 2.1) _autoconf_atom="=sys-devel/autoconf-${WANT_AUTOCONF}*" ;; |
|
|
21 | 2.5) _autoconf_atom=">=sys-devel/autoconf-2.5" ;; |
|
|
22 | esac |
|
|
23 | fi |
| 19 | DEPEND="${_automake_atom} |
24 | DEPEND="${_automake_atom} |
| 20 | ${_autoconf_atom} |
25 | ${_autoconf_atom} |
| 21 | sys-devel/libtool" |
26 | sys-devel/libtool" |
| 22 | unset _automake_atom _autoconf_atom |
27 | unset _automake_atom _autoconf_atom |
| 23 | |
28 | |