/[gentoo-x86]/sci-physics/meep/meep-1.1.1.ebuild
Gentoo

Contents of /sci-physics/meep/meep-1.1.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Tue Aug 14 23:11:40 2012 UTC (2 years, 1 month ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +8 -2 lines
Backporting test fixes from meep-1.2, hopefully fixing bug #423247

(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)

1 bicatali 1.5 # Copyright 1999-2012 Gentoo Foundation
2 bicatali 1.1 # Distributed under the terms of the GNU General Public License v2
3 bicatali 1.5 # $Header: /var/cvsroot/gentoo-x86/sci-physics/meep/meep-1.1.1.ebuild,v 1.4 2010/06/23 20:18:30 bicatali Exp $
4 bicatali 1.1
5     EAPI=2
6     inherit eutils
7    
8     DESCRIPTION="Simulation software to model electromagnetic systems"
9     HOMEPAGE="http://ab-initio.mit.edu/meep/"
10     SRC_URI="http://ab-initio.mit.edu/meep/${P}.tar.gz"
11    
12     LICENSE="GPL-2"
13     SLOT="0"
14 hwoarang 1.3 KEYWORDS="amd64 x86"
15 bicatali 1.4 IUSE="examples hdf5 guile mpi"
16 bicatali 1.1
17     DEPEND="sci-libs/fftw
18 bicatali 1.4 sci-libs/gsl
19 bicatali 1.1 sci-physics/harminv
20     guile? ( >=sci-libs/libctl-3.0.3 )
21     hdf5? ( sci-libs/hdf5 )
22     mpi? ( virtual/mpi )"
23     RDEPEND="${DEPEND}"
24    
25     src_configure() {
26     econf \
27     --enable-shared \
28     $(use_with mpi) \
29     $(use_with hdf5) \
30     $(use_with guile libctl)
31     }
32    
33 bicatali 1.5 src_test() {
34     # bug #423247
35     emake pml -C tests CXXFLAGS=-O0 || die
36     emake check || die
37     }
38    
39 bicatali 1.1 src_install() {
40     emake install DESTDIR="${D}" || die "emake install failed"
41     dodoc AUTHORS NEWS README TODO
42     insinto /usr/share/doc/${PF}
43     if use examples; then
44     doins -r examples || die "install examples failed"
45     fi
46     }

  ViewVC Help
Powered by ViewVC 1.1.20