summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Fabbro <bicatali@gentoo.org>2015-11-24 18:52:54 +0000
committerSébastien Fabbro <bicatali@gentoo.org>2015-11-24 18:52:54 +0000
commit631d058a2edd1bffb2847cd350da85628a9a62c2 (patch)
tree44f231c036191f6e90f980417520118dc9895da1 /sci-libs
parentsci-libs/vtk: version bump with a few patches and fixes for xdmf (diff)
downloadbicatali-631d058a2edd1bffb2847cd350da85628a9a62c2.tar.gz
bicatali-631d058a2edd1bffb2847cd350da85628a9a62c2.tar.bz2
bicatali-631d058a2edd1bffb2847cd350da85628a9a62c2.zip
sci-libs/cfitsio: version bump, switch to multilib
Package-Manager: portage-2.2.25
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/cfitsio/Manifest1
-rw-r--r--sci-libs/cfitsio/cfitsio-3.37.ebuild60
-rw-r--r--sci-libs/cfitsio/metadata.xml18
3 files changed, 79 insertions, 0 deletions
diff --git a/sci-libs/cfitsio/Manifest b/sci-libs/cfitsio/Manifest
new file mode 100644
index 0000000..d92d091
--- /dev/null
+++ b/sci-libs/cfitsio/Manifest
@@ -0,0 +1 @@
+DIST cfitsio-3.37.tar.gz 4135218 SHA256 68058d5c805a3a63f3fe62dafcc8cc80afe2e2b34e10e16a9b1fb38376c0acbf SHA512 31ec98cc700dad0deabbb7349b1a018d2d4aa79ae3f70fa28397bb43b1420c7107697443bc2bd43c88b372477676d9f8c22a6731114d51379312faf6d0936752 WHIRLPOOL b18921d174248a35186b3457ede8858a48136568d03cfda37a29d968cc43c817dd956d95e9f18f4d214b1ce36a2c564e9369d2e4fed562e19c7eb48992735783
diff --git a/sci-libs/cfitsio/cfitsio-3.37.ebuild b/sci-libs/cfitsio/cfitsio-3.37.ebuild
new file mode 100644
index 0000000..17085d1
--- /dev/null
+++ b/sci-libs/cfitsio/cfitsio-3.37.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+FORTRAN_NEEDED=fortran
+
+inherit autotools-multilib fortran-2
+
+DESCRIPTION="C and Fortran library for manipulating FITS files"
+HOMEPAGE="http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html"
+SRC_URI="https://dev.gentoo.org/~bicatali/distfiles/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/2"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x64-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris"
+IUSE="bzip2 doc examples fortran static-libs +tools threads"
+
+RDEPEND="
+ sys-libs/zlib[${MULTILIB_USEDEP}]
+ bzip2? ( app-arch/bzip2[${MULTILIB_USEDEP}] )"
+DEPEND="${RDEPEND}
+ fortran? ( dev-lang/cfortran )"
+
+pkg_setup() {
+ use fortran && fortran-2_pkg_setup
+}
+
+src_prepare() {
+ # avoid internal cfortran
+ if use fortran; then
+ mv cfortran.h cfortran.h.disabled
+ ln -s "${EPREFIX}"/usr/include/cfortran.h . || die
+ fi
+ autotools-multilib_src_prepare
+}
+
+src_configure() {
+ local myeconfargs=(
+ $(use_enable fortran)
+ $(use_enable threads)
+ $(use_enable tools)
+ $(use_with bzip2)
+ )
+ autotools-multilib_src_configure
+}
+
+src_install () {
+ autotools-multilib_src_install
+ dodoc README README.md CHANGES.md docs/changes.txt docs/cfitsio.doc
+ use fortran && dodoc docs/fitsio.doc
+ use doc && dodoc docs/{quick,cfitsio,fpackguide}.pdf
+ use doc && use fortran && dodoc docs/fitsio.pdf
+ if use examples; then
+ insinto /usr/share/doc/${PF}/examples
+ doins cookbook.c testprog.c speed.c smem.c
+ use fortran && doins cookbook.f testf77.f
+ fi
+}
diff --git a/sci-libs/cfitsio/metadata.xml b/sci-libs/cfitsio/metadata.xml
new file mode 100644
index 0000000..3a1d7ee
--- /dev/null
+++ b/sci-libs/cfitsio/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci-astronomy</herd>
+ <longdescription lang="en">
+ CFITSIO is a library of C and Fortran subroutines for reading and
+ writing data files in FITS (Flexible Image Transport System) data
+ format. CFITSIO provides simple high-level routines for reading and
+ writing FITS files that insulate the programmer from the internal
+ complexities of the FITS format. CFITSIO also provides advanced
+ features for manipulating and filtering the information in FITS
+ files.
+</longdescription>
+ <use>
+ <flag name="tools">Build execs fpack, funpack, imcopy, fitscopy, listhead
+ </flag>
+ </use>
+</pkgmetadata>