/[gentoo-x86]/skel.ebuild
Gentoo

Contents of /skel.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Mon Feb 4 15:46:51 2002 UTC (12 years, 8 months ago) by gbevin
Branch: MAIN
Changes since 1.2: +77 -17 lines
Since a second skel file has been added for ChangeLog, renaming the
skel.build file to skel.ebuild makes the prupose slightly clearer.

1 gbevin 1.3 # Copyright 1999-2002 Gentoo Technologies, Inc.
2 achim 1.1 # Distributed under the terms of the GNU General Public License, v2 or later
3 gbevin 1.3 # Maintainer: First Last <your email>
4     # $Header: /home/cvsroot/gentoo-x86/skel.build,v 1.14 2002/02/01 19:50:13 gbevin Exp $
5 achim 1.1
6 gbevin 1.3 # 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.
13    
14     # The 'Header' on the fourth line should just be left alone.
15     # When your ebuild will be commited to cvs, the details on that line will
16     # be automatically generated to contain the correct data.
17    
18     # Source directory; the dir where the sources can be found
19     # (automatically unpacked) inside ${WORKDIR}. Usually you can just
20     # leave this as-is.
21 achim 1.1 S=${WORKDIR}/${P}
22 gbevin 1.3
23     # Short one-line description of this package.
24     DESCRIPTION="This is a sample skeleton ebuild file"
25    
26     # Point to any required sources; these will be automatically
27     # downloaded by Portage.
28     SRC_URI="ftp://foo.bar.com/${P}.tar.gz"
29    
30     # Homepage, not used by Portage directly but handy for developer reference
31 achim 1.1 HOMEPAGE="http://"
32    
33 gbevin 1.3 # Build-time dependencies, such as
34     # ssl ? ( >=openssl-0.9.6b )
35     # >=perl-5.6.1-r1
36     # It is advisable to use the >= syntax show above, to reflect what you
37     # had installed on your system when you tested the package. Then
38     # other users hopefully won't be caught without the right version of
39     # a dependency.
40     DEPEND=""
41    
42     # Run-time dependencies, same as DEPEND if RDEPEND isn't defined:
43     #RDEPEND=""
44 achim 1.1
45     src_compile() {
46 gbevin 1.3 # Most open-source packages use GNU autoconf for configuration.
47     # You should use something similar to the following lines to
48     # configure your package before compilation. The "|| die" portion
49     # at the end will stop the build process if the command fails.
50     # You should use this at the end of critical commands in the build
51     # process. (Hint: Most commands are critical, that is, the build
52     # process should abort if they aren't successful.)
53     ./configure \
54     --host=${CHOST} \
55     --prefix=/usr \
56     --infodir=/usr/share/info \
57     --mandir=/usr/share/man || die "./configure failed"
58     # Note the use of --infodir and --mandir, above. This is to make
59     # this package FHS 2.2-compliant. For more information, see
60     # http://www.pathname.com/fhs/
61    
62     # emake (previously known as pmake) is a script that calls the
63     # standard GNU make with parallel building options for speedier
64     # builds (especially on SMP systems). Try emake first. It might
65     # not work for some packages, in which case you'll have to resort
66     # to normal "make".
67     emake || die
68     #make || die
69 achim 1.1 }
70    
71     src_install () {
72 gbevin 1.3 # You must *personally verify* that this trick doesn't install
73     # anything outside of DESTDIR; do this by reading and
74     # understanding the install part of the Makefiles.
75     make DESTDIR=${D} install || die
76     # For Makefiles that don't make proper use of DESTDIR, setting
77     # prefix is often an alternative. However if you do this, then
78     # you also need to specify mandir and infodir, since they were
79     # passed to ./configure as absolute paths (overriding the prefix
80     # setting).
81     #make \
82     # prefix=${D}/usr \
83     # mandir=${D}/usr/share/man \
84     # infodir=${D}/usr/share/info \
85     # install || die
86     # Again, verify the Makefiles! We don't want anything falling
87     # outside of ${D}.
88 achim 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20