1 |
commit: f5d0d9fcf03e7f67c4815305cd00b2cd738f082f |
2 |
Author: Sébastien Fabbro <sebfabbro <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Nov 28 21:35:17 2011 +0000 |
4 |
Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 28 21:35:17 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=f5d0d9fc |
7 |
|
8 |
fixed astromatic packages for recent ATLAS |
9 |
|
10 |
--- |
11 |
sci-astronomy/psfex/ChangeLog | 6 ++ |
12 |
sci-astronomy/psfex/psfex-3.9.1-r1.ebuild | 50 ++++++++++++ |
13 |
sci-astronomy/psfex/psfex-3.9.1.ebuild | 45 ----------- |
14 |
sci-astronomy/scamp/ChangeLog | 75 +++++++++++++++++ |
15 |
sci-astronomy/scamp/metadata.xml | 13 +++ |
16 |
sci-astronomy/scamp/scamp-1.7.0-r1.ebuild | 51 ++++++++++++ |
17 |
sci-astronomy/sextractor/ChangeLog | 48 +++++++++++ |
18 |
.../sextractor/files/sextractor-configure.patch | 84 ++++++++++++++++++++ |
19 |
sci-astronomy/sextractor/metadata.xml | 13 +++ |
20 |
.../sextractor/sextractor-2.8.6-r1.ebuild | 55 +++++++++++++ |
21 |
10 files changed, 395 insertions(+), 45 deletions(-) |
22 |
|
23 |
diff --git a/sci-astronomy/psfex/ChangeLog b/sci-astronomy/psfex/ChangeLog |
24 |
index 194a9b9..24df270 100644 |
25 |
--- a/sci-astronomy/psfex/ChangeLog |
26 |
+++ b/sci-astronomy/psfex/ChangeLog |
27 |
@@ -2,6 +2,12 @@ |
28 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
29 |
# $Header: $ |
30 |
|
31 |
+*psfex-3.9.1-r1 (28 Nov 2011) |
32 |
+ |
33 |
+ 28 Nov 2011; Sébastien Fabbro <bicatali@g.o> -psfex-3.9.1.ebuild, |
34 |
+ +psfex-3.9.1-r1.ebuild: |
35 |
+ Fixed for recent ATLAS. Switch to EAPI4 |
36 |
+ |
37 |
04 Aug 2011; Sébastien Fabbro <bicatali@g.o> metadata.xml: |
38 |
Switched herd to sci-astronomy |
39 |
|
40 |
|
41 |
diff --git a/sci-astronomy/psfex/psfex-3.9.1-r1.ebuild b/sci-astronomy/psfex/psfex-3.9.1-r1.ebuild |
42 |
new file mode 100644 |
43 |
index 0000000..d94b5c3 |
44 |
--- /dev/null |
45 |
+++ b/sci-astronomy/psfex/psfex-3.9.1-r1.ebuild |
46 |
@@ -0,0 +1,50 @@ |
47 |
+# Copyright 1999-2011 Gentoo Foundation |
48 |
+# Distributed under the terms of the GNU General Public License v2 |
49 |
+# $Header: $ |
50 |
+ |
51 |
+EAPI=4 |
52 |
+inherit eutils |
53 |
+ |
54 |
+DESCRIPTION="Extracts models of the Point Spread Function from FITS images" |
55 |
+HOMEPAGE="http://www.astromatic.net/software/psfex" |
56 |
+SRC_URI="http://www.astromatic.net/download/${PN}/${P}.tar.gz" |
57 |
+ |
58 |
+LICENSE="GPL-3" |
59 |
+SLOT="0" |
60 |
+KEYWORDS="~amd64 ~x86" |
61 |
+IUSE="doc plplot threads" |
62 |
+ |
63 |
+RDEPEND="virtual/cblas |
64 |
+ sci-libs/atlas |
65 |
+ sci-libs/fftw:3.0 |
66 |
+ plplot? ( sci-libs/plplot )" |
67 |
+DEPEND="${RDEPEND} |
68 |
+ dev-util/pkgconfig" |
69 |
+ |
70 |
+src_prepare() { |
71 |
+ local mycblas=atlcblas myclapack=atlclapack |
72 |
+ if use threads; then |
73 |
+ [[ -e ${EPREFIX}/usr/$(get_libdir)/libptcblas.so ]] && mycblas=ptcblas |
74 |
+ [[ -e ${EPREFIX}/usr/$(get_libdir)/libptclapack.so ]] && myclapack=ptclapack |
75 |
+ fi |
76 |
+ # fix the configure and not the acx_atlas.m4. the eautoreconf will |
77 |
+ # produce a configure giving a wrong install Makefile target (to fix) |
78 |
+ sed -i \ |
79 |
+ -e "s/-lcblas/-l${mycblas}/g" \ |
80 |
+ -e "s/AC_CHECK_LIB(cblas/AC_CHECK_LIB(${mycblas}/g" \ |
81 |
+ -e "s/-llapack/-l${myclapack}/g" \ |
82 |
+ -e "s/AC_CHECK_LIB(lapack/AC_CHECK_LIB(${myclapack}/g" \ |
83 |
+ configure || die "sed acx_atlas.m4 failed" |
84 |
+} |
85 |
+ |
86 |
+src_configure() { |
87 |
+ econf \ |
88 |
+ --with-atlas-incdir="${EROOT}/usr/include/atlas" \ |
89 |
+ $(use_with plplot) \ |
90 |
+ $(use_enable threads) |
91 |
+} |
92 |
+ |
93 |
+src_install () { |
94 |
+ default |
95 |
+ use doc && dodoc doc/*.pdf |
96 |
+} |
97 |
|
98 |
diff --git a/sci-astronomy/psfex/psfex-3.9.1.ebuild b/sci-astronomy/psfex/psfex-3.9.1.ebuild |
99 |
deleted file mode 100644 |
100 |
index 3530ea9..0000000 |
101 |
--- a/sci-astronomy/psfex/psfex-3.9.1.ebuild |
102 |
+++ /dev/null |
103 |
@@ -1,45 +0,0 @@ |
104 |
-# Copyright 1999-2010 Gentoo Foundation |
105 |
-# Distributed under the terms of the GNU General Public License v2 |
106 |
-# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/scamp/scamp-1.7.0.ebuild,v 1.1 2010/05/03 21:44:04 bicatali Exp $ |
107 |
- |
108 |
-EAPI=3 |
109 |
-inherit eutils |
110 |
- |
111 |
-DESCRIPTION="Extracts models of the Point Spread Function from FITS images" |
112 |
-HOMEPAGE="http://www.astromatic.net/software/psfex" |
113 |
-SRC_URI="http://www.astromatic.net/download/${PN}/${P}.tar.gz" |
114 |
- |
115 |
-LICENSE="GPL-3" |
116 |
-SLOT="0" |
117 |
-KEYWORDS="~amd64 ~x86" |
118 |
-IUSE="doc plplot threads" |
119 |
- |
120 |
-RDEPEND="virtual/cblas |
121 |
- sci-libs/lapack-atlas |
122 |
- sci-libs/fftw:3.0 |
123 |
- plplot? ( sci-libs/plplot )" |
124 |
-DEPEND="${RDEPEND} |
125 |
- dev-util/pkgconfig" |
126 |
- |
127 |
-src_prepare() { |
128 |
- # gentoo uses cblas instead of ptcblas (linked to threaded with eselect) |
129 |
- sed -i \ |
130 |
- -e 's/ptcblas/cblas/g' \ |
131 |
- configure || die "sed failed" |
132 |
-} |
133 |
- |
134 |
-src_configure() { |
135 |
- econf \ |
136 |
- --with-atlas="${EPREFIX}/usr/$(get_libdir)/lapack/atlas" \ |
137 |
- $(use_with plplot) \ |
138 |
- $(use_enable threads) |
139 |
-} |
140 |
- |
141 |
-src_install () { |
142 |
- emake DESTDIR="${D}" install || die "emake install failed" |
143 |
- dodoc AUTHORS ChangeLog HISTORY README THANKS BUGS |
144 |
- if use doc; then |
145 |
- insinto /usr/share/doc/${PF} |
146 |
- doins doc/*.pdf || die "pdf doc install failed" |
147 |
- fi |
148 |
-} |
149 |
|
150 |
diff --git a/sci-astronomy/scamp/ChangeLog b/sci-astronomy/scamp/ChangeLog |
151 |
new file mode 100644 |
152 |
index 0000000..2de8c44 |
153 |
--- /dev/null |
154 |
+++ b/sci-astronomy/scamp/ChangeLog |
155 |
@@ -0,0 +1,75 @@ |
156 |
+# ChangeLog for sci-astronomy/scamp |
157 |
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
158 |
+# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/scamp/ChangeLog,v 1.7 2011/08/04 18:32:22 bicatali Exp $ |
159 |
+ |
160 |
+*scamp-1.7.0-r1 (28 Nov 2011) |
161 |
+ |
162 |
+ 28 Nov 2011; Sébastien Fabbro <bicatali@g.o> +scamp-1.7.0-r1.ebuild, |
163 |
+ +metadata.xml: |
164 |
+ Fixed for recent ATLAS. Switch to EAPI4 |
165 |
+ |
166 |
+ 04 Aug 2011; Sébastien Fabbro <bicatali@g.o> metadata.xml: |
167 |
+ Switched herd to sci-astronomy |
168 |
+ |
169 |
+*scamp-1.7.0 (03 May 2010) |
170 |
+ |
171 |
+ 03 May 2010; Sébastien Fabbro <bicatali@g.o> -scamp-1.5.5.ebuild, |
172 |
+ +scamp-1.7.0.ebuild: |
173 |
+ Version bump |
174 |
+ |
175 |
+*scamp-1.6.2 (04 Nov 2009) |
176 |
+ |
177 |
+ 04 Nov 2009; Sébastien Fabbro <bicatali@g.o> -scamp-1.4.6.ebuild, |
178 |
+ +scamp-1.6.2.ebuild: |
179 |
+ Version bump |
180 |
+ |
181 |
+ 28 Jul 2009; Sébastien Fabbro <bicatali@g.o> scamp-1.5.5.ebuild: |
182 |
+ Updated license to CeCILL-2 |
183 |
+ |
184 |
+*scamp-1.5.5 (28 Jul 2009) |
185 |
+ |
186 |
+ 28 Jul 2009; Sébastien Fabbro <bicatali@g.o> +scamp-1.5.5.ebuild, |
187 |
+ +files/scamp-1.5.5-autotools.patch: |
188 |
+ Version bumpp |
189 |
+ |
190 |
+ 05 Mar 2009; Sébastien Fabbro <bicatali@g.o> |
191 |
+ files/scamp-1.4.6-autotools.patch: |
192 |
+ More plplot patching |
193 |
+ |
194 |
+*scamp-1.4.6 (26 Feb 2009) |
195 |
+ |
196 |
+ 26 Feb 2009; Sébastien Fabbro <bicatali@g.o> |
197 |
+ +files/scamp-1.4.6-autotools.patch, +metadata.xml, +scamp-1.4.6.ebuild: |
198 |
+ Initial import to the main tree from the sci overlay. Also included |
199 |
+ autotools from scamp svn public repository for better dependencies |
200 |
+ |
201 |
+ 02 Jul 2008; Sébastien Fabbro <bicatali@g.o> |
202 |
+ +files/scamp-1.4.6-plplot.patch, -files/scamp-atlas.patch, |
203 |
+ -scamp-1.4.0.ebuild, +scamp-1.4.6.ebuild: |
204 |
+ Version bump. |
205 |
+ |
206 |
+ 08 Nov 2007; Sébastien Fabbro <bicatali@g.o> |
207 |
+ +files/scamp-atlas.patch, -scamp-1.3.11.ebuild, +scamp-1.4.0.ebuild: |
208 |
+ Version bump |
209 |
+ |
210 |
+ 02 Aug 2007; Sébastien Fabbro <bicatali@g.o> -scamp-1.3.8.ebuild, |
211 |
+ +scamp-1.3.11.ebuild: |
212 |
+ Version bump |
213 |
+ |
214 |
+ 18 May 2007; Sébastien Fabbro <bicatali@g.o> -scamp-1.3.5.ebuild, |
215 |
+ +scamp-1.3.8.ebuild: |
216 |
+ Version bump |
217 |
+ |
218 |
+ 26 Mar 2007; Sébastien Fabbro <bicatali@g.o> |
219 |
+ -scamp-1.2.11-r1.ebuild, +scamp-1.3.5.ebuild: |
220 |
+ Version bump. |
221 |
+ |
222 |
+ 29 Dec 2006; Sebastien Fabbro <seb@×××××××.pt>; |
223 |
+ Removed icc flag, too buggy. |
224 |
+ |
225 |
+ 15 Oct 2006; Sebastien Fabbro <seb@×××××××.pt> +scamp-1.2.11-r1.ebuild: |
226 |
+ Removed flag filtering, some cleaning. |
227 |
+ |
228 |
+ 19 Sep 2006; Sebastien Fabbro <seb@×××××××.pt> +scamp-1.2.11.ebuild: |
229 |
+ Initial import. |
230 |
+ |
231 |
|
232 |
diff --git a/sci-astronomy/scamp/metadata.xml b/sci-astronomy/scamp/metadata.xml |
233 |
new file mode 100644 |
234 |
index 0000000..edd8754 |
235 |
--- /dev/null |
236 |
+++ b/sci-astronomy/scamp/metadata.xml |
237 |
@@ -0,0 +1,13 @@ |
238 |
+<?xml version="1.0" encoding="UTF-8"?> |
239 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
240 |
+<pkgmetadata> |
241 |
+<herd>sci-astronomy</herd> |
242 |
+<longdescription lang="en"> |
243 |
+ SCAMP computes astrometric and photometric solutions from SExtractor catalogs |
244 |
+ and stores them in header files. These headers files can be read by SWarp to |
245 |
+ coadd images. |
246 |
+</longdescription> |
247 |
+<use> |
248 |
+ <flag name="plplot">Build with <pkg>sci-libs/plplot</pkg> to allow diagnostic plots during processing</flag> |
249 |
+</use> |
250 |
+</pkgmetadata> |
251 |
|
252 |
diff --git a/sci-astronomy/scamp/scamp-1.7.0-r1.ebuild b/sci-astronomy/scamp/scamp-1.7.0-r1.ebuild |
253 |
new file mode 100644 |
254 |
index 0000000..7c1b385 |
255 |
--- /dev/null |
256 |
+++ b/sci-astronomy/scamp/scamp-1.7.0-r1.ebuild |
257 |
@@ -0,0 +1,51 @@ |
258 |
+# Copyright 1999-2011 Gentoo Foundation |
259 |
+# Distributed under the terms of the GNU General Public License v2 |
260 |
+# $Header: $ |
261 |
+ |
262 |
+EAPI=4 |
263 |
+inherit eutils |
264 |
+ |
265 |
+DESCRIPTION="Astrometric and photometric solutions for astronomical images" |
266 |
+HOMEPAGE="http://www.astromatic.net/software/scamp" |
267 |
+SRC_URI="http://www.astromatic.net/download/${PN}/${P}.tar.gz" |
268 |
+ |
269 |
+LICENSE="CeCILL-2" |
270 |
+SLOT="0" |
271 |
+KEYWORDS="~amd64 ~x86" |
272 |
+IUSE="doc threads plplot" |
273 |
+ |
274 |
+RDEPEND=">=sci-astronomy/cdsclient-3.4 |
275 |
+ virtual/cblas |
276 |
+ sci-libs/atlas |
277 |
+ sci-libs/fftw:3.0 |
278 |
+ plplot? ( sci-libs/plplot )" |
279 |
+DEPEND="${RDEPEND} |
280 |
+ dev-util/pkgconfig" |
281 |
+ |
282 |
+src_prepare() { |
283 |
+ local mycblas=atlcblas myclapack=atlclapack |
284 |
+ if use threads; then |
285 |
+ [[ -e ${EPREFIX}/usr/$(get_libdir)/libptcblas.so ]] && mycblas=ptcblas |
286 |
+ [[ -e ${EPREFIX}/usr/$(get_libdir)/libptclapack.so ]] && myclapack=ptclapack |
287 |
+ fi |
288 |
+ # fix the configure and not the acx_atlas.m4. the eautoreconf will |
289 |
+ # produce a configure giving a wrong install Makefile target (to fix) |
290 |
+ sed -i \ |
291 |
+ -e "s/-lcblas/-l${mycblas}/g" \ |
292 |
+ -e "s/AC_CHECK_LIB(cblas/AC_CHECK_LIB(${mycblas}/g" \ |
293 |
+ -e "s/-llapack/-l${myclapack}/g" \ |
294 |
+ -e "s/AC_CHECK_LIB(lapack/AC_CHECK_LIB(${myclapack}/g" \ |
295 |
+ configure || die "sed acx_atlas.m4 failed" |
296 |
+} |
297 |
+ |
298 |
+src_configure() { |
299 |
+ econf \ |
300 |
+ --with-atlas-incdir="${EROOT}/usr/include/atlas" \ |
301 |
+ $(use_with plplot) \ |
302 |
+ $(use_enable threads) |
303 |
+} |
304 |
+ |
305 |
+src_install () { |
306 |
+ default |
307 |
+ use doc && dodoc doc/*,pdf |
308 |
+} |
309 |
|
310 |
diff --git a/sci-astronomy/sextractor/ChangeLog b/sci-astronomy/sextractor/ChangeLog |
311 |
new file mode 100644 |
312 |
index 0000000..67fe448 |
313 |
--- /dev/null |
314 |
+++ b/sci-astronomy/sextractor/ChangeLog |
315 |
@@ -0,0 +1,48 @@ |
316 |
+# ChangeLog for sci-astronomy/sextractor |
317 |
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
318 |
+# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/sextractor/ChangeLog,v 1.3 2011/08/04 18:32:38 bicatali Exp $ |
319 |
+ |
320 |
+*sextractor-2.8.6-r1 (28 Nov 2011) |
321 |
+ |
322 |
+ 28 Nov 2011; Sébastien Fabbro <bicatali@g.o> |
323 |
+ +sextractor-2.8.6-r1.ebuild, +files/sextractor-configure.patch, |
324 |
+ +metadata.xml: |
325 |
+ Fixed for recent ATLAS. Switch to EAPI4 |
326 |
+ |
327 |
+ 04 Aug 2011; Sébastien Fabbro <bicatali@g.o> metadata.xml: |
328 |
+ Switched herd to sci-astronomy |
329 |
+ |
330 |
+*sextractor-2.8.6 (28 Jul 2009) |
331 |
+ |
332 |
+ 28 Jul 2009; Sébastien Fabbro <bicatali@g.o> |
333 |
+ +sextractor-2.8.6.ebuild, +files/sextractor-configure.patch: |
334 |
+ Version bump |
335 |
+ |
336 |
+*sextractor-2.5.0 (17 Feb 2009) |
337 |
+ |
338 |
+ 17 Feb 2009; Sébastien Fabbro <bicatali@g.o> +metadata.xml, |
339 |
+ +sextractor-2.5.0.ebuild: |
340 |
+ Initial import to the main tree from the sci overlay, closing bug #65684 |
341 |
+ |
342 |
+ 02 Aug 2007; Sébastien Fabbro <bicatali@g.o> |
343 |
+ sextractor-2.5.0-r1.ebuild: |
344 |
+ filter optim flags |
345 |
+ |
346 |
+ 26 Mar 2007; Sébastien Fabbro <bicatali@g.o> |
347 |
+ sextractor-2.5.0-r1.ebuild: |
348 |
+ Cleaning, adapting for new portage. |
349 |
+ |
350 |
+ 29 Dec 2006; Sebastien Fabbro <seb@×××××××.pt>; |
351 |
+ Removed icc flag, too buggy. |
352 |
+ |
353 |
+ 15 Oct 2006; Sebastien Fabbro <seb@×××××××.pt> |
354 |
+ +sextractor-2.5.0-r1.ebuild -sextractor-2.5.0.ebuild |
355 |
+ -sextractor-2.4.4.ebuild: removed flag filtering, cleaning, |
356 |
+ removed old versions. |
357 |
+ |
358 |
+ 06 Sep 2006; Sebastien Fabbro <seb@×××××××.pt> +sextractor-2.5.0.ebuild: |
359 |
+ Version bump. |
360 |
+ |
361 |
+ 26 Nov 2005; Sebastien Fabbro <seb@×××××××.pt> +sextractor-2.4.4.ebuild: |
362 |
+ Initial import. Close bug #65684 |
363 |
+ |
364 |
|
365 |
diff --git a/sci-astronomy/sextractor/files/sextractor-configure.patch b/sci-astronomy/sextractor/files/sextractor-configure.patch |
366 |
new file mode 100644 |
367 |
index 0000000..dc8957b |
368 |
--- /dev/null |
369 |
+++ b/sci-astronomy/sextractor/files/sextractor-configure.patch |
370 |
@@ -0,0 +1,84 @@ |
371 |
+--- configure.ac.orig 2009-04-09 14:28:38.000000000 +0100 |
372 |
++++ configure.ac 2009-07-28 18:25:38.000000000 +0100 |
373 |
+@@ -22,42 +22,19 @@ |
374 |
+ # Include macros |
375 |
+ sinclude(acx_atlas.m4) |
376 |
+ sinclude(acx_fftw.m4) |
377 |
+-sinclude(acx_prog_cc_optim.m4) |
378 |
+ sinclude(acx_pthread.m4) |
379 |
+ sinclude(acx_urbi_resolve_dir.m4) |
380 |
+ |
381 |
+ # Display pakage and version number |
382 |
+ AC_MSG_RESULT([*********** Configuring: $PACKAGE $VERSION ($date) **********]) |
383 |
+ |
384 |
+-# Initialize the list of compilers to consider |
385 |
+-cclist="cc gcc" |
386 |
+- |
387 |
+-# Backup and reset the input CFLAGS and LDFLAGS |
388 |
+-mycflags="$CFLAGS" |
389 |
+-CFLAGS="" |
390 |
+-myldflags="$LDFLAGS" |
391 |
+-LDFLAGS="" |
392 |
+- |
393 |
+-# Provide special option for the Linux Intel C compiler |
394 |
+-AC_MSG_CHECKING([for Linux Intel C compiler mode]) |
395 |
+-AC_ARG_ENABLE(icc, |
396 |
+- [AC_HELP_STRING([--enable-icc], |
397 |
+- [Enable special mode for compilation with the Intel compiler \ |
398 |
+-(off by default)])], |
399 |
+- use_icc="yes" |
400 |
+- cclist="icc $cclist" |
401 |
+- AC_MSG_RESULT([yes]), |
402 |
+- use_icc="no" |
403 |
+- AC_MSG_RESULT([no])) |
404 |
+- |
405 |
+ # Checks for programs. |
406 |
+ # GCC is chosen last because it is likely to yield less optimized code |
407 |
+ AC_LANG(C) |
408 |
+-AC_PROG_CC([$cclist]) |
409 |
++AC_PROG_CC |
410 |
+ # C Compiler: Check that it is ANSI C and POSIX-compliant |
411 |
+ AM_PROG_CC_STDC |
412 |
+ AC_ISC_POSIX |
413 |
+-ACX_PROG_CC_OPTIM |
414 |
+ AC_DISABLE_STATIC |
415 |
+ #AC_DISABLE_SHARED |
416 |
+ AC_PROG_LIBTOOL |
417 |
+@@ -160,17 +137,6 @@ |
418 |
+ use_gprof="no" |
419 |
+ AC_MSG_RESULT([no])) |
420 |
+ |
421 |
+-# Enable static linking |
422 |
+-AC_MSG_CHECKING([static linking]) |
423 |
+-AC_ARG_ENABLE(static, |
424 |
+- [AC_HELP_STRING([--enable-static], |
425 |
+- [Enable static linking \ |
426 |
+-(off by default)])], |
427 |
+- use_static="yes" |
428 |
+- AC_MSG_RESULT([yes]), |
429 |
+- use_static="no" |
430 |
+- AC_MSG_RESULT([no])) |
431 |
+- |
432 |
+ ################# Actions to complete in case of multhreading ################ |
433 |
+ AC_DEFINE_UNQUOTED(THREADS_NMAX, $n_pthreads,[Maximum number of POSIX threads]) |
434 |
+ if test "$use_pthreads" = "yes"; then |
435 |
+@@ -205,19 +171,9 @@ |
436 |
+ |
437 |
+ # Link with gprof option |
438 |
+ if test "$use_gprof" = "yes"; then |
439 |
+- if test "$use_icc" = "yes"; then |
440 |
+- CFLAGS="$CFLAGS -pq" |
441 |
+- else |
442 |
+- CFLAGS="$CFLAGS -pg" |
443 |
+- fi |
444 |
+ use_static="no" |
445 |
+ fi |
446 |
+ |
447 |
+-# Static linking option |
448 |
+-if test "$use_static" = "yes"; then |
449 |
+- LDFLAGS="-static -shared-libgcc $LDFLAGS" |
450 |
+-fi |
451 |
+- |
452 |
+ # Override automatic CFLAGS and LDFLAGS with those of user |
453 |
+ #if test -n "$mycflags"; then |
454 |
+ #CFLAGS="$mycflags" |
455 |
|
456 |
diff --git a/sci-astronomy/sextractor/metadata.xml b/sci-astronomy/sextractor/metadata.xml |
457 |
new file mode 100644 |
458 |
index 0000000..8b8931e |
459 |
--- /dev/null |
460 |
+++ b/sci-astronomy/sextractor/metadata.xml |
461 |
@@ -0,0 +1,13 @@ |
462 |
+<?xml version="1.0" encoding="UTF-8"?> |
463 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
464 |
+<pkgmetadata> |
465 |
+<herd>sci-astronomy</herd> |
466 |
+<longdescription lang="en"> |
467 |
+ SExtractor (Source Extractor) is a program that builds a catalogue of |
468 |
+ objects from an astronomical image. Although it is particularly |
469 |
+ oriented towards reduction of large scale galaxy-survey data, it |
470 |
+ performs rather well on moderately crowded star fields. It has the |
471 |
+ ability to automatically separate stars and galaxy using neural |
472 |
+ networks. |
473 |
+</longdescription> |
474 |
+</pkgmetadata> |
475 |
|
476 |
diff --git a/sci-astronomy/sextractor/sextractor-2.8.6-r1.ebuild b/sci-astronomy/sextractor/sextractor-2.8.6-r1.ebuild |
477 |
new file mode 100644 |
478 |
index 0000000..1db0e06 |
479 |
--- /dev/null |
480 |
+++ b/sci-astronomy/sextractor/sextractor-2.8.6-r1.ebuild |
481 |
@@ -0,0 +1,55 @@ |
482 |
+# Copyright 1999-2011 Gentoo Foundation |
483 |
+# Distributed under the terms of the GNU General Public License v2 |
484 |
+# $Header: $ |
485 |
+ |
486 |
+EAPI=4 |
487 |
+inherit eutils autotools |
488 |
+ |
489 |
+DESCRIPTION="Extract catalogs of sources from astronomical FITS images" |
490 |
+HOMEPAGE="http://www.astromatic.net/software/sextractor" |
491 |
+SRC_URI="http://www.astromatic.net/download/${PN}/${P}.tar.gz" |
492 |
+ |
493 |
+LICENSE="CeCILL-2" |
494 |
+SLOT="0" |
495 |
+KEYWORDS="~amd64 ~x86" |
496 |
+IUSE="doc threads" |
497 |
+ |
498 |
+RDEPEND="virtual/cblas |
499 |
+ sci-libs/atlas[lapack] |
500 |
+ sci-libs/fftw:3.0" |
501 |
+DEPEND="${RDEPEND}" |
502 |
+ |
503 |
+src_prepare() { |
504 |
+ epatch "${FILESDIR}"/${PN}-configure.patch |
505 |
+ local mycblas=atlcblas myclapack=atlclapack |
506 |
+ if use threads; then |
507 |
+ [[ -e ${EPREFIX}/usr/$(get_libdir)/libptcblas.so ]] && mycblas=ptcblas |
508 |
+ [[ -e ${EPREFIX}/usr/$(get_libdir)/libptclapack.so ]] && myclapack=ptclapack |
509 |
+ fi |
510 |
+ sed -i \ |
511 |
+ -e "s/-lcblas/-l${mycblas}/g" \ |
512 |
+ -e "s/AC_CHECK_LIB(cblas/AC_CHECK_LIB(${mycblas}/g" \ |
513 |
+ -e "s/-llapack/-l${myclapack}/g" \ |
514 |
+ -e "s/AC_CHECK_LIB(lapack/AC_CHECK_LIB(${myclapack}/g" \ |
515 |
+ acx_atlas.m4 || die "sed acx_atlas.m4 failed" |
516 |
+ eautoreconf |
517 |
+} |
518 |
+ |
519 |
+src_configure() { |
520 |
+ econf \ |
521 |
+ --with-atlas-incdir="${EPREFIX}/usr/include/atlas" \ |
522 |
+ $(use_enable threads) |
523 |
+} |
524 |
+ |
525 |
+src_install () { |
526 |
+ default |
527 |
+ CONFDIR=/usr/share/sextractor |
528 |
+ insinto ${CONFDIR} |
529 |
+ doins config/* |
530 |
+ use doc && dodoc doc/* |
531 |
+} |
532 |
+ |
533 |
+pkg_postinst() { |
534 |
+ elog "SExtractor examples configuration files are located" |
535 |
+ elog "in ${EROOT}/${CONFDIR} and are not loaded anymore by default." |
536 |
+} |