summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Armak <danarmak@gentoo.org>2002-05-25 14:16:30 +0000
committerDan Armak <danarmak@gentoo.org>2002-05-25 14:16:30 +0000
commitd76c528259efa239a18e0ae3e8fb325012501b49 (patch)
tree3d5ced52fb2ad833c14b9c8190d1e99284ce3bd2 /eclass/inherit.eclass
parentadd patches (diff)
downloadhistorical-d76c528259efa239a18e0ae3e8fb325012501b49.tar.gz
historical-d76c528259efa239a18e0ae3e8fb325012501b49.tar.bz2
historical-d76c528259efa239a18e0ae3e8fb325012501b49.zip
remove the actual code, this is just a stub so that oolder ebuilds can be unmerged
Diffstat (limited to 'eclass/inherit.eclass')
-rw-r--r--eclass/inherit.eclass59
1 files changed, 2 insertions, 57 deletions
diff --git a/eclass/inherit.eclass b/eclass/inherit.eclass
index 37f489a2428e..e88cc7720461 100644
--- a/eclass/inherit.eclass
+++ b/eclass/inherit.eclass
@@ -5,63 +5,8 @@
##########################################################################
#
-# This is required as without it older installed packages using the older
-# inherit method cannot be uninstalled!
+# This is required to exitst as without it older installed packages using the older
+# inherit method cannot be uninstalled. However, it doesn't need to contain any code :-)
#
##########################################################################
-# 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.
-
-# Since portage-1.8.9_pre32 eclasses were partially merged with ebuild.sh and this part went there.
-# Since we're providing backward support for rc6 profile/portage-1.8.8 owners till a month after
-# the 1.0 release, I do this which is like a c++ include file's #ifdef...#define...#endif
-
-# $ECLASSDIR is defined in ebuild.sh in new portages. If it isn't there go into compatibility mode,
-# else sourcing this file does nothing
-
-if [ -z "$ECLASSDIR" ]; then
-
- export COMPAT="true"
-
- ECLASS=inherit
- ECLASSDIR=/usr/portage/eclass
-
- inherit() {
-
- while [ "$1" ]; do
-
- # any future resolution code goes here
- local location
- 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"
-
- source "$location" || die "died sourcing $location in $FUNCNAME"
-
- shift
-
- done
-
- }
-
- inherit debug
-
- debug-print "inherit.eclass: compatibility mode set"
-
- EXPORT_FUNCTIONS() {
-
- while [ "$1" ]; do
- debug-print "EXPORT_FUNCTIONS: ${1} -> ${ECLASS}_${1}"
- eval "$1() { ${ECLASS}_$1 ; }" > /dev/null
- shift
- done
-
- }
-
-else
- debug-print "inherit.eclass: new portage detected, taking no action"
-fi