From: Mike Frysinger Date: Tue, 13 Dec 2011 21:28:15 +0000 (+0000) Subject: avoid multiple inclusions when possible to speed caching up X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=77676c3da854337104d5237e3110f832660d2f0a;p=gentoo.git avoid multiple inclusions when possible to speed caching up --- diff --git a/eclass/autotools.eclass b/eclass/autotools.eclass index 5ee2a3e976e8..b8b878c7e695 100644 --- a/eclass/autotools.eclass +++ b/eclass/autotools.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.110 2011/11/14 17:08:49 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.111 2011/12/13 21:27:38 vapier Exp $ # @ECLASS: autotools.eclass # @MAINTAINER: @@ -10,6 +10,9 @@ # This eclass is for safely handling autotooled software packages that need to # regenerate their build scripts. All functions will abort in case of errors. +if [[ ${___ECLASS_ONCE_AUTOTOOLS} != "recur -_+^+_- spank" ]] ; then +___ECLASS_ONCE_AUTOTOOLS="recur -_+^+_- spank" + inherit eutils libtool # @ECLASS-VARIABLE: WANT_AUTOCONF @@ -399,3 +402,5 @@ autotools_m4dir_include() { echo $include_opts } + +fi diff --git a/eclass/libtool.eclass b/eclass/libtool.eclass index 097612eacc9e..2c4188b752eb 100644 --- a/eclass/libtool.eclass +++ b/eclass/libtool.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.96 2011/11/18 17:32:14 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.97 2011/12/13 21:28:15 vapier Exp $ # @ECLASS: libtool.eclass # @MAINTAINER: @@ -14,6 +14,9 @@ # generated libtool files. We do not run the libtoolize program because that # requires a regeneration of the main autotool files in order to work properly. +if [[ ${___ECLASS_ONCE_LIBTOOL} != "recur -_+^+_- spank" ]] ; then +___ECLASS_ONCE_LIBTOOL="recur -_+^+_- spank" + # If an overlay has eclass overrides, but doesn't actually override the # libtool.eclass, we'll have ECLASSDIR pointing to the active overlay's # eclass/ dir, but libtool.eclass is still in the main Gentoo tree. So @@ -497,3 +500,5 @@ VER_to_int() { echo 1 return 1 } + +fi