diff options
Diffstat (limited to 'sci-physics/meep/meep-1.2.ebuild')
-rw-r--r-- | sci-physics/meep/meep-1.2.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/sci-physics/meep/meep-1.2.ebuild b/sci-physics/meep/meep-1.2.ebuild new file mode 100644 index 000000000000..8055f56bf2c1 --- /dev/null +++ b/sci-physics/meep/meep-1.2.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/meep/meep-1.2.ebuild,v 1.1 2012/08/14 22:50:50 bicatali Exp $ + +EAPI=4 + +AUTOTOOLS_AUTORECONF=1 +inherit autotools-utils + +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 mpb mpi" + +RDEPEND=" + sci-libs/fftw + sci-libs/gsl + sci-physics/harminv + guile? ( >=sci-libs/libctl-3.2 ) + hdf5? ( sci-libs/hdf5 ) + mpb? ( sci-physics/mpb ) + mpi? ( virtual/mpi )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${P}-pc-no-ldflags.patch + "${FILESDIR}"/${P}-no-auto-mpb.patch +) + +src_configure() { + local myeconfargs=( + $(use_with mpb) + $(use_with mpi) + $(use_with hdf5) + $(use_with guile libctl) + ) + autotools-utils_src_configure +} + +src_test() { + # pml test buggy with optimization on + # http://thread.gmane.org/gmane.comp.science.electromagnetism.meep.general/4579 + pushd ${AUTOTOOLS_BUILD_DIR} > /dev/null + emake -C tests pml CXXFLAGS="-O0" + emake check + popd > /dev/null +} + +src_install() { + autotools-utils_src_install + if use examples; then + insinto /usr/share/doc/${PF}/examples + doins -r examples/*.ctl + fi +} |