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

Diff of /eclass/base.eclass

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

Revision 1.11 Revision 1.12
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.11 2002/02/07 18:52:18 danarmak Exp $ 4# $Header: /var/cvsroot/gentoo-x86/eclass/base.eclass,v 1.12 2002/03/27 22:33:53 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 functions 7[ -n "$COMPAT" ] && inherit functions
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 $FUNCNAME $* 15 debug-print-function $FUNCNAME $*
16 [ -z "$1" ] && base_src_unpack all 16 [ -z "$1" ] && base_src_unpack all
17
18 cd ${WORKDIR}
17 19
18 while [ "$1" ]; do 20 while [ "$1" ]; do
19 21
20 case $1 in 22 case $1 in
21 unpack) 23 unpack)
38 40
39} 41}
40 42
41base_src_compile() { 43base_src_compile() {
42 44
43 debug-print-function $FUNCNAME $* 45 debug-print-function $FUNCNAME $*
44 [ -z "$1" ] && base_src_compile all 46 [ -z "$1" ] && base_src_compile all
47
48 cd ${S}
45 49
46 while [ "$1" ]; do 50 while [ "$1" ]; do
47 51
48 case $1 in 52 case $1 in
49 configure) 53 configure)
68base_src_install() { 72base_src_install() {
69 73
70 debug-print-function $FUNCNAME $* 74 debug-print-function $FUNCNAME $*
71 [ -z "$1" ] && base_src_install all 75 [ -z "$1" ] && base_src_install all
72 76
77 cd ${S}
78
73 while [ "$1" ]; do 79 while [ "$1" ]; do
74 80
75 case $1 in 81 case $1 in
76 make) 82 make)
77 debug-print-section make 83 debug-print-section make
87 done 93 done
88 94
89} 95}
90 96
91EXPORT_FUNCTIONS src_unpack src_compile src_install 97EXPORT_FUNCTIONS src_unpack src_compile src_install
92

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

  ViewVC Help
Powered by ViewVC 1.1.20