summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Armak <danarmak@gentoo.org>2001-11-16 12:50:42 +0000
committerDan Armak <danarmak@gentoo.org>2001-11-16 12:50:42 +0000
commit7930d078e07a84b308e958b4390b47c464894131 (patch)
tree860c388d37b0f024f9865776bf8113d4dfa47a33 /eclass/base.eclass
parentThis is the big multi-kdelibs & eclasses v4 commit. have fun, send bugreports! (diff)
downloadhistorical-7930d078e07a84b308e958b4390b47c464894131.tar.gz
historical-7930d078e07a84b308e958b4390b47c464894131.tar.bz2
historical-7930d078e07a84b308e958b4390b47c464894131.zip
This is the big multi-kdelibs & eclasses v4 commit. have fun, send bugreports!
Diffstat (limited to 'eclass/base.eclass')
-rw-r--r--eclass/base.eclass17
1 files changed, 16 insertions, 1 deletions
diff --git a/eclass/base.eclass b/eclass/base.eclass
index 45d38ba785f8..b76fffc9bed6 100644
--- a/eclass/base.eclass
+++ b/eclass/base.eclass
@@ -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 <danarmak@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/eclass/base.eclass,v 1.6 2001/10/01 13:54:38 danarmak Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/base.eclass,v 1.7 2001/11/16 12:50:41 danarmak Exp $
# The base eclass defines some default functions and variables. Nearly everything
# else inherits from here.
inherit virtual || die
@@ -90,3 +90,18 @@ 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
+
+}
+