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/base.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/base.eclass')
-rw-r--r--eclass/base.eclass24
1 files changed, 5 insertions, 19 deletions
diff --git a/eclass/base.eclass b/eclass/base.eclass
index 0c630bfe2dce..0550268744b5 100644
--- a/eclass/base.eclass
+++ b/eclass/base.eclass
@@ -1,9 +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.9 2002/01/04 12:06:28 danarmak Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/base.eclass,v 1.10 2002/02/06 20:38:10 danarmak Exp $
# The base eclass defines some default functions and variables. Nearly everything
# else inherits from here.
+inherit functions
ECLASS=base
S=${WORKDIR}/${P}
@@ -17,7 +18,7 @@ base_src_unpack() {
while [ "$1" ]; do
case $1 in
- unpack)
+ unpack)
debug-print-section unpack
unpack ${A}
;;
@@ -30,7 +31,7 @@ base_src_unpack() {
debug-print-section all
base_src_unpack unpack
;;
- esac
+ esac
shift
done
@@ -72,7 +73,7 @@ base_src_install() {
while [ "$1" ]; do
case $1 in
- make)
+ make)
debug-print-section make
make DESTDIR=${D} install || die
;;
@@ -89,18 +90,3 @@ base_src_install() {
EXPORT_FUNCTIONS src_unpack src_compile src_install
-# misc helper functions
-# adds all parameters to DEPEND and RDEPEND
-newdepend() {
-
- debug-print-function newdepend $*
- debug-print "newdepend: DEPEND=$DEPEND RDEPEND=$RDEPEND"
-
- while [ -n "$1" ]; do
- DEPEND="$DEPEND $1"
- RDEPEND="$RDEPEND $1"
- shift
- done
-
-}
-