/[gentoo-x86]/skel.build
Gentoo

Contents of /skel.build

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (hide annotations) (download)
Thu Oct 11 17:50:47 2001 UTC (13 years ago) by woodchip
Branch: MAIN
Changes since 1.7: +6 -1 lines
added comments explaining that the comments should be removed from the final, production ebuild! Is that some kind of paradox? :)

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

  ViewVC Help
Powered by ViewVC 1.1.20