1 | # Copyright 1999-2010 Gentoo Foundation |
1 | # Copyright 1999-2011 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.104 2011/08/07 22:53:28 vapier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.105 2011/08/22 18:22:27 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 |
… | |
… | |
21 | |
21 | |
22 | # @ECLASS-VARIABLE: WANT_AUTOMAKE |
22 | # @ECLASS-VARIABLE: WANT_AUTOMAKE |
23 | # @DESCRIPTION: |
23 | # @DESCRIPTION: |
24 | # The major version of automake your package needs |
24 | # The major version of automake your package needs |
25 | : ${WANT_AUTOMAKE:=latest} |
25 | : ${WANT_AUTOMAKE:=latest} |
|
|
26 | |
|
|
27 | # @ECLASS-VARIABLE: WANT_LIBTOOL |
|
|
28 | # @DESCRIPTION: |
|
|
29 | # Do you want libtool? Valid values here are "latest" and "none". |
|
|
30 | : ${WANT_LIBTOOL:=latest} |
26 | |
31 | |
27 | # @ECLASS-VARIABLE: _LATEST_AUTOMAKE |
32 | # @ECLASS-VARIABLE: _LATEST_AUTOMAKE |
28 | # @INTERNAL |
33 | # @INTERNAL |
29 | # @DESCRIPTION: |
34 | # @DESCRIPTION: |
30 | # CONSTANT! |
35 | # CONSTANT! |
… | |
… | |
56 | *) _autoconf_atom="INCORRECT-WANT_AUTOCONF-SETTING-IN-EBUILD" ;; |
61 | *) _autoconf_atom="INCORRECT-WANT_AUTOCONF-SETTING-IN-EBUILD" ;; |
57 | esac |
62 | esac |
58 | export WANT_AUTOCONF |
63 | export WANT_AUTOCONF |
59 | fi |
64 | fi |
60 | |
65 | |
|
|
66 | _libtool_atom="sys-devel/libtool" |
|
|
67 | if [[ -n ${WANT_LIBTOOL} ]] ; then |
|
|
68 | case ${WANT_LIBTOOL} in |
|
|
69 | none) _libtool_atom="" ;; |
|
|
70 | latest) ;; |
|
|
71 | *) _libtool_atom="INCORRECT-WANT_LIBTOOL-SETTING-IN-EBUILD" ;; |
|
|
72 | esac |
|
|
73 | export WANT_LIBTOOL |
|
|
74 | fi |
|
|
75 | |
61 | AUTOTOOLS_DEPEND="${_automake_atom} ${_autoconf_atom}" |
76 | AUTOTOOLS_DEPEND="${_automake_atom} ${_autoconf_atom} ${_libtool_atom}" |
62 | [[ ${CATEGORY}/${PN} != "sys-devel/libtool" ]] && AUTOTOOLS_DEPEND="${AUTOTOOLS_DEPEND} >=sys-devel/libtool-2.2.6b" |
|
|
63 | RDEPEND="" |
77 | RDEPEND="" |
64 | |
78 | |
65 | # @ECLASS-VARIABLE: AUTOTOOLS_AUTO_DEPEND |
79 | # @ECLASS-VARIABLE: AUTOTOOLS_AUTO_DEPEND |
66 | # @DESCRIPTION: |
80 | # @DESCRIPTION: |
67 | # Set to 'no' to disable automatically adding to DEPEND. This lets |
81 | # Set to 'no' to disable automatically adding to DEPEND. This lets |