/[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.8
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.8 2001/12/22 14:52:29 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
10S=${WORKDIR}/${P} 10S=${WORKDIR}/${P}
11DESCRIPTION="Based on the $ECLASS eclass" 11DESCRIPTION="Based on the $ECLASS eclass"
12 12
13base_src_unpack() { 13base_src_unpack() {
14 14
15 debug-print-function base_src_unpack $* 15 debug-print-function $FUNCNAME $*
16 [ -z "$1" ] && base_src_unpack all 16 [ -z "$1" ] && base_src_unpack all
17 17
18 while [ "$1" ]; do 18 while [ "$1" ]; do
19 19
20 case $1 in 20 case $1 in
38 38
39} 39}
40 40
41base_src_compile() { 41base_src_compile() {
42 42
43 debug-print-function base_src_compile $* 43 debug-print-function $FUNCNAME $*
44 [ -z "$1" ] && base_src_compile all 44 [ -z "$1" ] && base_src_compile all
45 45
46 while [ "$1" ]; do 46 while [ "$1" ]; do
47 47
48 case $1 in 48 case $1 in
65 65
66} 66}
67 67
68base_src_install() { 68base_src_install() {
69 69
70 debug-print-function base_src_install $* 70 debug-print-function $FUNCNAME $*
71 [ -z "$1" ] && base_src_install all 71 [ -z "$1" ] && base_src_install all
72 72
73 while [ "$1" ]; do 73 while [ "$1" ]; do
74 74
75 case $1 in 75 case $1 in
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.8

  ViewVC Help
Powered by ViewVC 1.1.20