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

Contents of /eclass/base.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Sep 28 19:30:09 2001 UTC (12 years, 9 months ago) by danarmak
Branch: MAIN
Changes since 1.1: +2 -2 lines
fixes

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.1 2001/09/28 19:25:33 danarmak Exp $
5 # The base eclass defines some default functions and variables. Nearly everything
6 # else inherits from here.
7 . /usr/portage/eclass/inherit.eclass || die
8 inherit virtual || die
9 ECLASS=base
10
11 S=${WORKDIR}/${P}
12 DESCRIPTION="Based on the $ECLASS eclass"
13
14 base_src_unpack() {
15
16 while [ "$1" ]; do
17
18 case $1 in
19 unpack)
20 unpack ${A}
21 ;;
22 all)
23 base_src_unpack unpack
24 ;;
25 esac
26
27 shift
28 done
29
30 }
31
32 base_src_compile() {
33
34 while [ "$1" ]; do
35
36 case $1 in
37 configure)
38 configure || die
39 ;;
40 make)
41 make || die
42 ;;
43 all)
44 base_src_compile configure make
45 ;;
46 esac
47
48 shift
49 done
50
51 }
52
53 base_src_install() {
54
55 while [ "$1" ]; do
56
57 case $1 in
58 make)
59 make DESTDIR=${D} install || die
60 ;;
61 all)
62 base_src_install make
63 ;;
64 esac
65
66 shift
67 done
68
69 }
70
71 EXPORT_FUNCTIONS

  ViewVC Help
Powered by ViewVC 1.1.20