/[gentoo-x86]/skel.build
Gentoo

Diff of /skel.build

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.5 Revision 1.6
1# Copyright 1999-2001 Gentoo Technologies, Inc. 1# Copyright 1999-2001 Gentoo Technologies, Inc.
2# Distributed under the terms of the GNU General Public License, v2 or later 2# Distributed under the terms of the GNU General Public License, v2 or later
3# Author First Last <your email> 3# Author First Last <your email>
4# $Header: /var/cvsroot/gentoo-x86/Attic/skel.build,v 1.5 2001/07/24 22:30:35 lordjoe Exp $ 4# $Header: /var/cvsroot/gentoo-x86/Attic/skel.build,v 1.6 2001/08/19 00:26:21 pete Exp $
5 5
6#Remeber to add the proper Author line, above. Don't worry about the fourth line; 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 7#it'll get automatically fixed when the ebuild is checked in
8 8
9#Source directory; the dir where the sources can be found (automatically unpacked) 9#Source directory; the dir where the sources can be found (automatically unpacked)
26#RDEPEND="" 26#RDEPEND=""
27 27
28src_compile() { 28src_compile() {
29 #the "try" command will stop the build process if the specified command fails. Prefix critical 29 #the "try" command will stop the build process if the specified command fails. Prefix critical
30 #commands with "try" 30 #commands with "try"
31 try ./configure --infodir=/usr/share/info --mandir=/usr/share/man --prefix=/usr --host=${CHOST} 31 ./configure --infodir=/usr/share/info --mandir=/usr/share/man --prefix=/usr --host=${CHOST} || die
32 #Note the use of --infodir and --mandir, above. This is to make this package FHS 2.2-compliant 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). 33 #(/usr/share is used for info and man now).
34 34
35 try emake 35 emake || die
36 #emake (previously known as pmake) is a script that calls the standard GNU make with parallel 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 might not work. If 37 #building options for speedier builds on SMP systems. Use emake first; it might not work. If
38 #not, then replace the line above with: 38 #not, then replace the line above with:
39 39
40 #try make 40 #make || die
41} 41}
42 42
43src_install () { 43src_install () {
44 #you must *personally verify* that this trick doesn't install 44 #you must *personally verify* that this trick doesn't install
45 #anything outside of DESTDIR; do this by reading and understanding 45 #anything outside of DESTDIR; do this by reading and understanding
46 #the install part of the Makefiles. Also note that this will often 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, 47 #also work for autoconf stuff (usually much more often than DESTDIR,
48 #which is actually quite rare. 48 #which is actually quite rare.
49 49
50 # try make prefix=${D}/usr install 50 make prefix=${D}/usr install || die
51 51
52 try make DESTDIR=${D} install 52 make DESTDIR=${D} install || die
53 #again, verify the Makefiles! We don't want anything falling outside 53 #again, verify the Makefiles! We don't want anything falling outside
54 #of ${D}. 54 #of ${D}.
55} 55}
56 56

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20