| 1 | # Copyright 1999-2011 Gentoo Foundation |
1 | # Copyright 1999-2012 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/skel.ebuild,v 1.58 2011/04/14 14:30:56 ssuominen Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/skel.ebuild,v 1.64 2012/05/06 22:29:32 ssuominen Exp $ |
| 4 | |
4 | |
| 5 | # NOTE: The comments in this file are for instruction and documentation. |
5 | # NOTE: The comments in this file are for instruction and documentation. |
| 6 | # They're not meant to appear with your final, production ebuild. Please |
6 | # They're not meant to appear with your final, production ebuild. Please |
| 7 | # remember to remove them before submitting or committing your ebuild. That |
7 | # remember to remove them before submitting or committing your ebuild. That |
| 8 | # doesn't mean you can't add your own comments though. |
8 | # doesn't mean you can't add your own comments though. |
| … | |
… | |
| 11 | # will be committed to cvs, the details on that line will be automatically |
11 | # will be committed to cvs, the details on that line will be automatically |
| 12 | # generated to contain the correct data. |
12 | # generated to contain the correct data. |
| 13 | |
13 | |
| 14 | # The EAPI variable tells the ebuild format in use. |
14 | # The EAPI variable tells the ebuild format in use. |
| 15 | # Defaults to 0 if not specified. |
15 | # Defaults to 0 if not specified. |
| 16 | # It is suggested that you the latest EAPI approved by the Council. |
16 | # It is suggested that you use the latest EAPI approved by the Council. |
| 17 | # The PMS contains specifications for all EAPIs. Eclasses will test for this |
17 | # The PMS contains specifications for all EAPIs. Eclasses will test for this |
| 18 | # variable if they need to use EAPI > 0 features. |
18 | # variable if they need to use EAPI > 0 features. |
| 19 | EAPI=4 |
19 | EAPI=4 |
| 20 | |
20 | |
| 21 | # inherit lists eclasses to inherit functions from. Almost all ebuilds should |
21 | # inherit lists eclasses to inherit functions from. Almost all ebuilds should |
| … | |
… | |
| 28 | # 'files' directory and use: |
28 | # 'files' directory and use: |
| 29 | # |
29 | # |
| 30 | # epatch "${FILESDIR}"/patch-name-here |
30 | # epatch "${FILESDIR}"/patch-name-here |
| 31 | # |
31 | # |
| 32 | # eclasses tend to list descriptions of how to use their functions properly. |
32 | # eclasses tend to list descriptions of how to use their functions properly. |
| 33 | # take a look at /usr/portage/eclasses/ for more examples. |
33 | # take a look at /usr/portage/eclass/ for more examples. |
| 34 | |
34 | |
| 35 | # Short one-line description of this package. |
35 | # Short one-line description of this package. |
| 36 | DESCRIPTION="This is a sample skeleton ebuild file" |
36 | DESCRIPTION="This is a sample skeleton ebuild file" |
| 37 | |
37 | |
| 38 | # Homepage, not used by Portage directly but handy for developer reference |
38 | # Homepage, not used by Portage directly but handy for developer reference |
| 39 | HOMEPAGE="http://foo.bar.com/" |
39 | HOMEPAGE="http://foo.example.org/" |
| 40 | |
40 | |
| 41 | # Point to any required sources; these will be automatically downloaded by |
41 | # Point to any required sources; these will be automatically downloaded by |
| 42 | # Portage. |
42 | # Portage. |
| 43 | SRC_URI="ftp://foo.bar.com/${P}.tar.gz" |
43 | SRC_URI="ftp://foo.example.org/${P}.tar.gz" |
| 44 | |
44 | |
| 45 | |
45 | |
| 46 | # License of the package. This must match the name of file(s) in |
46 | # License of the package. This must match the name of file(s) in |
| 47 | # /usr/portage/licenses/. For complex license combination see the developer |
47 | # /usr/portage/licenses/. For complex license combination see the developer |
| 48 | # docs on gentoo.org for details. |
48 | # docs on gentoo.org for details. |
| … | |
… | |
| 105 | |
105 | |
| 106 | # Source directory; the dir where the sources can be found (automatically |
106 | # Source directory; the dir where the sources can be found (automatically |
| 107 | # unpacked) inside ${WORKDIR}. The default value for S is ${WORKDIR}/${P} |
107 | # unpacked) inside ${WORKDIR}. The default value for S is ${WORKDIR}/${P} |
| 108 | # If you don't need to change it, leave the S= line out of the ebuild |
108 | # If you don't need to change it, leave the S= line out of the ebuild |
| 109 | # to keep it tidy. |
109 | # to keep it tidy. |
| 110 | #S="${WORKDIR}/${P}" |
110 | #S=${WORKDIR}/${P} |
| 111 | |
111 | |
| 112 | |
112 | |
| 113 | # The following src_configure function is implemented as default by portage, so |
113 | # The following src_configure function is implemented as default by portage, so |
| 114 | # you only need to call it if you need a different behaviour. |
114 | # you only need to call it if you need a different behaviour. |
| 115 | # This function is available only in EAPI 2 and later. |
115 | # This function is available only in EAPI 2 and later. |
| … | |
… | |
| 126 | # process should abort if they aren't successful.) |
126 | # process should abort if they aren't successful.) |
| 127 | #./configure \ |
127 | #./configure \ |
| 128 | # --host=${CHOST} \ |
128 | # --host=${CHOST} \ |
| 129 | # --prefix=/usr \ |
129 | # --prefix=/usr \ |
| 130 | # --infodir=/usr/share/info \ |
130 | # --infodir=/usr/share/info \ |
| 131 | # --mandir=/usr/share/man || die "./configure failed" |
131 | # --mandir=/usr/share/man || die |
| 132 | # Note the use of --infodir and --mandir, above. This is to make |
132 | # Note the use of --infodir and --mandir, above. This is to make |
| 133 | # this package FHS 2.2-compliant. For more information, see |
133 | # this package FHS 2.2-compliant. For more information, see |
| 134 | # http://www.pathname.com/fhs/ |
134 | # http://www.pathname.com/fhs/ |
| 135 | #} |
135 | #} |
| 136 | |
136 | |