/[gentoo-x86]/skel.build
Gentoo

Contents of /skel.build

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (hide annotations) (download)
Sat Aug 25 21:15:08 2001 UTC (13 years, 4 months ago) by chadh
Branch: MAIN
Changes since 1.6: +16 -12 lines
fixed line wraps!

1 drobbins 1.3 # Copyright 1999-2001 Gentoo Technologies, Inc.
2 drobbins 1.1 # Distributed under the terms of the GNU General Public License, v2 or later
3 drobbins 1.3 # Author First Last <your email>
4 chadh 1.7 # $Header$
5 drobbins 1.1
6 chadh 1.7 #Remeber to add the proper Author line, above. Don't worry about the
7     # fourth line; it'll get automatically fixed when the ebuild is checked in
8 drobbins 1.3
9 chadh 1.7 #Source directory; the dir where the sources can be found (automatically
10     # unpacked) inside ${WORKDIR}
11 drobbins 1.1 S=${WORKDIR}/${P}
12 drobbins 1.3
13     #Short one-line description
14     DESCRIPTION="This is a sample skeleton ebuild file"
15    
16 chadh 1.7 #Point to any required sources; these will be automatically downloaded
17     # by Portage
18 drobbins 1.3 SRC_URI="ftp://foo.bar.com/${P}.tar.gz"
19    
20     #Homepage, not used by Portage directly but handy for developer reference
21 drobbins 1.1 HOMEPAGE="http://"
22    
23 drobbins 1.3 #build-time dependencies
24 achim 1.2 DEPEND=""
25 drobbins 1.1
26 drobbins 1.3 #run-time dependencies, same as DEPEND if RDEPEND isn't defined:
27     #RDEPEND=""
28    
29 drobbins 1.1 src_compile() {
30 chadh 1.7 #the "try" command will stop the build process if the specified
31     #command fails. Prefix critical
32 drobbins 1.3 #commands with "try"
33 pete 1.6 ./configure --infodir=/usr/share/info --mandir=/usr/share/man --prefix=/usr --host=${CHOST} || die
34 chadh 1.7 #Note the use of --infodir and --mandir, above. This is to make
35     # this package FHS 2.2-compliant
36 drobbins 1.3 #(/usr/share is used for info and man now).
37    
38 pete 1.6 emake || die
39 chadh 1.7 #emake (previously known as pmake) is a script that calls the standard
40     # GNU make with parallel
41     #building options for speedier builds on SMP systems. Use emake first;
42     # it might not work. If not, then replace the line above with:
43    
44 pete 1.6 #make || die
45 drobbins 1.1 }
46    
47     src_install () {
48 drobbins 1.3 #you must *personally verify* that this trick doesn't install
49     #anything outside of DESTDIR; do this by reading and understanding
50     #the install part of the Makefiles. Also note that this will often
51     #also work for autoconf stuff (usually much more often than DESTDIR,
52     #which is actually quite rare.
53    
54 pete 1.6 make prefix=${D}/usr install || die
55 drobbins 1.1
56 pete 1.6 make DESTDIR=${D} install || die
57 drobbins 1.3 #again, verify the Makefiles! We don't want anything falling outside
58     #of ${D}.
59 drobbins 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20