You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-physics/meep/meep-1.3.ebuild

59 lines
1.1 KiB

# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit autotools
DESCRIPTION="Simulation software to model electromagnetic systems"
HOMEPAGE="http://ab-initio.mit.edu/meep/"
SRC_URI="http://ab-initio.mit.edu/meep/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="examples hdf5 guile mpi"
RDEPEND="
sci-libs/fftw:3.0=
sci-libs/gsl:=
sci-physics/harminv
guile? ( >=sci-libs/libctl-3.2 )
hdf5? ( sci-libs/hdf5:= )
mpi? ( virtual/mpi )"
DEPEND="${RDEPEND}
virtual/pkgconfig"
PATCHES=(
"${FILESDIR}"/${PN}-1.2-pc-no-ldflags.patch
"${FILESDIR}"/${PN}-1.2-no-auto-mpb.patch
)
src_prepare() {
default
eautoreconf
}
src_configure() {
econf \
$(use_with mpi) \
$(use_with hdf5) \
$(use_with guile libctl)
}
src_test() {
# pml test buggy with optimization on
# http://thread.gmane.org/gmane.comp.science.electromagnetism.meep.general/4579
emake -C tests pml CXXFLAGS="-O0"
emake check
}
src_install() {
default
if use examples; then
dodoc -r examples
docompress -x /usr/share/doc/${PF}/examples
fi
}