blob: d41102bc0ad72086f45399fc1eaf7bb34668504a (
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
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="Core routines for gravitational-wave data analysis with LIGO and Virgo"
HOMEPAGE="https://wiki.ligo.org/Computing/LALSuite"
SRC_URI="https://software.igwn.org/sources/source/lalsuite/${P}.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc +fast-install -fast-gsl -fftw3-memalign -intelfft +pthread-lock python static-libs +swig +swig-iface -swig-octave -swig-python" # +macros
DEPEND="sci-libs/gsl
sci-libs/fftw
sci-libs/hdf5
sci-libs/libframe
>=sci-libs/metaio-8.0
doc? ( app-text/texlive-core
dev-texlive/texlive-fontsrecommended
dev-texlive/texlive-latexrecommended
dev-texlive/texlive-latexextra )
swig? ( dev-lang/swig )
swig-iface? ( dev-lang/swig )
swig-octave? ( dev-lang/swig
sci-mathematics/octave )
swig-python? ( dev-lang/swig
dev-lang/python:* )
"
# dev-texlive/texlive-genericrecommended
RDEPEND=${DEPEND}
src_configure() {
econf \
$(use_enable fast-gsl) \
$(use_enable fast-install) \
$(use_enable fftw3-memalign) \
$(use_enable intelfft) \
$(use_enable pthread-lock) \
$(use_enable python) \
$(use_enable static-libs static) \
$(use_enable swig) \
$(use_enable swig-iface) \
$(use_enable swig-octave) \
$(use_enable swig-python) \
# Not sure:
# $(use_disable libtool-lock) \ avoid locking (might break parallel builds)
# $(use_enable doxygen) \ generate Doxygen documentation
# $(use_enable help2man) \ automatically generate man pages with help2man [default=yes]
# $(use_enable macros) \ Build FAILS with -macros
}
src_compile() {
emake
use doc && emake dvi
}
pkg_postinst() {
elog "\n Now you may want to setup your environment:"
elog "\n Bourne shell [bash] users: please add the following line to your .profile file:"
elog "\n . /etc/lal-user-env.sh"
elog "\n C-shell [tcsh] users: please add the following line to your .login file:"
elog "\n source /etc/lal-user-env.csh"
elog ""
use doc && elog " The LAL documentation can be found in /usr/share/doc/${P}\n"
}
|