/[gentoo-x86]/skel.build
Gentoo

Contents of /skel.build

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Tue Jul 24 22:30:35 2001 UTC (13 years, 2 months ago) by lordjoe
Branch: MAIN
Changes since 1.4: +2 -2 lines
Fixed typo: line 37 s/make/might/

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 lordjoe 1.5 # $Header: /home/cvsroot/gentoo-x86/skel.build,v 1.4 2001/07/16 19:33:05 danarmak Exp $
5 drobbins 1.1
6 drobbins 1.3 #Remeber to add the proper Author line, above. Don't worry about the fourth line;
7 danarmak 1.4 #it'll get automatically fixed when the ebuild is checked in
8 drobbins 1.3
9     #Source directory; the dir where the sources can be found (automatically unpacked)
10     #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     #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 drobbins 1.1 HOMEPAGE="http://"
21    
22 drobbins 1.3 #build-time dependencies
23 achim 1.2 DEPEND=""
24 drobbins 1.1
25 drobbins 1.3 #run-time dependencies, same as DEPEND if RDEPEND isn't defined:
26     #RDEPEND=""
27    
28 drobbins 1.1 src_compile() {
29 drobbins 1.3 #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 lordjoe 1.5 #building options for speedier builds on SMP systems. Use emake first; it might not work. If
38 drobbins 1.3 #not, then replace the line above with:
39    
40     #try make
41 drobbins 1.1 }
42    
43     src_install () {
44 drobbins 1.3 #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 drobbins 1.1
52     try make DESTDIR=${D} install
53 drobbins 1.3 #again, verify the Makefiles! We don't want anything falling outside
54     #of ${D}.
55 drobbins 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20