blob: 6834f60f850ebc7db5e7131bbc1029274fd0a29c (
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
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-libs/gerris/gerris-20120731.ebuild,v 1.3 2013/02/21 22:03:35 jlec Exp $
EAPI=4
inherit autotools eutils flag-o-matic toolchain-funcs
MYP=${P/-20/-snapshot-}
DESCRIPTION="Gerris Flow Solver"
HOMEPAGE="http://gfs.sourceforge.net/"
SRC_URI="http://gerris.dalembert.upmc.fr/gerris/tarballs/${MYP}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="examples mpi static-libs"
# all these deps could be optional
# but the configure.in would have to be modified
# heavily for the automagic
RDEPEND="
dev-libs/glib:2
dev-games/ode
sci-libs/netcdf
sci-libs/gsl
sci-libs/gts
sci-libs/hypre[mpi?]
sci-libs/lis[mpi?]
sci-libs/proj
>=sci-libs/fftw-3
virtual/lapack
mpi? ( virtual/mpi )"
DEPEND="${RDEPEND}
virtual/pkgconfig"
S="${WORKDIR}/${MYP}"
# buggy tests, need extra packages and require gerris to be installed
RESTRICT=test
src_prepare() {
epatch "${FILESDIR}"/${PN}-hypre-no-mpi.patch
eautoreconf
}
src_configure() {
append-cppflags "-I${EPREFIX}/usr/include/hypre"
econf \
$(use_enable mpi) \
$(use_enable static-libs static) \
LAPACK_LIBS="$($(tc-getPKG_CONFIG) --libs lapack)"
}
src_install() {
default
if use examples; then
insinto /usr/share/doc/${PF}/examples
rm -f doc/examples/*.pyc || die "Failed to remove python object"
doins -r doc/examples/*
fi
}
|