/[gentoo-x86]/skel.build
Gentoo

Diff of /skel.build

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

Revision 1.8 Revision 1.9
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.8 2001/10/11 17:50:47 woodchip Exp $ 4# $Header: /var/cvsroot/gentoo-x86/Attic/skel.build,v 1.9 2001/10/21 16:17:12 agriffis Exp $
5 5
6#NOTE: the comments in this file itself, are for instruction and documentation. 6# NOTE: The comments in this file are for instruction and
7# They're not meant to appear with your final, production ebuild. Please 7# documentation. They're not meant to appear with your final,
8# remember to remove them before submitting or committing your ebuild. 8# production ebuild. Please remember to remove them before submitting
9# That doesnt mean you cant add your own comments though. 9# or committing your ebuild. That doesn't mean you can't add your own
10# comments though.
10 11
11#Remeber to add the proper Author line, above. Don't worry about the 12# Remember to add the proper Author line, above. Don't worry about
12# fourth line; it'll get automatically fixed when the ebuild is checked in 13# the fourth line; it'll get automatically fixed when the ebuild is
14# checked in
13 15
14#Source directory; the dir where the sources can be found (automatically 16# Source directory; the dir where the sources can be found
15# unpacked) inside ${WORKDIR} 17# (automatically unpacked) inside ${WORKDIR}. Usually you can just
18# leave this as-is.
16S=${WORKDIR}/${P} 19S=${WORKDIR}/${P}
17 20
18#Short one-line description 21# Short one-line description of this package.
19DESCRIPTION="This is a sample skeleton ebuild file" 22DESCRIPTION="This is a sample skeleton ebuild file"
20 23
21#Point to any required sources; these will be automatically downloaded 24# Point to any required sources; these will be automatically
22# by Portage 25# downloaded by Portage.
23SRC_URI="ftp://foo.bar.com/${P}.tar.gz" 26SRC_URI="ftp://foo.bar.com/${P}.tar.gz"
24 27
25#Homepage, not used by Portage directly but handy for developer reference 28# Homepage, not used by Portage directly but handy for developer reference
26HOMEPAGE="http://" 29HOMEPAGE="http://"
27 30
28#build-time dependencies 31# Build-time dependencies, such as
32# ssl ? ( >=openssl-0.9.6b )
33# >=perl-5.6.1-r1
34# It is advisable to use the >= syntax show above, to reflect what you
35# had installed on your system when you tested the package. Then
36# other users hopefully won't be caught without the right version of
37# a dependency.
29DEPEND="" 38DEPEND=""
30 39
31#run-time dependencies, same as DEPEND if RDEPEND isn't defined: 40# Run-time dependencies, same as DEPEND if RDEPEND isn't defined:
32#RDEPEND="" 41#RDEPEND=""
33 42
34src_compile() { 43src_compile() {
35 #the "try" command will stop the build process if the specified 44 # Most open-source packages use GNU autoconf for configuration.
36 #command fails. Prefix critical 45 # You should use something similar to the following lines to
37 #commands with "try" 46 # configure your package before compilation. The "|| die" portion
38 ./configure --infodir=/usr/share/info --mandir=/usr/share/man --prefix=/usr --host=${CHOST} || die 47 # at the end will stop the build process if the command fails.
48 # You should use this at the end of critical commands in the build
49 # process. (Hint: Most commands are critical, that is, the build
50 # process should abort if they aren't successful.)
51 ./configure \
52 --host=${CHOST} \
53 --prefix=/usr \
54 --infodir=/usr/share/info \
55 --mandir=/usr/share/man || die
39 #Note the use of --infodir and --mandir, above. This is to make 56 # Note the use of --infodir and --mandir, above. This is to make
40 # this package FHS 2.2-compliant 57 # this package FHS 2.2-compliant. For more information, see
41 #(/usr/share is used for info and man now). 58 # http://www.pathname.com/fhs/
42 59
60 # emake (previously known as pmake) is a script that calls the
61 # standard GNU make with parallel building options for speedier
62 # builds (especially on SMP systems). Try emake first. It might
63 # not work for some packages, in which case you'll have to resort
64 # to normal "make".
43 emake || die 65 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 66 #make || die
50} 67}
51 68
52src_install () { 69src_install () {
53 #you must *personally verify* that this trick doesn't install 70 # You must *personally verify* that this trick doesn't install
54 #anything outside of DESTDIR; do this by reading and understanding 71 # anything outside of DESTDIR; do this by reading and
55 #the install part of the Makefiles. Also note that this will often 72 # understanding the install part of the Makefiles.
56 #also work for autoconf stuff (usually much more often than DESTDIR, 73 make DESTDIR=${D} install || die
57 #which is actually quite rare. 74 # For Makefiles that don't make proper use of DESTDIR, setting
58 75 # prefix is often an alternative.
59 make prefix=${D}/usr install || die 76 #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 77 # Again, verify the Makefiles! We don't want anything falling
63 #of ${D}. 78 # outside of ${D}.
64} 79}
65

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.20