/[gentoo-x86]/skel.ebuild
Gentoo

Diff of /skel.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.5
1# Copyright 1999-2000 Gentoo Technologies, Inc. 1# Copyright 1999-2002 Gentoo Technologies, Inc.
2# Distributed under the terms of the GNU General Public License, v2 or later 2# Distributed under the terms of the GNU General Public License, v2 or later
3# Author Your Name <your email> 3# Maintainer: First Last <your email>
4# $Header: /var/cvsroot/gentoo-x86/skel.ebuild,v 1.1 2000/10/09 18:00:52 achim Exp $ 4# $Header: /var/cvsroot/gentoo-x86/skel.ebuild,v 1.5 2002/04/29 22:56:53 sandymac Exp $
5 5
6#P= 6# NOTE: The comments in this file are for instruction and
7A=${P}.tar.gz 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.
8S=${WORKDIR}/${P} 21S=${WORKDIR}/${P}
9DESCRIPTION="" 22
10SRC_URI="ftp://" 23# Short one-line description of this package.
24DESCRIPTION="This is a sample skeleton ebuild file"
25
26# Point to any required sources; these will be automatically
27# downloaded by Portage.
28SRC_URI="ftp://foo.bar.com/${P}.tar.gz"
29
30# Homepage, not used by Portage directly but handy for developer reference
11HOMEPAGE="http://" 31HOMEPAGE="http://"
12 32
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.
36LICENSE=""
37
38# Build-time dependencies, such as
39# ssl? ( >=openssl-0.9.6b )
40# >=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.
45DEPEND=""
46
47# Run-time dependencies, same as DEPEND if RDEPEND isn't defined:
48#RDEPEND=""
13 49
14src_compile() { 50src_compile() {
15 51 # Most open-source packages use GNU autoconf for configuration.
16 cd ${S} 52 # You should use something similar to the following lines to
17 try ./configure --prefix=/usr --host=${CHOST} 53 # configure your package before compilation. The "|| die" portion
18 try make 54 # at the end will stop the build process if the command fails.
19 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
20} 74}
21 75
22src_install () { 76src_install () {
23 77 # You must *personally verify* that this trick doesn't install
24 cd ${S} 78 # anything outside of DESTDIR; do this by reading and
79 # understanding the install part of the Makefiles.
25 try make DESTDIR=${D} install 80 make DESTDIR=${D} install || die
26 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}.
27} 93}
28

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.20