/[gentoo-x86]/skel.build
Gentoo

Contents of /skel.build

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (hide annotations) (download)
Sun Oct 21 16:17:12 2001 UTC (12 years, 11 months ago) by agriffis
Branch: MAIN
Changes since 1.8: +55 -41 lines
Clarified comments.

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 agriffis 1.9 # $Header: /home/cvsroot/gentoo-x86/skel.build,v 1.8 2001/10/11 17:50:47 woodchip Exp $
5 woodchip 1.8
6 agriffis 1.9 # 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 drobbins 1.1 S=${WORKDIR}/${P}
20 drobbins 1.3
21 agriffis 1.9 # Short one-line description of this package.
22 drobbins 1.3 DESCRIPTION="This is a sample skeleton ebuild file"
23    
24 agriffis 1.9 # Point to any required sources; these will be automatically
25     # downloaded by Portage.
26 drobbins 1.3 SRC_URI="ftp://foo.bar.com/${P}.tar.gz"
27    
28 agriffis 1.9 # Homepage, not used by Portage directly but handy for developer reference
29 drobbins 1.1 HOMEPAGE="http://"
30    
31 agriffis 1.9 # 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 achim 1.2 DEPEND=""
39 drobbins 1.1
40 agriffis 1.9 # Run-time dependencies, same as DEPEND if RDEPEND isn't defined:
41 drobbins 1.3 #RDEPEND=""
42    
43 drobbins 1.1 src_compile() {
44 agriffis 1.9 # 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
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 drobbins 1.3
60 agriffis 1.9 # 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 pete 1.6 emake || die
66     #make || die
67 drobbins 1.1 }
68    
69     src_install () {
70 agriffis 1.9 # 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.
76     #make prefix=${D}/usr install || die
77     # Again, verify the Makefiles! We don't want anything falling
78     # outside of ${D}.
79 drobbins 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20