1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 AUTOTOOLS_AUTORECONF=yes
8 inherit autotools-utils
10 DESCRIPTION="Minimal Abstraction Layer for Object-oriented C/C++ programs"
11 HOMEPAGE="http://www.fetk.org/codes/maloc/index.html"
12 SRC_URI="http://www.fetk.org/codes/download/${P}.tar.gz"
16 IUSE="doc mpi static-libs"
17 KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux"
31 "${FILESDIR}"/1.4-mpi.patch
32 "${FILESDIR}"/1.4-asneeded.patch
33 "${FILESDIR}"/1.4-doc.patch
37 echo 'VPUBLIC int Vio_getc(Vio *thee){ ASC *asc; asc = thee->axdr; return asc->buf[asc->pos++]; }' >> src/vsys/vio.c || die
38 autotools-utils_src_prepare
43 use mpi && export CC="mpicc"
44 use doc || myeconfargs+=( --with-doxygen= --with-dot= )
47 --docdir="${EPREFIX}"/usr/share/doc/${PF}
51 autotools-utils_src_configure
55 autotools-utils_src_install