/[gentoo-x86]/skel.build
Gentoo

Contents of /skel.build

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Thu Dec 6 22:12:34 2001 UTC (13 years ago) by drobbins
Branch: MAIN
Changes since 1.10: +2 -2 lines
fixes

1 # Copyright 1999-2001 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License, v2 or later
3 # Maintainer: First Last <your email>
4 # $Header: /home/cvsroot/gentoo-x86/skel.build,v 1.10 2001/11/03 17:27:49 agriffis Exp $
5
6 # NOTE: The comments in this file are for instruction and
7 # documentation. They're not meant to appear with your final,
8 # production ebuild. Please remember to remove them before submitting
9 # or committing your ebuild. That doesn't mean you can't add your own
10 # comments though.
11
12 # Remember to add the proper Author line, above. Don't worry about
13 # the fourth line; it'll get automatically fixed when the ebuild is
14 # checked in
15
16 # Source directory; the dir where the sources can be found
17 # (automatically unpacked) inside ${WORKDIR}. Usually you can just
18 # leave this as-is.
19 S=${WORKDIR}/${P}
20
21 # Short one-line description of this package.
22 DESCRIPTION="This is a sample skeleton ebuild file"
23
24 # Point to any required sources; these will be automatically
25 # downloaded by Portage.
26 SRC_URI="ftp://foo.bar.com/${P}.tar.gz"
27
28 # Homepage, not used by Portage directly but handy for developer reference
29 HOMEPAGE="http://"
30
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.
38 DEPEND=""
39
40 # Run-time dependencies, same as DEPEND if RDEPEND isn't defined:
41 #RDEPEND=""
42
43 src_compile() {
44 # Most open-source packages use GNU autoconf for configuration.
45 # You should use something similar to the following lines to
46 # configure your package before compilation. The "|| die" portion
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 "./configure failed"
56 # Note the use of --infodir and --mandir, above. This is to make
57 # this package FHS 2.2-compliant. For more information, see
58 # http://www.pathname.com/fhs/
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".
65 emake || die
66 #make || die
67 }
68
69 src_install () {
70 # You must *personally verify* that this trick doesn't install
71 # anything outside of DESTDIR; do this by reading and
72 # understanding the install part of the Makefiles.
73 make DESTDIR=${D} install || die
74 # For Makefiles that don't make proper use of DESTDIR, setting
75 # prefix is often an alternative. However if you do this, then
76 # you also need to specify mandir and infodir, since they were
77 # passed to ./configure as absolute paths (overriding the prefix
78 # setting).
79 #make \
80 # prefix=${D}/usr \
81 # mandir=${D}/usr/share/man \
82 # infodir=${D}/usr/share/info \
83 # install || die
84 # Again, verify the Makefiles! We don't want anything falling
85 # outside of ${D}.
86 }

  ViewVC Help
Powered by ViewVC 1.1.20