| 1 |
# Copyright 1999-2002 Gentoo Technologies, Inc. |
| 2 |
# Distributed under the terms of the GNU General Public License, v2 or later |
| 3 |
# Maintainer: First Last <your email> |
| 4 |
# $Header: /home/cvsroot/gentoo-x86/skel.build,v 1.14 2002/02/01 19:50:13 gbevin Exp $ |
| 5 |
|
| 6 |
# 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 |
S=${WORKDIR}/${P} |
| 22 |
|
| 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 |
HOMEPAGE="http://" |
| 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. |
| 40 |
DEPEND="" |
| 41 |
|
| 42 |
# Run-time dependencies, same as DEPEND if RDEPEND isn't defined: |
| 43 |
#RDEPEND="" |
| 44 |
|
| 45 |
src_compile() { |
| 46 |
# Most open-source packages use GNU autoconf for configuration. |
| 47 |
# You should use something similar to the following lines to |
| 48 |
# configure your package before compilation. The "|| die" portion |
| 49 |
# at the end will stop the build process if the command fails. |
| 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 |
| 69 |
} |
| 70 |
|
| 71 |
src_install () { |
| 72 |
# You must *personally verify* that this trick doesn't install |
| 73 |
# anything outside of DESTDIR; do this by reading and |
| 74 |
# understanding the install part of the Makefiles. |
| 75 |
make DESTDIR=${D} install || die |
| 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}. |
| 88 |
} |