1 |
drobbins |
1.3 |
# Copyright 1999-2001 Gentoo Technologies, Inc. |
2 |
drobbins |
1.1 |
# Distributed under the terms of the GNU General Public License, v2 or later |
3 |
drobbins |
1.11 |
# Maintainer: First Last <your email> |
4 |
aeoo |
1.12 |
# $Header$ |
5 |
woodchip |
1.8 |
|
6 |
agriffis |
1.9 |
# 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. Don't worry about |
13 |
|
|
# the fourth line; it'll get automatically fixed when the ebuild is |
14 |
|
|
# checked in |
15 |
|
|
|
16 |
|
|
# Source directory; the dir where the sources can be found |
17 |
|
|
# (automatically unpacked) inside ${WORKDIR}. Usually you can just |
18 |
|
|
# leave this as-is. |
19 |
drobbins |
1.1 |
S=${WORKDIR}/${P} |
20 |
drobbins |
1.3 |
|
21 |
agriffis |
1.9 |
# Short one-line description of this package. |
22 |
drobbins |
1.3 |
DESCRIPTION="This is a sample skeleton ebuild file" |
23 |
|
|
|
24 |
agriffis |
1.9 |
# Point to any required sources; these will be automatically |
25 |
|
|
# downloaded by Portage. |
26 |
drobbins |
1.3 |
SRC_URI="ftp://foo.bar.com/${P}.tar.gz" |
27 |
|
|
|
28 |
agriffis |
1.9 |
# Homepage, not used by Portage directly but handy for developer reference |
29 |
drobbins |
1.1 |
HOMEPAGE="http://" |
30 |
|
|
|
31 |
agriffis |
1.9 |
# Build-time dependencies, such as |
32 |
|
|
# ssl ? ( >=openssl-0.9.6b ) |
33 |
|
|
# >=perl-5.6.1-r1 |
34 |
|
|
# It is advisable to use the >= syntax show above, to reflect what you |
35 |
|
|
# had installed on your system when you tested the package. Then |
36 |
|
|
# other users hopefully won't be caught without the right version of |
37 |
|
|
# a dependency. |
38 |
achim |
1.2 |
DEPEND="" |
39 |
drobbins |
1.1 |
|
40 |
agriffis |
1.9 |
# Run-time dependencies, same as DEPEND if RDEPEND isn't defined: |
41 |
drobbins |
1.3 |
#RDEPEND="" |
42 |
|
|
|
43 |
drobbins |
1.1 |
src_compile() { |
44 |
agriffis |
1.9 |
# Most open-source packages use GNU autoconf for configuration. |
45 |
|
|
# You should use something similar to the following lines to |
46 |
|
|
# configure your package before compilation. The "|| die" portion |
47 |
|
|
# at the end will stop the build process if the command fails. |
48 |
|
|
# You should use this at the end of critical commands in the build |
49 |
|
|
# process. (Hint: Most commands are critical, that is, the build |
50 |
|
|
# process should abort if they aren't successful.) |
51 |
|
|
./configure \ |
52 |
|
|
--host=${CHOST} \ |
53 |
|
|
--prefix=/usr \ |
54 |
|
|
--infodir=/usr/share/info \ |
55 |
agriffis |
1.10 |
--mandir=/usr/share/man || die "./configure failed" |
56 |
agriffis |
1.9 |
# Note the use of --infodir and --mandir, above. This is to make |
57 |
|
|
# this package FHS 2.2-compliant. For more information, see |
58 |
|
|
# http://www.pathname.com/fhs/ |
59 |
drobbins |
1.3 |
|
60 |
agriffis |
1.9 |
# emake (previously known as pmake) is a script that calls the |
61 |
|
|
# standard GNU make with parallel building options for speedier |
62 |
|
|
# builds (especially on SMP systems). Try emake first. It might |
63 |
|
|
# not work for some packages, in which case you'll have to resort |
64 |
|
|
# to normal "make". |
65 |
pete |
1.6 |
emake || die |
66 |
|
|
#make || die |
67 |
drobbins |
1.1 |
} |
68 |
|
|
|
69 |
|
|
src_install () { |
70 |
agriffis |
1.9 |
# You must *personally verify* that this trick doesn't install |
71 |
|
|
# anything outside of DESTDIR; do this by reading and |
72 |
|
|
# understanding the install part of the Makefiles. |
73 |
|
|
make DESTDIR=${D} install || die |
74 |
|
|
# For Makefiles that don't make proper use of DESTDIR, setting |
75 |
agriffis |
1.10 |
# prefix is often an alternative. However if you do this, then |
76 |
|
|
# you also need to specify mandir and infodir, since they were |
77 |
|
|
# passed to ./configure as absolute paths (overriding the prefix |
78 |
|
|
# setting). |
79 |
|
|
#make \ |
80 |
|
|
# prefix=${D}/usr \ |
81 |
|
|
# mandir=${D}/usr/share/man \ |
82 |
|
|
# infodir=${D}/usr/share/info \ |
83 |
|
|
# install || die |
84 |
agriffis |
1.9 |
# Again, verify the Makefiles! We don't want anything falling |
85 |
|
|
# outside of ${D}. |
86 |
drobbins |
1.1 |
} |