diff options
author | 2009-01-18 18:21:08 +0000 | |
---|---|---|
committer | 2009-01-18 18:21:08 +0000 | |
commit | 33ff243689a8f3bbd05be768d53eb5fa17e71ea1 (patch) | |
tree | 7678199252277c150b4f948d294f8baafcae9862 /eclass | |
parent | Replace references of xmms with audacious by default. Remove unused part of t... (diff) | |
download | historical-33ff243689a8f3bbd05be768d53eb5fa17e71ea1.tar.gz historical-33ff243689a8f3bbd05be768d53eb5fa17e71ea1.tar.bz2 historical-33ff243689a8f3bbd05be768d53eb5fa17e71ea1.zip |
Rip default() functions so we only run econf and emake if the appropriate files exist.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/base.eclass | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/eclass/base.eclass b/eclass/base.eclass index 0f72ec7536fa..d54b5b3e0bae 100644 --- a/eclass/base.eclass +++ b/eclass/base.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/base.eclass,v 1.36 2009/01/17 16:56:55 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/base.eclass,v 1.37 2009/01/18 18:21:08 loki_val Exp $ # @ECLASS: base.eclass # @MAINTAINER: @@ -166,11 +166,17 @@ base_src_work() { case $1 in configure) debug-print-section configure - econf || die "died running econf, $FUNCNAME:configure" + if [[ -x ${ECONF_SOURCE:-.}/configure ]] + then + econf || die "died running econf, $FUNCNAME:configure" + fi ;; make) debug-print-section make - emake || die "died running emake, $FUNCNAME:make" + if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ] + then + emake || die "died running emake, $FUNCNAME:make" + fi ;; all) debug-print-section all |