/[gentoo-x86]/skel.ebuild
Gentoo

Contents of /skel.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Mon Apr 29 22:56:53 2002 UTC (12 years, 7 months ago) by sandymac
Branch: MAIN
Changes since 1.4: +6 -1 lines
Added LICENSE to skel.ebuild

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 sandymac 1.5 # $Header: /home/cvsroot/gentoo-x86/skel.ebuild,v 1.4 2002/03/12 16:05:09 tod 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 sandymac 1.5
33     # License of the package. This must match the name of file(s) in
34     # /usr/portage/licenses/. For complex license combination see the developer
35     # docs on gentoo.org for details.
36     LICENSE=""
37 achim 1.1
38 gbevin 1.3 # Build-time dependencies, such as
39 tod 1.4 # ssl? ( >=openssl-0.9.6b )
40 gbevin 1.3 # >=perl-5.6.1-r1
41     # It is advisable to use the >= syntax show above, to reflect what you
42     # had installed on your system when you tested the package. Then
43     # other users hopefully won't be caught without the right version of
44     # a dependency.
45     DEPEND=""
46    
47     # Run-time dependencies, same as DEPEND if RDEPEND isn't defined:
48     #RDEPEND=""
49 achim 1.1
50     src_compile() {
51 gbevin 1.3 # Most open-source packages use GNU autoconf for configuration.
52     # You should use something similar to the following lines to
53     # configure your package before compilation. The "|| die" portion
54     # at the end will stop the build process if the command fails.
55     # You should use this at the end of critical commands in the build
56     # process. (Hint: Most commands are critical, that is, the build
57     # process should abort if they aren't successful.)
58     ./configure \
59     --host=${CHOST} \
60     --prefix=/usr \
61     --infodir=/usr/share/info \
62     --mandir=/usr/share/man || die "./configure failed"
63     # Note the use of --infodir and --mandir, above. This is to make
64     # this package FHS 2.2-compliant. For more information, see
65     # http://www.pathname.com/fhs/
66    
67     # emake (previously known as pmake) is a script that calls the
68     # standard GNU make with parallel building options for speedier
69     # builds (especially on SMP systems). Try emake first. It might
70     # not work for some packages, in which case you'll have to resort
71     # to normal "make".
72     emake || die
73     #make || die
74 achim 1.1 }
75    
76     src_install () {
77 gbevin 1.3 # You must *personally verify* that this trick doesn't install
78     # anything outside of DESTDIR; do this by reading and
79     # understanding the install part of the Makefiles.
80     make DESTDIR=${D} install || die
81     # For Makefiles that don't make proper use of DESTDIR, setting
82     # prefix is often an alternative. However if you do this, then
83     # you also need to specify mandir and infodir, since they were
84     # passed to ./configure as absolute paths (overriding the prefix
85     # setting).
86     #make \
87     # prefix=${D}/usr \
88     # mandir=${D}/usr/share/man \
89     # infodir=${D}/usr/share/info \
90     # install || die
91     # Again, verify the Makefiles! We don't want anything falling
92     # outside of ${D}.
93 achim 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20