2020-02-12 18:18:42 +03:00
|
|
|
# Copyright 1999-2020 Gentoo Authors
|
2017-07-30 00:03:30 +03:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=6
|
|
|
|
|
2020-02-16 00:28:09 +03:00
|
|
|
inherit autotools eutils ltprune
|
2017-07-30 00:03:30 +03:00
|
|
|
|
|
|
|
MYPN=CCfits
|
|
|
|
MYP=${MYPN}-${PV}
|
|
|
|
|
|
|
|
DESCRIPTION="C++ interface for cfitsio"
|
2018-05-26 12:20:05 +03:00
|
|
|
HOMEPAGE="https://heasarc.gsfc.nasa.gov/fitsio/CCfits/"
|
2020-01-13 16:39:37 +03:00
|
|
|
SRC_URI="https://heasarc.gsfc.nasa.gov/fitsio/CCfits/${MYP}.tar.gz"
|
2017-07-30 00:03:30 +03:00
|
|
|
|
|
|
|
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)
|
|
|
|
}
|
|
|
|
|
2020-02-23 01:13:57 +03:00
|
|
|
src_install() {
|
2017-07-30 00:03:30 +03:00
|
|
|
if use doc; then
|
|
|
|
DOCS+=( *.pdf )
|
|
|
|
HTML_DOCS=( html/. )
|
|
|
|
fi
|
|
|
|
default
|
|
|
|
use static-libs || prune_libtool_files --all
|
|
|
|
}
|