You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
78 lines
1.6 KiB
78 lines
1.6 KiB
9 years ago
|
# Copyright 1999-2016 Gentoo Foundation
|
||
11 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
9 years ago
|
EAPI=6
|
||
11 years ago
|
|
||
|
JAVA_PKG_OPT_USE=gasgano
|
||
|
|
||
9 years ago
|
inherit autotools java-pkg-opt-2
|
||
11 years ago
|
|
||
|
DESCRIPTION="ESO common pipeline library for astronomical data reduction"
|
||
|
HOMEPAGE="http://www.eso.org/sci/software/cpl/"
|
||
|
SRC_URI="ftp://ftp.eso.org/pub/dfs/pipelines/libraries/${PN}/${P}.tar.gz"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0/20"
|
||
|
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||
|
|
||
|
IUSE="doc gasgano static-libs threads"
|
||
|
|
||
|
RDEPEND="
|
||
|
sci-astronomy/wcslib:0=
|
||
9 years ago
|
sci-libs/cfitsio:0=
|
||
11 years ago
|
sci-libs/fftw:3.0=
|
||
|
gasgano? ( sci-astronomy/gasgano )"
|
||
|
DEPEND="${RDEPEND}
|
||
|
doc? ( app-doc/doxygen )"
|
||
|
|
||
|
PATCHES=(
|
||
9 years ago
|
"${FILESDIR}"/${PN}-6.6.1-use-system-ltdl.patch
|
||
11 years ago
|
)
|
||
|
|
||
|
src_prepare() {
|
||
9 years ago
|
default
|
||
|
# remove cpu chcking
|
||
|
sed -e '/CPL_CHECK_CPU/d' \
|
||
|
-i configure.ac libcext/configure.ac || die
|
||
|
# search for shared libs, not static
|
||
|
sed -e 's/\.a/\.so/g' \
|
||
|
-i m4/cpl.m4 || die
|
||
|
eautoreconf
|
||
11 years ago
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
local myeconfargs=(
|
||
|
--htmldir="${EPREFIX}/usr/share/doc/${PF}/html"
|
||
|
--disable-ltdl-install
|
||
|
--without-included-ltdl
|
||
|
--with-cfitsio="${EPREFIX}/usr"
|
||
|
--with-wcs="${EPREFIX}/usr"
|
||
|
--with-fftw="${EPREFIX}/usr"
|
||
|
$(use_enable doc maintainer-mode)
|
||
9 years ago
|
$(use_enable static-libs static)
|
||
11 years ago
|
$(use_enable threads)
|
||
|
)
|
||
|
if use gasgano; then
|
||
|
myeconfargs+=(
|
||
|
--enable-gasgano
|
||
|
--with-gasgano="${EPREFIX}/usr"
|
||
|
--with-gasgano-classpath="${EPREFIX}/usr/share/gasgano/lib"
|
||
|
--with-java="$(java-config -O)"
|
||
|
)
|
||
|
else
|
||
|
myeconfargs+=( --disable-gasgano )
|
||
|
fi
|
||
9 years ago
|
econf ${myeconfargs[@]}
|
||
11 years ago
|
}
|
||
|
|
||
|
src_compile() {
|
||
9 years ago
|
default
|
||
|
use doc && emake html
|
||
11 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
9 years ago
|
default
|
||
|
prune_libtool_files --all
|
||
|
use doc && emake install-html
|
||
11 years ago
|
}
|