allow ebuilds to force autotool regen
authorMike Frysinger <vapier@gentoo.org>
Wed, 8 Nov 2006 07:24:41 +0000 (07:24 +0000)
committerMike Frysinger <vapier@gentoo.org>
Wed, 8 Nov 2006 07:24:41 +0000 (07:24 +0000)
eclass/enlightenment.eclass

index 099ce7e66943a8b7d448a465510c876808709d6e..0aa0b71abd1c6c15537d463ee90cf7719523886a 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2006 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/enlightenment.eclass,v 1.67 2006/11/04 10:14:35 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/enlightenment.eclass,v 1.68 2006/11/08 07:24:41 vapier Exp $
 #
 # Author: vapier@gentoo.org
 
@@ -44,15 +44,19 @@ if [[ ${PV/9999} != ${PV} ]] ; then
        fi
        ECVS_SERVER=${E17_ECVS_SERVER:-${ECVS_SERVER:-${E17_DEFAULT_CVS}}}
        ECVS_STATE="live"
-       WANT_AUTOCONF=${E17_WANT_AUTOCONF:-latest}
-       WANT_AUTOMAKE=${E17_WANT_AUTOMAKE:-latest}
-       inherit cvs autotools
+       WANT_AUTOTOOLS="yes"
+       inherit cvs
 elif [[ ${PV/.200[3-9][0-1][0-9][0-3][0-9]/} != ${PV} ]] ; then
        ECVS_STATE="snap"
 elif [[ ${PV%%.[0-9][0-9][0-9]} != ${PV} ]] ; then
        ECVS_STATE="snap"
        EURI_STATE="release"
 fi
+if [[ ${WANT_AUTOTOOLS} == "yes" ]] ; then
+       WANT_AUTOCONF=${E17_WANT_AUTOCONF:-latest}
+       WANT_AUTOMAKE=${E17_WANT_AUTOMAKE:-latest}
+       inherit autotools
+fi
 
 DESCRIPTION="A DR17 production"
 HOMEPAGE="http://www.enlightenment.org/"
@@ -143,6 +147,8 @@ enlightenment_src_compile() {
                        rm -f ${x}
                        touch ${x}
                done
+       elif [[ ${WANT_AUTOTOOLS} == "yes" ]] ; then
+               eautoreconf
        fi
        epunt_cxx
        elibtoolize