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

Contents of /eclass/base.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (show annotations) (download)
Tue May 21 18:14:08 2002 UTC (12 years, 7 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 # 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 # $Header: /home/cvsroot/gentoo-x86/eclass/base.eclass,v 1.13 2002/03/30 12:52:14 danarmak Exp $
5 # 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
14 debug-print-function $FUNCNAME $*
15 [ -z "$1" ] && base_src_unpack all
16
17 cd ${WORKDIR}
18
19 while [ "$1" ]; do
20
21 case $1 in
22 unpack)
23 debug-print-section unpack
24 unpack ${A}
25 ;;
26 patch)
27 debug-print-section patch
28 cd ${S}
29 patch -p0 < ${FILESDIR}/${P}-gentoo.diff
30 ;;
31 all)
32 debug-print-section all
33 base_src_unpack unpack
34 ;;
35 esac
36
37 shift
38 done
39
40 }
41
42 base_src_compile() {
43
44 debug-print-function $FUNCNAME $*
45 [ -z "$1" ] && base_src_compile all
46
47 cd ${S}
48
49 while [ "$1" ]; do
50
51 case $1 in
52 configure)
53 debug-print-section configure
54 econf || die "died running econf, $FUNCNAME:configure"
55 ;;
56 make)
57 debug-print-section make
58 emake || die "died running emake, $FUNCNAME:make"
59 ;;
60 all)
61 debug-print-section all
62 base_src_compile configure make
63 ;;
64 esac
65
66 shift
67 done
68
69 }
70
71 base_src_install() {
72
73 debug-print-function $FUNCNAME $*
74 [ -z "$1" ] && base_src_install all
75
76 cd ${S}
77
78 while [ "$1" ]; do
79
80 case $1 in
81 make)
82 debug-print-section make
83 make DESTDIR=${D} install || die "died running make install, $FUNCNAME:make"
84 ;;
85 all)
86 debug-print-section all
87 base_src_install make
88 ;;
89 esac
90
91 shift
92 done
93
94 }
95
96 EXPORT_FUNCTIONS src_unpack src_compile src_install

  ViewVC Help
Powered by ViewVC 1.1.20