--- eclass/base.eclass 2001/09/28 23:07:35 1.3 +++ eclass/base.eclass 2001/09/29 12:35:38 1.4 @@ -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 -# $Header: /var/cvsroot/gentoo-x86/eclass/base.eclass,v 1.3 2001/09/28 23:07:35 danarmak dead $ +# $Header: /var/cvsroot/gentoo-x86/eclass/base.eclass,v 1.4 2001/09/29 12:35:38 danarmak Exp $ # The base eclass defines some default functions and variables. Nearly everything # else inherits from here. . /usr/portage/eclass/inherit.eclass || die @@ -13,16 +13,21 @@ base_src_unpack() { + echo "in base_src_unpack, 1st parameter is $1" + [ -z "$1" ] && base_src_unpack all + while [ "$1" ]; do case $1 in unpack) + echo "in base_src_unpack, action unpack" unpack ${A} ;; all) + echo "in base_src_unpack, action all" base_src_unpack unpack ;; - esac + esac shift done @@ -30,17 +35,23 @@ } base_src_compile() { + + echo "in base_src_compile, 1st parameter is $1" + [ -z "$1" ] && base_src_compile all while [ "$1" ]; do case $1 in configure) - configure || die + echo "in base_src_compile, action configure" + ./configure || die ;; make) + echo "in base_src_compile, action make" make || die ;; all) + echo "in base_src_compile, action all" base_src_compile configure make ;; esac @@ -52,13 +63,18 @@ base_src_install() { + echo "in base_src_install, 1st parameter is $1" + [ -z "$1" ] && base_src_install all + while [ "$1" ]; do case $1 in make) + echo "in base_src_install, action make" make DESTDIR=${D} install || die ;; all) + echo "in base_src_install, action all" base_src_install make ;; esac @@ -68,5 +84,5 @@ } -EXPORT_FUNCTIONS +EXPORT_FUNCTIONS src_unpack src_compile src_install