/[gentoo-x86]/skel.build
Gentoo

Contents of /skel.build

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Mon Jul 16 19:33:05 2001 UTC (13 years, 2 months ago) by danarmak
Branch: MAIN
Changes since 1.3: +2 -2 lines
Fixed skel.build permissions (it had execute permissions set)

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.3 2001/07/05 02:43:36 drobbins Exp $
5
6 #Remeber to add the proper Author line, above. Don't worry about the fourth line;
7 #it'll get automatically fixed when the ebuild is checked in
8
9 #Source directory; the dir where the sources can be found (automatically unpacked)
10 #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 by Portage
17 SRC_URI="ftp://foo.bar.com/${P}.tar.gz"
18
19 #Homepage, not used by Portage directly but handy for developer reference
20 HOMEPAGE="http://"
21
22 #build-time dependencies
23 DEPEND=""
24
25 #run-time dependencies, same as DEPEND if RDEPEND isn't defined:
26 #RDEPEND=""
27
28 src_compile() {
29 #the "try" command will stop the build process if the specified command fails. Prefix critical
30 #commands with "try"
31 try ./configure --infodir=/usr/share/info --mandir=/usr/share/man --prefix=/usr --host=${CHOST}
32 #Note the use of --infodir and --mandir, above. This is to make this package FHS 2.2-compliant
33 #(/usr/share is used for info and man now).
34
35 try emake
36 #emake (previously known as pmake) is a script that calls the standard GNU make with parallel
37 #building options for speedier builds on SMP systems. Use emake first; it make not work. If
38 #not, then replace the line above with:
39
40 #try make
41 }
42
43 src_install () {
44 #you must *personally verify* that this trick doesn't install
45 #anything outside of DESTDIR; do this by reading and understanding
46 #the install part of the Makefiles. Also note that this will often
47 #also work for autoconf stuff (usually much more often than DESTDIR,
48 #which is actually quite rare.
49
50 # try make prefix=${D}/usr install
51
52 try make DESTDIR=${D} install
53 #again, verify the Makefiles! We don't want anything falling outside
54 #of ${D}.
55 }

  ViewVC Help
Powered by ViewVC 1.1.20