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

Contents of /eclass/base.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Sep 28 19:25:33 2001 UTC (13 years, 2 months ago) by danarmak
Branch: MAIN
Initial version of eclasses. :-)
If you're gong to play wih it:
1) wait for tomorrow, by then i'll have much more commited, including a README.
2) don't commit changes unless you know what you're doing
3) don't criticise unless you know what you're thinking

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/kde-base/kdebase/kdebase-2.2.1.ebuild,v 1.4 2001/09/20 20:18:24 danarmak Exp $
5 # The base eclass defines some default functions and variables. Nearly everything
6 # else inherits from here.
7 . /usr/portage/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