Gentoo Archives: gentoo-commits

From: Sebastien Fabbro <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: /
Date: Thu, 04 Aug 2011 21:06:07
Message-Id: 4d51de421d7ef6263583ae9949814fdc45201ab6.bicatali@gentoo
1 commit: 4d51de421d7ef6263583ae9949814fdc45201ab6
2 Author: Sébastien Fabbro <sebfabbro <AT> gmail <DOT> com>
3 AuthorDate: Thu Aug 4 21:05:46 2011 +0000
4 Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 4 21:05:46 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=4d51de42
7
8 updating skel files
9
10 ---
11 skel.ChangeLog | 2 +-
12 skel.ebuild | 63 +++++++++++++++++++++++++++++++++-------------------
13 skel.metadata.xml | 34 +++++++++++++++++++++++++---
14 3 files changed, 71 insertions(+), 28 deletions(-)
15
16 diff --git a/skel.ChangeLog b/skel.ChangeLog
17 index c3d77a8..6eff27d 100644
18 --- a/skel.ChangeLog
19 +++ b/skel.ChangeLog
20 @@ -1,5 +1,5 @@
21 # ChangeLog for <CATEGORY>/<PACKAGE_NAME>
22 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
23 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
24 # $Header: $
25
26 *<PACKAGE_NAME>-<PACKAGE_VERSION>-<PACKAGE_RELEASE> (DD MMM YYYY)
27
28 diff --git a/skel.ebuild b/skel.ebuild
29 index f7a3536..7c3273c 100644
30 --- a/skel.ebuild
31 +++ b/skel.ebuild
32 @@ -1,4 +1,4 @@
33 -# Copyright 1999-2009 Gentoo Foundation
34 +# Copyright 1999-2011 Gentoo Foundation
35 # Distributed under the terms of the GNU General Public License v2
36 # $Header: $
37
38 @@ -12,23 +12,22 @@
39 # generated to contain the correct data.
40
41 # The EAPI variable tells the ebuild format in use.
42 -# Defaults to 0 if not specified. The current PMS draft contains details on
43 -# a proposed EAPI=0 definition but is not finalized yet.
44 -# Eclasses will test for this variable if they need to use EAPI > 0 features.
45 -# Ebuilds should not define EAPI > 0 unless they absolutely need to use
46 -# features added in that version.
47 -#EAPI=0
48 +# Defaults to 0 if not specified.
49 +# It is suggested that you the latest EAPI approved by the Council.
50 +# The PMS contains specifications for all EAPIs. Eclasses will test for this
51 +# variable if they need to use EAPI > 0 features.
52 +EAPI=4
53
54 # inherit lists eclasses to inherit functions from. Almost all ebuilds should
55 # inherit eutils, as a large amount of important functionality has been
56 -# moved there. For example, the $(get_libdir) mentioned below wont work
57 +# moved there. For example, the epatch call mentioned below wont work
58 # without the following line:
59 inherit eutils
60 # A well-used example of an eclass function that needs eutils is epatch. If
61 # your source needs patches applied, it's suggested to put your patch in the
62 # 'files' directory and use:
63 #
64 -# epatch ${FILESDIR}/patch-name-here
65 +# epatch "${FILESDIR}"/patch-name-here
66 #
67 # eclasses tend to list descriptions of how to use their functions properly.
68 # take a look at /usr/portage/eclasses/ for more examples.
69 @@ -43,6 +42,7 @@ HOMEPAGE="http://foo.bar.com/"
70 # Portage.
71 SRC_URI="ftp://foo.bar.com/${P}.tar.gz"
72
73 +
74 # License of the package. This must match the name of file(s) in
75 # /usr/portage/licenses/. For complex license combination see the developer
76 # docs on gentoo.org for details.
77 @@ -65,7 +65,7 @@ SLOT="0"
78 # instead of relying on an external package.mask file. Right now, you should
79 # set the KEYWORDS variable for every ebuild so that it contains the names of
80 # all the architectures with which the ebuild works. All of the official
81 -# architectures can be found in the keywords.desc file which is in
82 +# architectures can be found in the arch.list file which is in
83 # /usr/portage/profiles/. Usually you should just set this to "~x86". The ~
84 # in front of the architecture indicates that the package is new and should be
85 # considered unstable until testing proves its stability. So, if you've
86 @@ -89,6 +89,7 @@ IUSE="gnome X"
87 # for details. Usually not needed.
88 #RESTRICT="strip"
89
90 +
91 # Build-time dependencies, such as
92 # ssl? ( >=dev-libs/openssl-0.9.6b )
93 # >=dev-lang/perl-5.6.1-r1
94 @@ -96,7 +97,7 @@ IUSE="gnome X"
95 # had installed on your system when you tested the package. Then
96 # other users hopefully won't be caught without the right version of
97 # a dependency.
98 -DEPEND=""
99 +#DEPEND=""
100
101 # Run-time dependencies. Must be defined to whatever this depends on to run.
102 # The below is valid if the same run-time depends are required to compile.
103 @@ -108,10 +109,14 @@ RDEPEND="${DEPEND}"
104 # to keep it tidy.
105 #S="${WORKDIR}/${P}"
106
107 -src_compile() {
108 +
109 +# The following src_configure function is implemented as default by portage, so
110 +# you only need to call it if you need a different behaviour.
111 +# This function is available only in EAPI 2 and later.
112 +#src_configure() {
113 # Most open-source packages use GNU autoconf for configuration.
114 - # The quickest (and preferred) way of running configure is:
115 - econf || die "econf failed"
116 + # The default, quickest (and preferred) way of running configure is:
117 + #econf
118 #
119 # You could use something similar to the following lines to
120 # configure your package before compilation. The "|| die" portion
121 @@ -123,11 +128,18 @@ src_compile() {
122 # --host=${CHOST} \
123 # --prefix=/usr \
124 # --infodir=/usr/share/info \
125 - # --mandir=/usr/share/man || die "./configure failed"
126 + # --mandir=/usr/share/man || die
127 # Note the use of --infodir and --mandir, above. This is to make
128 # this package FHS 2.2-compliant. For more information, see
129 # http://www.pathname.com/fhs/
130 -
131 +#}
132 +
133 +# The following src_compile function is implemented as default by portage, so
134 +# you only need to call it, if you need different behaviour.
135 +# For EAPI < 2 src_compile runs also commands currently present in
136 +# src_configure. Thus, if you're using an older EAPI, you need to copy them
137 +# to your src_compile and drop the src_configure function.
138 +#src_compile() {
139 # emake (previously known as pmake) is a script that calls the
140 # standard GNU make with parallel building options for speedier
141 # builds (especially on SMP systems). Try emake first. It might
142 @@ -135,15 +147,20 @@ src_compile() {
143 # related to parallelism, in these cases, use emake -j1 to limit
144 # make to a single process. The -j1 is a visual clue to others
145 # that the makefiles have bugs that have been worked around.
146 - emake || die "emake failed"
147 -}
148
149 -src_install() {
150 + #emake || die
151 +#}
152 +
153 +# The following src_install function is implemented as default by portage, so
154 +# you only need to call it, if you need different behaviour.
155 +# For EAPI < 4 src_install is just returing true, so you need to always specify
156 +# this function in older EAPIs.
157 +#src_install() {
158 # You must *personally verify* that this trick doesn't install
159 # anything outside of DESTDIR; do this by reading and
160 # understanding the install part of the Makefiles.
161 # This is the preferred way to install.
162 - emake DESTDIR="${D}" install || die "emake install failed"
163 + #emake DESTDIR="${D}" install || die
164
165 # When you hit a failure with emake, do not just use make. It is
166 # better to fix the Makefiles to allow proper parallelization.
167 @@ -159,11 +176,11 @@ src_install() {
168 # mandir="${D}"/usr/share/man \
169 # infodir="${D}"/usr/share/info \
170 # libdir="${D}"/usr/$(get_libdir) \
171 - # install || die "emake install failed"
172 + # install || die
173 # Again, verify the Makefiles! We don't want anything falling
174 # outside of ${D}.
175
176 # The portage shortcut to the above command is simply:
177 #
178 - #einstall || die "einstall failed"
179 -}
180 + #einstall || die
181 +#}
182
183 diff --git a/skel.metadata.xml b/skel.metadata.xml
184 index d747d72..d31449d 100644
185 --- a/skel.metadata.xml
186 +++ b/skel.metadata.xml
187 @@ -1,8 +1,34 @@
188 <?xml version="1.0" encoding="UTF-8"?>
189 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
190 +<!--
191 +This is the example metadata file.
192 +The root element of this file is <pkgmetadata>. Within this element a
193 +number of subelements are allowed: herd, maintainer, and
194 +longdescription. herd is a required subelement.
195 +
196 +For a full description look at:
197 +http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=4
198 +
199 +
200 +Before committing, please remove the comments from this file. They are
201 +not relevant for general metadata.xml files.
202 +-->
203 <pkgmetadata>
204 - <herd>sci</herd>
205 - <maintainer>
206 - <email>sci@g.o</email>
207 - </maintainer>
208 +<herd>sci</herd>
209 +<maintainer>
210 + <email>@gentoo.org</email>
211 +<!-- <description>Description of the maintainership</description> -->
212 +</maintainer>
213 +<longdescription>
214 + Long description of the package
215 +</longdescription>
216 +<!--
217 +<use>
218 + <flag name='flag'>Description of how USE='flag' affects this package</flag>
219 + <flag name='userland_GNU'>Description of how USERLAND='GNU' affects this
220 + package</flag>
221 + <flag name='aspell'>Uses <pkg>app-text/aspell</pkg> for spell checking.
222 + Requires an installed dictionary from <cat>app-dicts</cat></flag>
223 +</use>
224 +-->
225 </pkgmetadata>