diff options
Diffstat (limited to 'sci-libs/ccfits/ccfits-2.5.ebuild')
-rw-r--r-- | sci-libs/ccfits/ccfits-2.5.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/sci-libs/ccfits/ccfits-2.5.ebuild b/sci-libs/ccfits/ccfits-2.5.ebuild new file mode 100644 index 000000000000..9530618f2c8c --- /dev/null +++ b/sci-libs/ccfits/ccfits-2.5.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools eutils + +MYPN=CCfits +MYP=${MYPN}-${PV} + +DESCRIPTION="C++ interface for cfitsio" +HOMEPAGE="http://heasarc.gsfc.nasa.gov/fitsio/CCfits/" +SRC_URI="${HOMEPAGE}/${MYP}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc static-libs" + +RDEPEND=">=sci-libs/cfitsio-3.080" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${MYPN}" + +DOCS=( CHANGES README.INSTALL ) +PATCHES=( + "${FILESDIR}"/${PN}-2.2-makefile.patch # avoid building cookbook by default and no rpath +) + +src_prepare() { + default + mv configure.{in,ac} || die + AT_M4DIR=config/m4 eautoreconf +} + +src_configure() { + econf $(use_enable static-libs static) +} + +src_install () { + if use doc; then + DOCS+=( *.pdf ) + HTML_DOCS=( html/. ) + fi + default + use static-libs || prune_libtool_files --all +} |