1 |
commit: 631d058a2edd1bffb2847cd350da85628a9a62c2 |
2 |
Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 24 18:52:54 2015 +0000 |
4 |
Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 24 18:52:54 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/dev/bicatali.git/commit/?id=631d058a |
7 |
|
8 |
sci-libs/cfitsio: version bump, switch to multilib |
9 |
|
10 |
Package-Manager: portage-2.2.25 |
11 |
|
12 |
sci-libs/cfitsio/Manifest | 1 + |
13 |
sci-libs/cfitsio/cfitsio-3.37.ebuild | 60 ++++++++++++++++++++++++++++++++++++ |
14 |
sci-libs/cfitsio/metadata.xml | 18 +++++++++++ |
15 |
3 files changed, 79 insertions(+) |
16 |
|
17 |
diff --git a/sci-libs/cfitsio/Manifest b/sci-libs/cfitsio/Manifest |
18 |
new file mode 100644 |
19 |
index 0000000..d92d091 |
20 |
--- /dev/null |
21 |
+++ b/sci-libs/cfitsio/Manifest |
22 |
@@ -0,0 +1 @@ |
23 |
+DIST cfitsio-3.37.tar.gz 4135218 SHA256 68058d5c805a3a63f3fe62dafcc8cc80afe2e2b34e10e16a9b1fb38376c0acbf SHA512 31ec98cc700dad0deabbb7349b1a018d2d4aa79ae3f70fa28397bb43b1420c7107697443bc2bd43c88b372477676d9f8c22a6731114d51379312faf6d0936752 WHIRLPOOL b18921d174248a35186b3457ede8858a48136568d03cfda37a29d968cc43c817dd956d95e9f18f4d214b1ce36a2c564e9369d2e4fed562e19c7eb48992735783 |
24 |
|
25 |
diff --git a/sci-libs/cfitsio/cfitsio-3.37.ebuild b/sci-libs/cfitsio/cfitsio-3.37.ebuild |
26 |
new file mode 100644 |
27 |
index 0000000..17085d1 |
28 |
--- /dev/null |
29 |
+++ b/sci-libs/cfitsio/cfitsio-3.37.ebuild |
30 |
@@ -0,0 +1,60 @@ |
31 |
+# Copyright 1999-2015 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+# $Id$ |
34 |
+ |
35 |
+EAPI=5 |
36 |
+ |
37 |
+FORTRAN_NEEDED=fortran |
38 |
+ |
39 |
+inherit autotools-multilib fortran-2 |
40 |
+ |
41 |
+DESCRIPTION="C and Fortran library for manipulating FITS files" |
42 |
+HOMEPAGE="http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html" |
43 |
+SRC_URI="https://dev.gentoo.org/~bicatali/distfiles/${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="MIT" |
46 |
+SLOT="0/2" |
47 |
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x64-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris" |
48 |
+IUSE="bzip2 doc examples fortran static-libs +tools threads" |
49 |
+ |
50 |
+RDEPEND=" |
51 |
+ sys-libs/zlib[${MULTILIB_USEDEP}] |
52 |
+ bzip2? ( app-arch/bzip2[${MULTILIB_USEDEP}] )" |
53 |
+DEPEND="${RDEPEND} |
54 |
+ fortran? ( dev-lang/cfortran )" |
55 |
+ |
56 |
+pkg_setup() { |
57 |
+ use fortran && fortran-2_pkg_setup |
58 |
+} |
59 |
+ |
60 |
+src_prepare() { |
61 |
+ # avoid internal cfortran |
62 |
+ if use fortran; then |
63 |
+ mv cfortran.h cfortran.h.disabled |
64 |
+ ln -s "${EPREFIX}"/usr/include/cfortran.h . || die |
65 |
+ fi |
66 |
+ autotools-multilib_src_prepare |
67 |
+} |
68 |
+ |
69 |
+src_configure() { |
70 |
+ local myeconfargs=( |
71 |
+ $(use_enable fortran) |
72 |
+ $(use_enable threads) |
73 |
+ $(use_enable tools) |
74 |
+ $(use_with bzip2) |
75 |
+ ) |
76 |
+ autotools-multilib_src_configure |
77 |
+} |
78 |
+ |
79 |
+src_install () { |
80 |
+ autotools-multilib_src_install |
81 |
+ dodoc README README.md CHANGES.md docs/changes.txt docs/cfitsio.doc |
82 |
+ use fortran && dodoc docs/fitsio.doc |
83 |
+ use doc && dodoc docs/{quick,cfitsio,fpackguide}.pdf |
84 |
+ use doc && use fortran && dodoc docs/fitsio.pdf |
85 |
+ if use examples; then |
86 |
+ insinto /usr/share/doc/${PF}/examples |
87 |
+ doins cookbook.c testprog.c speed.c smem.c |
88 |
+ use fortran && doins cookbook.f testf77.f |
89 |
+ fi |
90 |
+} |
91 |
|
92 |
diff --git a/sci-libs/cfitsio/metadata.xml b/sci-libs/cfitsio/metadata.xml |
93 |
new file mode 100644 |
94 |
index 0000000..3a1d7ee |
95 |
--- /dev/null |
96 |
+++ b/sci-libs/cfitsio/metadata.xml |
97 |
@@ -0,0 +1,18 @@ |
98 |
+<?xml version="1.0" encoding="UTF-8"?> |
99 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
100 |
+<pkgmetadata> |
101 |
+ <herd>sci-astronomy</herd> |
102 |
+ <longdescription lang="en"> |
103 |
+ CFITSIO is a library of C and Fortran subroutines for reading and |
104 |
+ writing data files in FITS (Flexible Image Transport System) data |
105 |
+ format. CFITSIO provides simple high-level routines for reading and |
106 |
+ writing FITS files that insulate the programmer from the internal |
107 |
+ complexities of the FITS format. CFITSIO also provides advanced |
108 |
+ features for manipulating and filtering the information in FITS |
109 |
+ files. |
110 |
+</longdescription> |
111 |
+ <use> |
112 |
+ <flag name="tools">Build execs fpack, funpack, imcopy, fitscopy, listhead |
113 |
+ </flag> |
114 |
+ </use> |
115 |
+</pkgmetadata> |