/[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.14
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.14 2002/05/21 18:14:08 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
8ECLASS=base 7ECLASS=base
9 8
10S=${WORKDIR}/${P} 9S=${WORKDIR}/${P}
11DESCRIPTION="Based on the $ECLASS eclass" 10DESCRIPTION="Based on the $ECLASS eclass"
12 11
13base_src_unpack() { 12base_src_unpack() {
14 13
15 debug-print-function base_src_unpack $* 14 debug-print-function $FUNCNAME $*
16 [ -z "$1" ] && base_src_unpack all 15 [ -z "$1" ] && base_src_unpack all
16
17 cd ${WORKDIR}
17 18
18 while [ "$1" ]; do 19 while [ "$1" ]; do
19 20
20 case $1 in 21 case $1 in
21 unpack) 22 unpack)
22 debug-print-section unpack 23 debug-print-section unpack
23 unpack ${A} 24 unpack ${A}
24 ;; 25 ;;
25 patch) 26 patch)
26 debug-print-section patch 27 debug-print-section patch
29 ;; 30 ;;
30 all) 31 all)
31 debug-print-section all 32 debug-print-section all
32 base_src_unpack unpack 33 base_src_unpack unpack
33 ;; 34 ;;
34 esac 35 esac
35 36
36 shift 37 shift
37 done 38 done
38 39
39} 40}
40 41
41base_src_compile() { 42base_src_compile() {
42 43
43 debug-print-function base_src_compile $* 44 debug-print-function $FUNCNAME $*
44 [ -z "$1" ] && base_src_compile all 45 [ -z "$1" ] && base_src_compile all
46
47 cd ${S}
45 48
46 while [ "$1" ]; do 49 while [ "$1" ]; do
47 50
48 case $1 in 51 case $1 in
49 configure) 52 configure)
50 debug-print-section configure 53 debug-print-section configure
51 ./configure || die 54 econf || die "died running econf, $FUNCNAME:configure"
52 ;; 55 ;;
53 make) 56 make)
54 debug-print-section make 57 debug-print-section make
55 make || die 58 emake || die "died running emake, $FUNCNAME:make"
56 ;; 59 ;;
57 all) 60 all)
58 debug-print-section all 61 debug-print-section all
59 base_src_compile configure make 62 base_src_compile configure make
60 ;; 63 ;;
65 68
66} 69}
67 70
68base_src_install() { 71base_src_install() {
69 72
70 debug-print-function base_src_install $* 73 debug-print-function $FUNCNAME $*
71 [ -z "$1" ] && base_src_install all 74 [ -z "$1" ] && base_src_install all
75
76 cd ${S}
72 77
73 while [ "$1" ]; do 78 while [ "$1" ]; do
74 79
75 case $1 in 80 case $1 in
76 make) 81 make)
77 debug-print-section make 82 debug-print-section make
78 make DESTDIR=${D} install || die 83 make DESTDIR=${D} install || die "died running make install, $FUNCNAME:make"
79 ;; 84 ;;
80 all) 85 all)
81 debug-prnit-section all 86 debug-print-section all
82 base_src_install make 87 base_src_install make
83 ;; 88 ;;
84 esac 89 esac
85 90
86 shift 91 shift
87 done 92 done
88 93
89} 94}
90 95
91EXPORT_FUNCTIONS src_unpack src_compile src_install 96EXPORT_FUNCTIONS src_unpack src_compile src_install
92

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

  ViewVC Help
Powered by ViewVC 1.1.20