blob: 1004db431b460baa440511651e3a0f80114d6663 (
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
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=5
AUTOTOOLS_AUTORECONF=true
FORTRAN_STANDARD=90
inherit autotools-utils fortran-2 multilib subversion
ELMER_ROOT="elmerfem"
MY_PN=${PN/elmer-/}
DESCRIPTION="Finite element programs, libraries, and visualization tools - main fem"
HOMEPAGE="https://www.csc.fi/web/elmer"
SRC_URI=""
ESVN_REPO_URI="https://elmerfem.svn.sourceforge.net/svnroot/elmerfem/trunk/${MY_PN}"
ESVN_PROJECT="${MY_PN}"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
IUSE="mpi debug"
RDEPEND="
virtual/blas
virtual/lapack
sci-libs/arpack
sci-libs/elmer-hutiter
sci-libs/elmer-eio
mpi? ( sys-cluster/mpich2 )"
DEPEND="${RDEPEND}"
# Note this seems to only configure correctly with the elmer version of umfpack
# But this doesn't stop it from compiling / working without it
S="${WORKDIR}/fem"
PATCHES=(
"${FILESDIR}"/${PN}-6.0_p4651-oos.patch
"${FILESDIR}"/${PN}-6.0_p4651-underlinking.patch
)
src_configure() {
local myeconfargs=(
$(use_with debug)
$(usex mpi --with-mpi "")
$(usex mpi --with-mpi-dir="${EPREFIX}"/usr "")
--with-arpack="$($(tc-getPKG_CONFIG) --libs arpack)"
--with-blas="$($(tc-getPKG_CONFIG) --libs blas)"
--with-lapack="$($(tc-getPKG_CONFIG) --libs lapack)"
--with-huti --with-eiof --with-matc
)
autotools-utils_src_configure
}
|