diff options
author | Peter Bienstman <pbienst@gentoo.org> | 2007-10-26 16:33:45 +0000 |
---|---|---|
committer | Peter Bienstman <pbienst@gentoo.org> | 2007-10-26 16:33:45 +0000 |
commit | ba4f37ce5c266d2dabb27ab39c0339ae872f2f6e (patch) | |
tree | 4d375e2bed94d62289bfb2712068098b2077cf85 /sci-physics | |
parent | Readded notes about failed checksums. (diff) | |
download | historical-ba4f37ce5c266d2dabb27ab39c0339ae872f2f6e.tar.gz historical-ba4f37ce5c266d2dabb27ab39c0339ae872f2f6e.tar.bz2 historical-ba4f37ce5c266d2dabb27ab39c0339ae872f2f6e.zip |
Add mpi support.
Package-Manager: portage-2.1.3.9
Diffstat (limited to 'sci-physics')
-rw-r--r-- | sci-physics/mpb/ChangeLog | 7 | ||||
-rw-r--r-- | sci-physics/mpb/Manifest | 15 | ||||
-rw-r--r-- | sci-physics/mpb/files/digest-mpb-1.4.2-r1 | 3 | ||||
-rw-r--r-- | sci-physics/mpb/mpb-1.4.2-r1.ebuild | 98 |
4 files changed, 118 insertions, 5 deletions
diff --git a/sci-physics/mpb/ChangeLog b/sci-physics/mpb/ChangeLog index a73108fc4393..023fe864638d 100644 --- a/sci-physics/mpb/ChangeLog +++ b/sci-physics/mpb/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sci-physics/mpb # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-physics/mpb/ChangeLog,v 1.8 2007/08/21 20:43:48 pbienst Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-physics/mpb/ChangeLog,v 1.9 2007/10/26 16:33:44 pbienst Exp $ + +*mpb-1.4.2-r1 (26 Oct 2007) + + 26 Oct 2007; <pbienst@gentoo.org> +mpb-1.4.2-r1.ebuild: + Add mpi-support. 21 Aug 2007; <pbienst@gentoo.org> mpb-1.4.2.ebuild: Added ~amd64. diff --git a/sci-physics/mpb/Manifest b/sci-physics/mpb/Manifest index e554c6892499..6cd728155529 100644 --- a/sci-physics/mpb/Manifest +++ b/sci-physics/mpb/Manifest @@ -3,14 +3,18 @@ MD5 bbc07f4e122bc442be6d5aa47e9c1c02 files/mpb-1.4.2-gcc4.patch 1133 RMD160 f314858cd4154a12c2bdca5dc23ec4e3f7cefc91 files/mpb-1.4.2-gcc4.patch 1133 SHA256 5a58dd77d8b7d068f11496a61aa9001d657383b3f18274568de717e07d46ac3d files/mpb-1.4.2-gcc4.patch 1133 DIST mpb-1.4.2.tar.gz 686488 RMD160 6440f0e19d4b5b8354c135034429ea2031c4301d SHA1 2d4052566cff6c6befd31183253a908654b534f8 SHA256 e44c0720a5969a879fb93e48f6098d4d87e2f99d6ef49711d822f4c2249ccd61 +EBUILD mpb-1.4.2-r1.ebuild 2172 RMD160 e1a3ab9d6e8c34f913ad3cb46c852b279387d333 SHA1 930af1a0fc26c1292ef7d0c449f8b81815b05b70 SHA256 d869417ba7674fa3242b14e36408e346b77ce7b9d0697e7c9a1284c5ea99f862 +MD5 cbb185ffe5897677161b2ccd24451d3b mpb-1.4.2-r1.ebuild 2172 +RMD160 e1a3ab9d6e8c34f913ad3cb46c852b279387d333 mpb-1.4.2-r1.ebuild 2172 +SHA256 d869417ba7674fa3242b14e36408e346b77ce7b9d0697e7c9a1284c5ea99f862 mpb-1.4.2-r1.ebuild 2172 EBUILD mpb-1.4.2.ebuild 1753 RMD160 f21c7d7b20fddf86c9ff3f6f2d060f851a7143a4 SHA1 1764742bf4549835ec2d9a71008207f68a5687d3 SHA256 07314d4e98a3c025f512795d7120b771492989e7b939caed48abcc4f1db8aff5 MD5 ba044a690cb98455a7cc2c8f718bc07d mpb-1.4.2.ebuild 1753 RMD160 f21c7d7b20fddf86c9ff3f6f2d060f851a7143a4 mpb-1.4.2.ebuild 1753 SHA256 07314d4e98a3c025f512795d7120b771492989e7b939caed48abcc4f1db8aff5 mpb-1.4.2.ebuild 1753 -MISC ChangeLog 1070 RMD160 401c33a4bfcb3cc2fa7bde05b5271577a7414e38 SHA1 857e1bdfd3102821bd7fc2dbd77bdac738a4c39c SHA256 53e8c1843d0ff7d1449a9910b93a4191b58b070dc38c2afba64c2c8bc6d5709e -MD5 d3f5be01bd4a3f611fc4ad69b9f381b7 ChangeLog 1070 -RMD160 401c33a4bfcb3cc2fa7bde05b5271577a7414e38 ChangeLog 1070 -SHA256 53e8c1843d0ff7d1449a9910b93a4191b58b070dc38c2afba64c2c8bc6d5709e ChangeLog 1070 +MISC ChangeLog 1177 RMD160 26b00718fa8fe570c42e1951df716d3c639fb2fb SHA1 b2817d959f0e9a04191d99c0dc56254bd404d3d0 SHA256 db8900c1d3d6029f3f0354cadd13995539c94cf23522c3ed6e6864999707117d +MD5 288c904cd6ee3b88d99319d05bc858aa ChangeLog 1177 +RMD160 26b00718fa8fe570c42e1951df716d3c639fb2fb ChangeLog 1177 +SHA256 db8900c1d3d6029f3f0354cadd13995539c94cf23522c3ed6e6864999707117d ChangeLog 1177 MISC metadata.xml 165 RMD160 840aa504e67f34116dd1ba13722fcbd592d81b9f SHA1 39bef947fadb6a625221c100f87865483a0fba09 SHA256 513a2cc70d89b1319ae5451d96e75519f0c539e809b2f7d41ee6eccabe16c2b9 MD5 69d6ebba11a2c2d9f648a17f0c819316 metadata.xml 165 RMD160 840aa504e67f34116dd1ba13722fcbd592d81b9f metadata.xml 165 @@ -18,3 +22,6 @@ SHA256 513a2cc70d89b1319ae5451d96e75519f0c539e809b2f7d41ee6eccabe16c2b9 metadata MD5 0cefe38402fb0877d0a55e6563aae122 files/digest-mpb-1.4.2 229 RMD160 5110a1315934f2cf1d2a8b16fa791c67b22d8812 files/digest-mpb-1.4.2 229 SHA256 2d0df8b1934459c1a8317c9245c84f3afdf1057cc7ebe9e4c70af01f27c00122 files/digest-mpb-1.4.2 229 +MD5 0cefe38402fb0877d0a55e6563aae122 files/digest-mpb-1.4.2-r1 229 +RMD160 5110a1315934f2cf1d2a8b16fa791c67b22d8812 files/digest-mpb-1.4.2-r1 229 +SHA256 2d0df8b1934459c1a8317c9245c84f3afdf1057cc7ebe9e4c70af01f27c00122 files/digest-mpb-1.4.2-r1 229 diff --git a/sci-physics/mpb/files/digest-mpb-1.4.2-r1 b/sci-physics/mpb/files/digest-mpb-1.4.2-r1 new file mode 100644 index 000000000000..e223c5ed37da --- /dev/null +++ b/sci-physics/mpb/files/digest-mpb-1.4.2-r1 @@ -0,0 +1,3 @@ +MD5 e1e618b0db343a7a3fc38eabd69d008b mpb-1.4.2.tar.gz 686488 +RMD160 6440f0e19d4b5b8354c135034429ea2031c4301d mpb-1.4.2.tar.gz 686488 +SHA256 e44c0720a5969a879fb93e48f6098d4d87e2f99d6ef49711d822f4c2249ccd61 mpb-1.4.2.tar.gz 686488 diff --git a/sci-physics/mpb/mpb-1.4.2-r1.ebuild b/sci-physics/mpb/mpb-1.4.2-r1.ebuild new file mode 100644 index 000000000000..4db2ec45cc67 --- /dev/null +++ b/sci-physics/mpb/mpb-1.4.2-r1.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2007 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-r1.ebuild,v 1.1 2007/10/26 16:33:45 pbienst Exp $ + +inherit fortran + +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 ~amd64" +IUSE="mpi" + +SLOT="0" + +DEPEND="virtual/lapack + dev-scheme/guile + sci-libs/libctl + sci-libs/hdf5 + ~sci-libs/fftw-2.1.5 + sys-libs/readline + mpi? ( virtual/mpi )" + +RDEPEND="~sci-libs/fftw-2.1.5" + +src_unpack() { + unpack ${A} + + epatch "${FILESDIR}"/${P}-gcc4.patch + + # Create directories to compile the versions with inversion + # symmetry, hermitian eps and mpi. + + cp -r ${S} ${S}_inv + cp -r ${S} ${S}_herm + + if use mpi; then + cp -r ${S} ${S}_mpi + fi +} + +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 + + # Optionally compile mpi version (mpb-mpi). + if use mpi; then + cd ${S}_mpi + econf --with-mpi || die + MAKEOPTS="-j1" emake || die + fi + +} + +src_install() { + + cd ${S} + einstall || die + + dodoc README COPYING NEWS AUTHORS COPYRIGHT ChangeLog TODO + dohtml doc/* + + # Install other versions as well. + + mv ${S}_inv/mpb-ctl/.mpb ${S}_inv/mpb-ctl/mpbi + dobin ${S}_inv/mpb-ctl/mpbi || die + + mv ${S}_herm/mpb-ctl/.mpb ${S}_herm/mpb-ctl/mpbh + dobin ${S}_herm/mpb-ctl/mpbh || die + + if use mpi; then + mv ${S}_mpi/mpb-ctl/.mpb ${S}_herm/mpb-ctl/mpb-mpi + dobin ${S}_herm/mpb-ctl/mpb-mpi || die + fi + + einfo "Several versions of mpb have been installed:" + einfo "mpb : regular version" + einfo "mpbi : configured for inversion symmetry" + einfo "mpbh : configured for hermitian epsilon" + + if use mpi; then + einfo "mpb-mpi : configured for mpi" + fi + +} |