Bug #179380 - Make the default src_compile() support ECONF_SOURCE
authorZac Medico <zmedico@gentoo.org>
Wed, 3 Oct 2007 16:19:14 +0000 (16:19 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 3 Oct 2007 16:19:14 +0000 (16:19 -0000)
if EAPI > 0. (trunk r6567)

svn path=/main/branches/2.1.2/; revision=7906

bin/ebuild.sh

index 233149f5411aa006e3030edfb4d134e2a4d344a1..79bfaf062bb6d422732c9277692578cd7025431c 100755 (executable)
@@ -685,7 +685,9 @@ src_unpack() {
 }
 
 src_compile() {
-       if [ -x ./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