summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-03-07 17:42:39 +0000
committerMike Frysinger <vapier@gentoo.org>2010-03-07 17:42:39 +0000
commit08a50ac3026af89dd461878436e0feaaabb34d88 (patch)
tree1f1008d6e5385ff041346a75f21b9c978a15699b /eclass
parentVersion bump #305143 by Xake. (diff)
downloadgentoo-2-08a50ac3026af89dd461878436e0feaaabb34d88.tar.gz
gentoo-2-08a50ac3026af89dd461878436e0feaaabb34d88.tar.bz2
gentoo-2-08a50ac3026af89dd461878436e0feaaabb34d88.zip
let people make the autotool dependencies optional in their ebuilds
Diffstat (limited to 'eclass')
-rw-r--r--eclass/autotools.eclass18
1 files changed, 14 insertions, 4 deletions
diff --git a/eclass/autotools.eclass b/eclass/autotools.eclass
index 9aad9813e8e6..fafecc500b3c 100644
--- a/eclass/autotools.eclass
+++ b/eclass/autotools.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.92 2010/02/08 11:04:01 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.93 2010/03/07 17:42:39 vapier Exp $
# @ECLASS: autotools.eclass
# @MAINTAINER:
@@ -46,10 +46,20 @@ if [[ -n ${WANT_AUTOCONF} ]] ; then
esac
export WANT_AUTOCONF
fi
-DEPEND="${_automake_atom}
- ${_autoconf_atom}"
-[[ ${CATEGORY}/${PN} != "sys-devel/libtool" ]] && DEPEND="${DEPEND} >=sys-devel/libtool-2.2.6b"
+
+AUTOTOOLS_DEPEND="${_automake_atom} ${_autoconf_atom}"
+[[ ${CATEGORY}/${PN} != "sys-devel/libtool" ]] && AUTOTOOLS_DEPEND="${AUTOTOOLS_DEPEND} >=sys-devel/libtool-2.2.6b"
RDEPEND=""
+
+# @ECLASS-VARIABLE: AUTOTOOLS_AUTO_DEPEND
+# @DESCRIPTION:
+# Set to 'no' to disable automatically adding to DEPEND. This lets
+# ebuilds former conditional depends by using ${AUTOTOOLS_DEPEND} in
+# their own DEPEND string.
+if [[ ${AUTOTOOLS_AUTO_DEPEND} != "no" ]] ; then
+ DEPEND=${AUTOTOOLS_DEPEND}
+fi
+
unset _automake_atom _autoconf_atom
# @ECLASS-VARIABLE: AM_OPTS