1 |
sometimes i have optional patches (ignoring the "patches should always be |
2 |
applied") where autotools should be run. always inheriting autotools is |
3 |
currently annoying because it always adds the related dependencies. USE based |
4 |
inherits are obviously out. |
5 |
|
6 |
so unless there's some burgeoning standard i'm not aware of, below is what i |
7 |
have in mind. packages set AUTOTOOLS_AUTO_DEPEND to "no" before inheriting |
8 |
autotools.eclass and that allows them to put ${AUTOTOOLS_DEPEND} behind a USE |
9 |
flag in their own DEPEND string. |
10 |
|
11 |
--- autotools.eclass 8 Feb 2010 11:04:01 -0000 1.92 |
12 |
+++ autotools.eclass 5 Mar 2010 18:09:54 -0000 |
13 |
@@ -46,10 +46,20 @@ if [[ -n ${WANT_AUTOCONF} ]] ; then |
14 |
esac |
15 |
export WANT_AUTOCONF |
16 |
fi |
17 |
-DEPEND="${_automake_atom} |
18 |
- ${_autoconf_atom}" |
19 |
-[[ ${CATEGORY}/${PN} != "sys-devel/libtool" ]] && DEPEND="${DEPEND} >=sys-devel/libtool-2.2.6b" |
20 |
+ |
21 |
+AUTOTOOLS_DEPEND="${_automake_atom} ${_autoconf_atom}" |
22 |
+[[ ${CATEGORY}/${PN} != "sys-devel/libtool" ]] && AUTOTOOLS_DEPEND="${AUTOTOOLS_DEPEND} |
23 |
>=sys-devel/libtool-2.2.6b" |
24 |
RDEPEND="" |
25 |
+ |
26 |
+# @ECLASS-VARIABLE: AUTOTOOLS_AUTO_DEPEND |
27 |
+# @DESCRIPTION: |
28 |
+# Set to 'no' to disable automatically adding to DEPEND. This lets |
29 |
+# ebuilds former conditional depends by using ${AUTOTOOLS_DEPEND} in |
30 |
+# their own DEPEND string. |
31 |
+if [[ ${AUTOTOOLS_AUTO_DEPEND} != "no" ]] ; then |
32 |
+ DEPEND=${AUTOTOOLS_AUTO_DEPEND} |
33 |
+fi |
34 |
+ |
35 |
unset _automake_atom _autoconf_atom |
36 |
|
37 |
# @ECLASS-VARIABLE: AM_OPTS |
38 |
-mike |