summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Fabbro <bicatali@gentoo.org>2016-02-15 20:43:50 +0000
committerSébastien Fabbro <bicatali@gentoo.org>2016-02-15 22:47:51 +0000
commitdb3a80784f7a9706509a06d6460db0196ba37551 (patch)
tree185f9b74870d3fd072404084d7d9d814e8b797e4 /sci-libs
parentnet-im/ejabberd: Bump version (diff)
downloadgentoo-db3a80784f7a9706509a06d6460db0196ba37551.tar.gz
gentoo-db3a80784f7a9706509a06d6460db0196ba37551.tar.bz2
gentoo-db3a80784f7a9706509a06d6460db0196ba37551.zip
sci-libs/cfitsio: version bump (reversioned to match upstream)
Package-Manager: portage-2.2.27
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/cfitsio/Manifest1
-rw-r--r--sci-libs/cfitsio/cfitsio-3.38.ebuild60
2 files changed, 61 insertions, 0 deletions
diff --git a/sci-libs/cfitsio/Manifest b/sci-libs/cfitsio/Manifest
index 00ace0279414..df8d0d0f285b 100644
--- a/sci-libs/cfitsio/Manifest
+++ b/sci-libs/cfitsio/Manifest
@@ -1 +1,2 @@
DIST cfitsio-3.360.tar.gz 4104894 SHA256 b5fb209583c76a0bcc39808e55ebf2417b9c26114c59db1a3f49ea1ede5fa95d SHA512 158819b4a3a29c29a5f017283e2b20067420994e881d202dbf3ba199c9e564dc1e74f8be5ce84f78107126d2a8688cc55cc7ed284540ca647e44cdc3b0b02072 WHIRLPOOL 05589a27c6fa83a0240b26924954c1c6d25d985ad609dfbd37fccfe5758fd28efbd97a5ec289803053e2f53e053e51c017292845de1b4368bcd1725fa2eccdb7
+DIST cfitsio-3.38.tar.gz 4142216 SHA256 e2a4e4fa9ed7f32afb87527b53242bcfb080b5832eec56bca57fb640efac5f84 SHA512 ed1bb8be48778dfaf5f5f973af4905b264f0600c29dcabf994d6c0d79f0cf472f41ed81c2d183b892447a856da795f50fe68a1364f34ab5fce55d13a4343add0 WHIRLPOOL 3ff0978f82f05b09133a61955e855e3633b006009dab165157ec8437d4b284e620c8d9b5a232095dcdae84dfffb8daa42535aac4a3f1cf492b39c96566f79b31
diff --git a/sci-libs/cfitsio/cfitsio-3.38.ebuild b/sci-libs/cfitsio/cfitsio-3.38.ebuild
new file mode 100644
index 000000000000..1bc7e276b397
--- /dev/null
+++ b/sci-libs/cfitsio/cfitsio-3.38.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2016 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
+}