/[gentoo-x86]/skel.ebuild
Gentoo

Diff of /skel.ebuild

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

Revision 1.2 Revision 1.3
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.2 2000/11/15 07:03:32 drobbins dead $ 4# $Header: /var/cvsroot/gentoo-x86/skel.ebuild,v 1.3 2002/02/04 15:46:51 gbevin 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# 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.
40DEPEND=""
41
42# Run-time dependencies, same as DEPEND if RDEPEND isn't defined:
43#RDEPEND=""
13 44
14src_compile() { 45src_compile() {
15 46 # Most open-source packages use GNU autoconf for configuration.
16 cd ${S} 47 # You should use something similar to the following lines to
17 try ./configure --prefix=/usr --host=${CHOST} 48 # configure your package before compilation. The "|| die" portion
18 try make 49 # at the end will stop the build process if the command fails.
19 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
20} 69}
21 70
22src_install () { 71src_install () {
23 72 # You must *personally verify* that this trick doesn't install
24 cd ${S} 73 # anything outside of DESTDIR; do this by reading and
74 # understanding the install part of the Makefiles.
25 try make DESTDIR=${D} install 75 make DESTDIR=${D} install || die
26 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}.
27} 88}
28

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20