/[gentoo-x86]/skel.build
Gentoo

Contents of /skel.build

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Thu Oct 11 17:50:47 2001 UTC (13 years, 2 months 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 # Copyright 1999-2001 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License, v2 or later
3 # Author First Last <your email>
4 # $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
11 #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
14 #Source directory; the dir where the sources can be found (automatically
15 # unpacked) inside ${WORKDIR}
16 S=${WORKDIR}/${P}
17
18 #Short one-line description
19 DESCRIPTION="This is a sample skeleton ebuild file"
20
21 #Point to any required sources; these will be automatically downloaded
22 # by Portage
23 SRC_URI="ftp://foo.bar.com/${P}.tar.gz"
24
25 #Homepage, not used by Portage directly but handy for developer reference
26 HOMEPAGE="http://"
27
28 #build-time dependencies
29 DEPEND=""
30
31 #run-time dependencies, same as DEPEND if RDEPEND isn't defined:
32 #RDEPEND=""
33
34 src_compile() {
35 #the "try" command will stop the build process if the specified
36 #command fails. Prefix critical
37 #commands with "try"
38 ./configure --infodir=/usr/share/info --mandir=/usr/share/man --prefix=/usr --host=${CHOST} || die
39 #Note the use of --infodir and --mandir, above. This is to make
40 # this package FHS 2.2-compliant
41 #(/usr/share is used for info and man now).
42
43 emake || die
44 #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 #make || die
50 }
51
52 src_install () {
53 #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 make prefix=${D}/usr install || die
60
61 make DESTDIR=${D} install || die
62 #again, verify the Makefiles! We don't want anything falling outside
63 #of ${D}.
64 }

  ViewVC Help
Powered by ViewVC 1.1.20