/[gentoo-x86]/skel.ebuild
Gentoo

Contents of /skel.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (hide annotations) (download)
Sat May 18 17:25:12 2002 UTC (11 years, 11 months ago) by agenkin
Branch: MAIN
Changes since 1.6: +11 -11 lines
Changed the order in which the environment variables appear to a
more human-friendly one.

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

  ViewVC Help
Powered by ViewVC 1.1.20