/[gentoo-x86]/skel.build
Gentoo

Contents of /skel.build

Parent Directory Parent Directory | Revision Log Revision Log


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

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$
5
6 #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
9 #Source directory; the dir where the sources can be found (automatically
10 # unpacked) inside ${WORKDIR}
11 S=${WORKDIR}/${P}
12
13 #Short one-line description
14 DESCRIPTION="This is a sample skeleton ebuild file"
15
16 #Point to any required sources; these will be automatically downloaded
17 # by Portage
18 SRC_URI="ftp://foo.bar.com/${P}.tar.gz"
19
20 #Homepage, not used by Portage directly but handy for developer reference
21 HOMEPAGE="http://"
22
23 #build-time dependencies
24 DEPEND=""
25
26 #run-time dependencies, same as DEPEND if RDEPEND isn't defined:
27 #RDEPEND=""
28
29 src_compile() {
30 #the "try" command will stop the build process if the specified
31 #command fails. Prefix critical
32 #commands with "try"
33 ./configure --infodir=/usr/share/info --mandir=/usr/share/man --prefix=/usr --host=${CHOST} || die
34 #Note the use of --infodir and --mandir, above. This is to make
35 # this package FHS 2.2-compliant
36 #(/usr/share is used for info and man now).
37
38 emake || die
39 #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 #make || die
45 }
46
47 src_install () {
48 #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 make prefix=${D}/usr install || die
55
56 make DESTDIR=${D} install || die
57 #again, verify the Makefiles! We don't want anything falling outside
58 #of ${D}.
59 }

  ViewVC Help
Powered by ViewVC 1.1.20