diff options
Diffstat (limited to 'sci-physics/mpb/mpb-1.4.2.ebuild')
-rw-r--r-- | sci-physics/mpb/mpb-1.4.2.ebuild | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/sci-physics/mpb/mpb-1.4.2.ebuild b/sci-physics/mpb/mpb-1.4.2.ebuild new file mode 100644 index 000000000000..034831656018 --- /dev/null +++ b/sci-physics/mpb/mpb-1.4.2.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/mpb/mpb-1.4.2.ebuild,v 1.1 2006/07/02 23:17:07 metalgod Exp $ + +DESCRIPTION="Program for computing the band structures and electromagnetic modes of periodic dielectric structures" +SRC_URI="http://ab-initio.mit.edu/mpb/${P}.tar.gz" +HOMEPAGE="http://ab-initio.mit.edu/mpb/" + +LICENSE="GPL-2" +KEYWORDS="~x86" + +SLOT="0" + +DEPEND="virtual/lapack + sci-libs/libctl + sci-libs/hdf5 + =sci-libs/fftw-2.1.5-r1 + sys-libs/readline" +RDEPEND="=sci-libs/fftw-2.1.5-r1" + +src_unpack() { + unpack ${A} + + # Create directories to compile the versions with inversion symmetry + # and with hermitian eps. + + cp -r ${S} ${S}_inv + cp -r ${S} ${S}_herm +} + +src_compile() { + # Create the normal version (mpb). + cd ${S} + econf || die + MAKEOPTS="-j1" emake || die # Parallel 'make' gives syntax errors. + + # Create the version with inversion symmetry (mpbi). + cd ${S}_inv + econf --with-inv-symmetry || die + MAKEOPTS="-j1" emake || die + + # Create the version with hermitian eps (mpbh). + cd ${S}_herm + econf --with-hermitian-eps || die + MAKEOPTS="-j1" emake || die +} + +src_install() { + + cd ${S} + einstall || die + + dodoc README COPYING NEWS AUTHORS COPYRIGHT ChangeLog TODO + dohtml doc/* + + # Install mpbi and mpbh as well. + + mv ${S}_inv/mpb-ctl/.mpb ${S}_inv/mpb-ctl/mpbi + dobin ${S}_inv/mpb-ctl/mpbi + + mv ${S}_herm/mpb-ctl/.mpb ${S}_herm/mpb-ctl/mpbh + dobin ${S}_herm/mpb-ctl/mpbh + + einfo "Three versions of mpb have been installed:" + einfo "mpb : regular version" + einfo "mpbi : configured for inversion symmetry" + einfo "mpbh : configured for hermitian epsilon" +} |