avoid multiple inclusions when possible to speed caching up
authorMike Frysinger <vapier@gentoo.org>
Sat, 10 Dec 2011 20:03:17 +0000 (20:03 +0000)
committerMike Frysinger <vapier@gentoo.org>
Sat, 10 Dec 2011 20:03:17 +0000 (20:03 +0000)
eclass/flag-o-matic.eclass
eclass/portability.eclass
eclass/user.eclass

index e70770d41768cb857359b7898a8f0226753a309a..5fbb60770bdf76bedf9841255f4ebf4088aaad62 100644 (file)
@@ -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/flag-o-matic.eclass,v 1.159 2011/12/07 06:42:40 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.160 2011/12/10 20:03:17 vapier Exp $
 
 # @ECLASS: flag-o-matic.eclass
 # @MAINTAINER:
@@ -10,6 +10,9 @@
 # This eclass contains a suite of functions to help developers sanely
 # and safely manage toolchain flags in their builds.
 
+if [[ ${___ECLASS_ONCE_FLAG_O_MATIC} != "recur -_+^+_- spank" ]] ; then
+___ECLASS_ONCE_FLAG_O_MATIC="recur -_+^+_- spank"
+
 inherit eutils toolchain-funcs multilib
 
 ################ DEPRECATED functions ################
@@ -709,3 +712,5 @@ no-as-needed() {
 #      echo "All tests pass"
 #}
 #TESTS
+
+fi
index 54c7619e308af06570107d55e166841cdd61aa35..5aee01e7ad480c66b27c9972adc4e8093954fb23 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/portability.eclass,v 1.21 2011/11/03 00:59:16 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/portability.eclass,v 1.22 2011/12/10 20:03:17 vapier Exp $
 #
 # Author: Diego Pettenò <flameeyes@gentoo.org>
 #
@@ -8,6 +8,9 @@
 #
 # NB:  If you add anything, please comment it!
 
+if [[ ${___ECLASS_ONCE_PORTABILITY} != "recur -_+^+_- spank" ]] ; then
+___ECLASS_ONCE_PORTABILITY="recur -_+^+_- spank"
+
 # treecopy orig1 orig2 orig3 .... dest
 #
 # mimic cp --parents copy, but working on BSD userland as well
@@ -130,3 +133,5 @@ get_mounts() {
 
 _dead_portability_user_funcs() { die "if you really need this, please file a bug for base-system@gentoo.org"; }
 is-login-disabled() { _dead_portability_user_funcs; }
+
+fi
index 7973f382e1fce603168500c9fc302f547a2ee68c..2b1fd0c3f5b4ed6fe766fc2661d5d2258e6b4959 100644 (file)
@@ -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/user.eclass,v 1.17 2011/11/29 19:32:23 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/user.eclass,v 1.18 2011/12/10 20:03:17 vapier Exp $
 
 # @ECLASS: user.eclass
 # @MAINTAINER:
@@ -13,6 +13,9 @@
 # The user eclass contains a suite of functions that allow ebuilds
 # to quickly make sure users in the installed system are sane.
 
+if [[ ${___ECLASS_ONCE_USER} != "recur -_+^+_- spank" ]] ; then
+___ECLASS_ONCE_USER="recur -_+^+_- spank"
+
 # @FUNCTION: _assert_pkg_ebuild_phase
 # @INTERNAL
 # @USAGE: <calling func name>
@@ -383,3 +386,5 @@ egetshell() {
 
        egetent passwd "$1" | cut -d: -f${pos}
 }
+
+fi