# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ 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="~x86" IUSE="fftw mpi hdf5 gsl guile doc examples" DEPEND="guile? ( >=sci-libs/libctl-3.0 ) hdf5? ( sci-libs/hdf5 ) fftw? ( sci-libs/fftw ) gsl? ( sci-libs/gsl ) mpi? ( virtual/mpi )" src_compile() { econf --enable-shared \ $( use_with mpi ) \ $( use_with hdf5 ) \ $( use_with guile libctl ) \ || die "econf failed" emake || die "emake failed" } src_install() { emake install DESTDIR=${D} || die "emake install failed" dodoc AUTHORS COPYING COPYRIGHT NEWS README TODO if use doc ; then docinto doc dodoc doc/* fi if use examples ; then docinto examples dodoc examples/* fi }