blob: 083456654a5c6b14ab9e9999bc308639ec443fc9 (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
JAVA_PKG_OPT_USE=gasgano
inherit autotools java-pkg-opt-2 ltprune
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/26"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="doc gasgano static-libs threads"
RDEPEND="
sci-astronomy/wcslib:0=
sci-libs/cfitsio:0=
sci-libs/fftw:3.0=
gasgano? ( sci-astronomy/gasgano )"
DEPEND="${RDEPEND}
doc? ( app-doc/doxygen )"
PATCHES=(
"${FILESDIR}"/${PN}-6.6.1-use-system-ltdl.patch
)
src_prepare() {
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
}
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)
$(use_enable static-libs static)
$(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
econf ${myeconfargs[@]}
}
src_compile() {
default
use doc && emake html
}
src_install() {
default
prune_libtool_files --all
use doc && emake install-html
}
|