1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 JAVA_PKG_OPT_USE=gasgano
9 inherit autotools java-pkg-opt-2
11 DESCRIPTION="ESO common pipeline library for astronomical data reduction"
12 HOMEPAGE="http://www.eso.org/sci/software/cpl/"
13 SRC_URI="ftp://ftp.eso.org/pub/dfs/pipelines/libraries/${PN}/${P}.tar.gz"
17 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
19 IUSE="doc gasgano static-libs threads"
22 sci-astronomy/wcslib:0=
25 gasgano? ( sci-astronomy/gasgano )"
27 doc? ( app-doc/doxygen )"
30 "${FILESDIR}"/${PN}-6.6.1-use-system-ltdl.patch
36 sed -e '/CPL_CHECK_CPU/d' \
37 -i configure.ac libcext/configure.ac || die
38 # search for shared libs, not static
39 sed -e 's/\.a/\.so/g' \
46 --htmldir="${EPREFIX}/usr/share/doc/${PF}/html"
47 --disable-ltdl-install
48 --without-included-ltdl
49 --with-cfitsio="${EPREFIX}/usr"
50 --with-wcs="${EPREFIX}/usr"
51 --with-fftw="${EPREFIX}/usr"
52 $(use_enable doc maintainer-mode)
53 $(use_enable static-libs static)
59 --with-gasgano="${EPREFIX}/usr"
60 --with-gasgano-classpath="${EPREFIX}/usr/share/gasgano/lib"
61 --with-java="$(java-config -O)"
64 myeconfargs+=( --disable-gasgano )
66 econf ${myeconfargs[@]}
76 prune_libtool_files --all
77 use doc && emake install-html