blob: 8bcc44e48d5c8211aa0b2e580b7530fe7320765b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/cpl/cpl-6.1.1.ebuild,v 1.1 2012/06/04 22:19:54 bicatali Exp $
EAPI=4
JAVA_PKG_OPT_USE=gasgano
AUTOTOOLS_AUTORECONF=1
inherit eutils java-pkg-opt-2 autotools-utils
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"
KEYWORDS="~amd64 ~x86"
IUSE="doc gasgano static-libs threads"
RDEPEND=">=sci-libs/cfitsio-3.270
>=sci-astronomy/wcslib-4.8.4
>=sci-libs/fftw-3.1.2
gasgano? ( sci-astronomy/gasgano )"
DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}"/${P}-check-shared-libs.patch
"${FILESDIR}"/${P}-use-system-ltdl.patch
)
src_configure() {
myeconfargs+=(
--htmldir="${EPREFIX}/usr/share/doc/${PF}/html"
--disable-ltdl-install
--without-included-ltdl
$(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
autotools-utils_src_configure
}
src_install() {
autotools-utils_src_install all $(use doc && echo install-html)
}
|