summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Armak <danarmak@gentoo.org>2002-02-06 20:38:10 +0000
committerDan Armak <danarmak@gentoo.org>2002-02-06 20:38:10 +0000
commit15e77ca8e373323bcd0f5da044a7bec387e898be (patch)
tree35f5b939058cd01e9239fdadb8a99e343581c5e2 /eclass/inherit.eclass
parentportage-1.8.9_pre5 fixes a few bugs (diff)
downloadhistorical-15e77ca8e373323bcd0f5da044a7bec387e898be.tar.gz
historical-15e77ca8e373323bcd0f5da044a7bec387e898be.tar.bz2
historical-15e77ca8e373323bcd0f5da044a7bec387e898be.zip
major eclass cleanup/restructuring. no change ni inheriting ebuilds necessary. more details shortly in updated docs
and in coming up gentoo-dev post.
Diffstat (limited to 'eclass/inherit.eclass')
-rw-r--r--eclass/inherit.eclass18
1 files changed, 14 insertions, 4 deletions
diff --git a/eclass/inherit.eclass b/eclass/inherit.eclass
index 60871987d54f..b2f934501da7 100644
--- a/eclass/inherit.eclass
+++ b/eclass/inherit.eclass
@@ -1,7 +1,7 @@
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Dan Armak <danarmak@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/eclass/inherit.eclass,v 1.11 2002/01/25 19:00:31 danarmak Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/inherit.eclass,v 1.12 2002/02/06 20:38:10 danarmak Exp $
# This eclass provides the inherit() function. In the future it will be placed in ebuild.sh, but for now drobbins
# doesn't want to make a new portage just for my testing, so every eclass/ebuild will source this file manually and
# then inherit(). This way when the time comes for this to move into ebuild.sh, we can just delete the source lines.
@@ -14,13 +14,23 @@ inherit() {
while [ "$1" ]; do
location="${ECLASSDIR}/${1}.eclass"
# for now, disable by deafult because it creates a lot extra sourcing. (get debug lvels there already!)
- # . ${ECLASSDIR}/debug.eclass
- # debug-print "inherit: $1 -> $location"
+ #. ${ECLASSDIR}/debug.eclass
+ #debug-print "inherit: $1 -> $location"
source "$location" || die
shift
done
}
-inherit virtual
+inherit debug
+
+EXPORT_FUNCTIONS() {
+
+ while [ "$1" ]; do
+ debug-print "EXPORT_FUNCTIONS: ${1} -> ${ECLASS}_${1}"
+ eval "$1() { ${ECLASS}_$1 ; }" > /dev/null
+ shift
+ done
+
+}