Make econf accept base_src_configure arguments (only >=EAPI-2), fix documentation...
authorMaciej Mrozowski <reavertm@gentoo.org>
Tue, 25 May 2010 20:37:12 +0000 (20:37 +0000)
committerMaciej Mrozowski <reavertm@gentoo.org>
Tue, 25 May 2010 20:37:12 +0000 (20:37 +0000)
eclass/base.eclass

index ae77873504ed59f0bac7babb8448befbe0951e5a..5b8ba10fa081bbd16cdc9d34b6a84cc15926f7b5 100644 (file)
@@ -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.50 2010/04/12 15:33:03 scarabeus Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/base.eclass,v 1.51 2010/05/25 20:37:12 reavertm Exp $
 
 # @ECLASS: base.eclass
 # @MAINTAINER:
@@ -65,7 +65,7 @@ base_src_unpack() {
 # @FUNCTION: base_src_prepare
 # @DESCRIPTION:
 # The base src_prepare function, which is exported
-# EAPI is greater or equal to 2.
+# EAPI is greater or equal to 2. Here the PATCHES array is evaluated.
 base_src_prepare() {
        debug-print-function $FUNCNAME "$@"
        debug-print "$FUNCNAME: PATCHES=$PATCHES"
@@ -116,13 +116,12 @@ base_src_prepare() {
 # @FUNCTION: base_src_configure
 # @DESCRIPTION:
 # The base src_configure function, which is exported when
-# EAPI is greater or equal to 2. Runs basic econf. Here the PATCHES array is
-# evaluated.
+# EAPI is greater or equal to 2. Runs basic econf.
 base_src_configure() {
        debug-print-function $FUNCNAME "$@"
 
        # there is no pushd ${S} so we can override its place where to run
-       [[ -x ${ECONF_SOURCE:-.}/configure ]] && econf
+       [[ -x ${ECONF_SOURCE:-.}/configure ]] && econf $@
 }
 
 # @FUNCTION: base_src_compile