diff options
author | Dan Armak <danarmak@gentoo.org> | 2002-01-25 17:42:01 +0000 |
---|---|---|
committer | Dan Armak <danarmak@gentoo.org> | 2002-01-25 17:42:01 +0000 |
commit | b5acd41f80a610b8da73f3b73b1602cff0fee2cc (patch) | |
tree | 9d4d3f6aa1e081eed5160cfa7ddee32fd128fee6 /eclass/inherit.eclass | |
parent | Latest version. (diff) | |
download | gentoo-2-b5acd41f80a610b8da73f3b73b1602cff0fee2cc.tar.gz gentoo-2-b5acd41f80a610b8da73f3b73b1602cff0fee2cc.tar.bz2 gentoo-2-b5acd41f80a610b8da73f3b73b1602cff0fee2cc.zip |
typo fixes, remove unmaintained news.txt
Diffstat (limited to 'eclass/inherit.eclass')
-rw-r--r-- | eclass/inherit.eclass | 53 |
1 files changed, 4 insertions, 49 deletions
diff --git a/eclass/inherit.eclass b/eclass/inherit.eclass index 7d5f8b8e10f7..cc962b74bbd3 100644 --- a/eclass/inherit.eclass +++ b/eclass/inherit.eclass @@ -1,10 +1,11 @@ # 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.9 2002/01/04 12:06:28 danarmak Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/inherit.eclass,v 1.10 2002/01/25 17:42:01 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 tmie comes for this to move into stable ebuild.sh, we can just delete the source lines. +# then inherit(). This way when the time comes for this to move into ebuild.sh, we can just delete the source lines. +ECLASS=inherit ECLASSDIR=/usr/portage/eclass @@ -21,51 +22,5 @@ inherit() { } -# this was once virtual.eclass, now merged -# provides empty functions that call debug-print-function and the EXPORT_FUNCTIONS() implementation - -inherit debug - -ECLASS=virtual - -DESCRIPTION="Based on the $ECLASS eclass." - -virtual_src_unpack() { -debug-print-function $FUNCNAME $* -} -virtual_src_compile() { -debug-print-function $FUNCNAME $* -} -virtual_src_install() { -debug-print-function $FUNCNAME $* -} -virtual_pkg_preinst() { -debug-print-function $FUNCNAME $* -} -virtual_pkg_postinst() { -debug-print-function $FUNCNAME $* -} -virtual_pkg_prerm() { -debug-print-function $FUNCNAME $* -} -virtual_pkg_postrm() { -debug-print-function $FUNCNAME $* -} - -# EXPORT_FUNCTIONS trick -# This is the global part, defined here only. - -EXPORT_FUNCTIONS() { - - while [ "$1" ]; do - debug-print "EXPORT_FUNCTIONS: ${1} -> ${ECLASS}_${1}" - eval "$1() { ${ECLASS}_$1 ; }" > /dev/null - shift - done - -} - - -# This part should be repeated for every eclass inheriting from here. -EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_preinst pkg_postinst pkg_prerm pkg_postrm +inherit virtual debug |