/[gentoo-x86]/eclass/base.eclass
Gentoo

Diff of /eclass/base.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.6 Revision 1.7
1# Copyright 1999-2000 Gentoo Technologies, Inc. 1# Copyright 1999-2000 Gentoo Technologies, Inc.
2# Distributed under the terms of the GNU General Public License, v2 or later 2# Distributed under the terms of the GNU General Public License, v2 or later
3# Author Dan Armak <danarmak@gentoo.org> 3# Author Dan Armak <danarmak@gentoo.org>
4# $Header: /var/cvsroot/gentoo-x86/eclass/base.eclass,v 1.6 2001/10/01 13:54:38 danarmak Exp $ 4# $Header: /var/cvsroot/gentoo-x86/eclass/base.eclass,v 1.7 2001/11/16 12:50:41 danarmak Exp $
5# The base eclass defines some default functions and variables. Nearly everything 5# The base eclass defines some default functions and variables. Nearly everything
6# else inherits from here. 6# else inherits from here.
7inherit virtual || die 7inherit virtual || die
8ECLASS=base 8ECLASS=base
9 9
88 88
89} 89}
90 90
91EXPORT_FUNCTIONS src_unpack src_compile src_install 91EXPORT_FUNCTIONS src_unpack src_compile src_install
92 92
93# misc helper functions
94# adds all parameters to DEPEND and RDEPEND
95newdepend() {
96
97 debug-print-function newdepend $*
98 debug-print "newdepend: DEPEND=$DEPEND RDEPEND=$RDEPEND"
99
100 while [ -n "$1" ]; do
101 DEPEND="$DEPEND $1"
102 RDEPEND="$RDEPEND $1"
103 shift
104 done
105
106}
107

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.20