public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] dev/bicatali:master commit in: sci-libs/cfitsio/
@ 2015-11-24 18:45 Sebastien Fabbro
  0 siblings, 0 replies; only message in thread
From: Sebastien Fabbro @ 2015-11-24 18:45 UTC (permalink / raw
  To: gentoo-commits

commit:     631d058a2edd1bffb2847cd350da85628a9a62c2
Author:     Sébastien Fabbro <bicatali <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 24 18:52:54 2015 +0000
Commit:     Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
CommitDate: Tue Nov 24 18:52:54 2015 +0000
URL:        https://gitweb.gentoo.org/dev/bicatali.git/commit/?id=631d058a

sci-libs/cfitsio: version bump, switch to multilib

Package-Manager: portage-2.2.25

 sci-libs/cfitsio/Manifest            |  1 +
 sci-libs/cfitsio/cfitsio-3.37.ebuild | 60 ++++++++++++++++++++++++++++++++++++
 sci-libs/cfitsio/metadata.xml        | 18 +++++++++++
 3 files changed, 79 insertions(+)

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>


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-11-24 18:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-24 18:45 [gentoo-commits] dev/bicatali:master commit in: sci-libs/cfitsio/ Sebastien Fabbro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox