blob: 9d970831f5ac74ebc29bbcd314767818f0f50940 (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="4"
inherit autotools eutils subversion
ELMER_ROOT="elmerfem"
MY_PN=${PN/elmer-/}
DESCRIPTION="Elmer is a collection of finite element programs, libraries, and visualization tools, main fem"
HOMEPAGE="http://www.csc.fi/english/pages/elmer"
#SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV}/${MY_PN}/?view=tar -> ${P}.tar.gz"
SRC_URI=""
RESTRICT="mirror"
ESVN_REPO_URI="https://elmerfem.svn.sourceforge.net/svnroot/elmerfem/trunk/${MY_PN}"
ESVN_PROJECT="${MY_PN}"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
IUSE="mpi debug"
DEPEND="sys-libs/glibc
virtual/blas
virtual/lapack
sci-libs/arpack
sci-libs/matc
sci-libs/elmer-hutiter
sci-libs/elmer-eio
mpi? ( sys-cluster/mpich2 )"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${PV}/fem"
src_prepare() {
#unpack ${A}
cd "${S}"
# configure must be executable
#chmod +x configure
epatch ${FILESDIR}/elmer-fem-Makefile-install.patch
eautoreconf
}
src_configure() {
cd "${S}"
local myconf
export FC="gfortran"
export F77="gfortran"
myconf="$myconf --with-blas --with-lapack --with-arpack --with-huti"
myconf="$myconf --with-eiof --with-matc"
#TODO parpack support is not picked up from the arpack package
#TODO --with-hypre --with-umfpack
use mpi && myconf="$myconf --with-mpi --with-mpi-dir=/usr"
use debug &&
myconf="${myconf} --with-debug" ||
myconf="${myconf} --without-debug"
econf $myconf || die "econf failed"
}
src_install() {
emake ELMER_SOLVER_DATADIR="/usr/share/elmersolver" DESTDIR=${D} install || die "emake install failed"
}
|