/[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.7
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
3# Author Your Name <your email>
4# $Header: /var/cvsroot/gentoo-x86/skel.ebuild,v 1.1 2000/10/09 18:00:52 achim Exp $ 3# $Header: /var/cvsroot/gentoo-x86/skel.ebuild,v 1.7 2002/05/18 17:25:12 agenkin Exp $
5 4
6#P= 5# NOTE: The comments in this file are for instruction and documentation.
7A=${P}.tar.gz 6# They're not meant to appear with your final, production ebuild. Please
8S=${WORKDIR}/${P} 7# remember to remove them before submitting or committing your ebuild. That
9DESCRIPTION="" 8# doesn't mean you can't add your own comments though.
10SRC_URI="ftp://" 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# Short one-line description of this package.
15DESCRIPTION="This is a sample skeleton ebuild file"
16
17# Homepage, not used by Portage directly but handy for developer reference
11HOMEPAGE="http://" 18HOMEPAGE="http://"
12 19
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.
23LICENSE=""
24
25# Build-time dependencies, such as
26# ssl? ( >=openssl-0.9.6b )
27# >=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.
32DEPEND=""
33
34# Run-time dependencies, same as DEPEND if RDEPEND isn't defined:
35#RDEPEND=""
36
37# Point to any required sources; these will be automatically downloaded by
38# Portage.
39SRC_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
45S=${WORKDIR}/${P}
13 46
14src_compile() { 47src_compile() {
15 48 # Most open-source packages use GNU autoconf for configuration.
16 cd ${S} 49 # You should use something similar to the following lines to
17 try ./configure --prefix=/usr --host=${CHOST} 50 # configure your package before compilation. The "|| die" portion
18 try make 51 # at the end will stop the build process if the command fails.
19 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
20} 71}
21 72
22src_install () { 73src_install () {
23 74 # You must *personally verify* that this trick doesn't install
24 cd ${S} 75 # anything outside of DESTDIR; do this by reading and
76 # understanding the install part of the Makefiles.
25 try make DESTDIR=${D} install 77 make DESTDIR=${D} install || die
26 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}.
27} 90}
28

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

  ViewVC Help
Powered by ViewVC 1.1.20