Fix src_compile() ECONF_SOURCE logic to make sure it behaves properly.
authorZac Medico <zmedico@gentoo.org>
Tue, 22 May 2007 05:38:12 +0000 (05:38 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 22 May 2007 05:38:12 +0000 (05:38 -0000)
svn path=/main/trunk/; revision=6567

bin/ebuild.sh

index 27dce2e28045a28aaa938be6bc0bc229b2d16a8f..33c6915be15ed23fd7d59e32ca08cf746aef5aba 100755 (executable)
@@ -565,9 +565,9 @@ src_unpack() {
 }
 
 src_compile() {
-       if [ -x ./configure ] ; then
-               econf
-       elif [ "${EAPI:-0}" != 0 ] && [ -x "${ECONF_SOURCE:-.}/configure" ] ; then
+       if [ "${EAPI:-0}" == 0 ] ; then
+               [ -x ./configure ] && econf
+       elif [ -x "${ECONF_SOURCE:-.}/configure" ] ; then
                econf
        fi
        if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then