1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 AUTOTOOLS_AUTORECONF=true
8 inherit autotools-utils fortran-2 multilib
10 DESCRIPTION="2D/3D AFEM code for nonlinear geometric PDE"
11 HOMEPAGE="http://fetk.org/codes/mc/index.html"
12 SRC_URI="http://www.fetk.org/codes/download/${P}.tar.gz"
15 KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
17 IUSE="debug doc static-libs"
39 "${FILESDIR}"/1.4-superlu.patch
40 "${FILESDIR}"/1.4-overflow.patch
41 "${FILESDIR}"/1.4-multilib.patch
42 "${FILESDIR}"/1.4-doc.patch
43 "${FILESDIR}"/${P}-unbundle.patch
48 -e 's:AMD_order:amd_order:g' \
49 -e 's:UMFPACK_numeric:umfpack_di_numeric:g' \
50 -e 's:buildg_:matvec_:g' \
51 -i configure.ac || die
52 autotools-utils_src_prepare
60 use doc || myeconfargs+=( --with-doxygen= --with-dot= )
62 fetk_include="${EPREFIX}"/usr/include
63 fetk_lib="${EPREFIX}"/usr/$(get_libdir)
64 export FETK_INCLUDE="${fetk_include}"
65 export FETK_LIBRARY="${fetk_lib}"
66 export FETK_MPI_LIBRARY="${fetk_lib}"
67 export FETK_VF2C_LIBRARY="${fetk_lib}"
68 export FETK_BLAS_LIBRARY="${fetk_lib}"
69 export FETK_LAPACK_LIBRARY="${fetk_lib}"
70 export FETK_AMD_LIBRARY="${fetk_lib}"
71 export FETK_UMFPACK_LIBRARY="${fetk_lib}"
72 export FETK_SUPERLU_LIBRARY="${fetk_lib}"
73 export FETK_ARPACK_LIBRARY="${fetk_lib}"
74 export FETK_CGCODE_LIBRARY="${fetk_lib}"
75 export FETK_PMG_LIBRARY="${fetk_lib}"
78 --docdir="${EPREFIX}"/usr/share/doc/${PF}
79 $(use_enable debug vdebug)
83 autotools-utils_src_configure