diff options
author | Dan Armak <danarmak@gentoo.org> | 2002-03-27 22:33:54 +0000 |
---|---|---|
committer | Dan Armak <danarmak@gentoo.org> | 2002-03-27 22:33:54 +0000 |
commit | 0b6b2c69545934fdcde49c4b1e482f7f2737862f (patch) | |
tree | 863f08c2c1cb4823f1b07d031c2d56ec4ea4b7fc /eclass/base.eclass | |
parent | man page/LFH fixes (diff) | |
download | historical-0b6b2c69545934fdcde49c4b1e482f7f2737862f.tar.gz historical-0b6b2c69545934fdcde49c4b1e482f7f2737862f.tar.bz2 historical-0b6b2c69545934fdcde49c4b1e482f7f2737862f.zip |
big commit that makes eclasses work wth both old portages (1.8.8, rc6 profile) and the new ones
(>=1.8.9_pre32, 1.0 profile). the latter have some parts of the eclasses in ebuild.sh. Now i ahve a
unified code base and commit changes easily.
Diffstat (limited to 'eclass/base.eclass')
-rw-r--r-- | eclass/base.eclass | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/eclass/base.eclass b/eclass/base.eclass index 6b6a9e33a86a..f06cf8e6719b 100644 --- a/eclass/base.eclass +++ b/eclass/base.eclass @@ -1,10 +1,10 @@ # 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/base.eclass,v 1.11 2002/02/07 18:52:18 danarmak Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/base.eclass,v 1.12 2002/03/27 22:33:53 danarmak Exp $ # The base eclass defines some default functions and variables. Nearly everything # else inherits from here. -inherit functions +[ -n "$COMPAT" ] && inherit functions ECLASS=base S=${WORKDIR}/${P} @@ -15,6 +15,8 @@ base_src_unpack() { debug-print-function $FUNCNAME $* [ -z "$1" ] && base_src_unpack all + cd ${WORKDIR} + while [ "$1" ]; do case $1 in @@ -40,9 +42,11 @@ base_src_unpack() { base_src_compile() { - debug-print-function $FUNCNAME $* + debug-print-function $FUNCNAME $* [ -z "$1" ] && base_src_compile all + cd ${S} + while [ "$1" ]; do case $1 in @@ -70,6 +74,8 @@ base_src_install() { debug-print-function $FUNCNAME $* [ -z "$1" ] && base_src_install all + cd ${S} + while [ "$1" ]; do case $1 in @@ -89,4 +95,3 @@ base_src_install() { } EXPORT_FUNCTIONS src_unpack src_compile src_install - |