aboutsummaryrefslogtreecommitdiff
blob: 391df28b19e9e0a37fb3bc7aff017322d952f811 (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
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=5

AUTOTOOLS_AUTORECONF=true

inherit autotools-utils subversion

ELMER_ROOT="elmerfem"
MY_PN=${PN/elmer-/}

DESCRIPTION="Finite element programs, libraries, and visualization tools - elmergrid"
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="debug"

RDEPEND="
	sci-libs/matc
	sci-libs/metis"
DEPEND="${RDEPEND}"

S="${WORKDIR}/elmergrid"

src_prepare() {
	subversion_src_prepare
	autotools-utils_src_prepare
}

src_configure() {
	local myeconfargs=(
		$(use_with debug)
		--with-metis-libs="${EPREFIX}"/usr/$(get_libdir)
		--with-metis-include="${EPREFIX}"/usr/include/metis
	)
	autotools-utils_src_configure
}