1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 inherit autotools-utils
10 DESCRIPTION="Simulation software to model electromagnetic systems"
11 HOMEPAGE="http://ab-initio.mit.edu/meep/"
12 SRC_URI="http://ab-initio.mit.edu/meep/${P}.tar.gz"
16 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
17 IUSE="examples hdf5 guile mpi"
23 guile? ( >=sci-libs/libctl-3.2 )
24 hdf5? ( sci-libs/hdf5 )
30 "${FILESDIR}"/${P}-pc-no-ldflags.patch
31 "${FILESDIR}"/${P}-no-auto-mpb.patch
39 $(use_with guile libctl)
41 autotools-utils_src_configure
45 # pml test buggy with optimization on
46 # http://thread.gmane.org/gmane.comp.science.electromagnetism.meep.general/4579
47 pushd ${AUTOTOOLS_BUILD_DIR} > /dev/null
48 emake -C tests pml CXXFLAGS="-O0"
54 autotools-utils_src_install
56 insinto /usr/share/doc/${PF}/examples
57 doins -r examples/*.ctl