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

Contents of /eclass/base.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (hide annotations) (download)
Tue May 21 18:14:08 2002 UTC (12 years, 4 months ago) by danarmak
Branch: MAIN
Changes since 1.13: +1 -2 lines
eclass update - removing old eclasses (debug,inherit,functions) for which support is in potage proper
(>=1.8.9_pre32). this breaks support for older portages i.e. profile 1.0_rc6 as warned on themailing
lists 2 weeks ago. the only change to all these ebuilds in the long list is removal of the redundant
". /usr/portage/eclass/inherit.eclass || die" line.

1 danarmak 1.1 # Copyright 1999-2000 Gentoo Technologies, Inc.
2     # Distributed under the terms of the GNU General Public License, v2 or later
3     # Author Dan Armak <danarmak@gentoo.org>
4 danarmak 1.14 # $Header: /home/cvsroot/gentoo-x86/eclass/base.eclass,v 1.13 2002/03/30 12:52:14 danarmak Exp $
5 danarmak 1.1 # The base eclass defines some default functions and variables. Nearly everything
6     # else inherits from here.
7     ECLASS=base
8    
9     S=${WORKDIR}/${P}
10     DESCRIPTION="Based on the $ECLASS eclass"
11    
12     base_src_unpack() {
13 danarmak 1.6
14 danarmak 1.8 debug-print-function $FUNCNAME $*
15 danarmak 1.6 [ -z "$1" ] && base_src_unpack all
16    
17 danarmak 1.12 cd ${WORKDIR}
18    
19 danarmak 1.6 while [ "$1" ]; do
20    
21 danarmak 1.1 case $1 in
22 danarmak 1.10 unpack)
23 danarmak 1.6 debug-print-section unpack
24     unpack ${A}
25     ;;
26 danarmak 1.5 patch)
27 danarmak 1.6 debug-print-section patch
28     cd ${S}
29     patch -p0 < ${FILESDIR}/${P}-gentoo.diff
30     ;;
31 danarmak 1.1 all)
32 danarmak 1.6 debug-print-section all
33     base_src_unpack unpack
34     ;;
35 danarmak 1.10 esac
36 danarmak 1.6
37     shift
38     done
39 danarmak 1.1
40     }
41    
42     base_src_compile() {
43 danarmak 1.4
44 danarmak 1.12 debug-print-function $FUNCNAME $*
45 danarmak 1.4 [ -z "$1" ] && base_src_compile all
46 danarmak 1.6
47 danarmak 1.12 cd ${S}
48    
49 danarmak 1.1 while [ "$1" ]; do
50 danarmak 1.6
51 danarmak 1.1 case $1 in
52     configure)
53 danarmak 1.6 debug-print-section configure
54 danarmak 1.13 econf || die "died running econf, $FUNCNAME:configure"
55 danarmak 1.1 ;;
56     make)
57 danarmak 1.6 debug-print-section make
58 danarmak 1.13 emake || die "died running emake, $FUNCNAME:make"
59 danarmak 1.1 ;;
60     all)
61 danarmak 1.6 debug-print-section all
62 danarmak 1.1 base_src_compile configure make
63     ;;
64     esac
65    
66     shift
67     done
68    
69     }
70    
71     base_src_install() {
72    
73 danarmak 1.8 debug-print-function $FUNCNAME $*
74 danarmak 1.6 [ -z "$1" ] && base_src_install all
75    
76 danarmak 1.12 cd ${S}
77    
78 danarmak 1.6 while [ "$1" ]; do
79 danarmak 1.4
80 danarmak 1.1 case $1 in
81 danarmak 1.10 make)
82 danarmak 1.6 debug-print-section make
83 danarmak 1.11 make DESTDIR=${D} install || die "died running make install, $FUNCNAME:make"
84 danarmak 1.6 ;;
85 danarmak 1.1 all)
86 danarmak 1.11 debug-print-section all
87 danarmak 1.6 base_src_install make
88     ;;
89 danarmak 1.1 esac
90 danarmak 1.6
91     shift
92     done
93    
94 danarmak 1.1 }
95    
96 danarmak 1.4 EXPORT_FUNCTIONS src_unpack src_compile src_install

  ViewVC Help
Powered by ViewVC 1.1.20