diff options
author | Donnie Berkholz <dberkholz@gentoo.org> | 2006-09-25 07:41:15 +0000 |
---|---|---|
committer | Donnie Berkholz <dberkholz@gentoo.org> | 2006-09-25 07:41:15 +0000 |
commit | 45dfb36d7091ae575a127d8aa5c3b9cba471bd9b (patch) | |
tree | 15b8e764710993cbb3200089f4151b8113746ead /sys-cluster/openmpi | |
parent | use_with -> use_enable to fix bug #147132 (diff) | |
download | gentoo-2-45dfb36d7091ae575a127d8aa5c3b9cba471bd9b.tar.gz gentoo-2-45dfb36d7091ae575a127d8aa5c3b9cba471bd9b.tar.bz2 gentoo-2-45dfb36d7091ae575a127d8aa5c3b9cba471bd9b.zip |
(#126295) Add Open MPI ebuild from the science overlay (Sebastien Fabbro, Eric Thibodeau). I removed the compiler-based slotting mechanism because portage lacks support for multiple slots of the same version -- the SLOT file in /var/db/pkg just gets overwritten and it loses track of the others, amongst other issues. Removed USE=static, that's used to compile static binaries, not to also build static libraries. Changed SLOT to 0 from 6 in the overlay. Removed the hack for PGI compilers, that needs to happen in fortran.eclass. Use epause() from eutils.eclass rather than sleep.
(Portage version: 2.1.2_pre1-r1)
Diffstat (limited to 'sys-cluster/openmpi')
-rw-r--r-- | sys-cluster/openmpi/ChangeLog | 17 | ||||
-rw-r--r-- | sys-cluster/openmpi/Manifest | 16 | ||||
-rw-r--r-- | sys-cluster/openmpi/files/digest-openmpi-1.1.1 | 3 | ||||
-rw-r--r-- | sys-cluster/openmpi/metadata.xml | 5 | ||||
-rw-r--r-- | sys-cluster/openmpi/openmpi-1.1.1.ebuild | 71 |
5 files changed, 112 insertions, 0 deletions
diff --git a/sys-cluster/openmpi/ChangeLog b/sys-cluster/openmpi/ChangeLog new file mode 100644 index 000000000000..2933e7d5234e --- /dev/null +++ b/sys-cluster/openmpi/ChangeLog @@ -0,0 +1,17 @@ +# ChangeLog for sys-cluster/openmpi +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/openmpi/ChangeLog,v 1.1 2006/09/25 07:41:15 dberkholz Exp $ + +*openmpi-1.1.1 (25 Sep 2006) + + 25 Sep 2006; Donnie Berkholz <dberkholz@gentoo.org>; +metadata.xml, + +openmpi-1.1.1.ebuild: + (#126295) Add Open MPI ebuild from the science overlay (Sebastien Fabbro, + Eric Thibodeau). I removed the compiler-based slotting mechanism because + portage lacks support for multiple slots of the same version -- the SLOT + file in /var/db/pkg just gets overwritten and it loses track of the others, + amongst other issues. Removed USE=static, that's used to compile static + binaries, not to also build static libraries. Changed SLOT to 0 from 6 in + the overlay. Removed the hack for PGI compilers, that needs to happen in + fortran.eclass. Use epause() from eutils.eclass rather than sleep. + diff --git a/sys-cluster/openmpi/Manifest b/sys-cluster/openmpi/Manifest new file mode 100644 index 000000000000..e69822ecec58 --- /dev/null +++ b/sys-cluster/openmpi/Manifest @@ -0,0 +1,16 @@ +DIST openmpi-1.1.1.tar.bz2 3213827 RMD160 664ce83191dbe1c18d1848d4b0a57c8b7a899398 SHA1 3bd9eb1fd4af5d4f89df028a6cd6861ed1839b01 SHA256 dc31aaec986c4ce436dbf31e73275ed1a9391432dcad7609de8d0d3a78d2c700 +EBUILD openmpi-1.1.1.ebuild 1720 RMD160 eafdefb04ae8672f82f2816245188d6bebbb2849 SHA1 cfa05d846ed232747a3863295c958043843c4019 SHA256 81db3a1119c68a73fe4dde519dfae0890dd3686ec4ced9dd972fcf6c04d015a0 +MD5 0f741e8bdf0d7ff9de318943df7a0473 openmpi-1.1.1.ebuild 1720 +RMD160 eafdefb04ae8672f82f2816245188d6bebbb2849 openmpi-1.1.1.ebuild 1720 +SHA256 81db3a1119c68a73fe4dde519dfae0890dd3686ec4ced9dd972fcf6c04d015a0 openmpi-1.1.1.ebuild 1720 +MISC ChangeLog 844 RMD160 79842add27668c89ad1f59c45413697dfed99442 SHA1 9b4623d1fb31ca98133ccae5839aa1b9ff5de89d SHA256 71ef7853ee37beadf8217621ce675b93f10e0921e27dfc8a402bbe08689f0201 +MD5 476def0a2d17d2175f751f4c91beee37 ChangeLog 844 +RMD160 79842add27668c89ad1f59c45413697dfed99442 ChangeLog 844 +SHA256 71ef7853ee37beadf8217621ce675b93f10e0921e27dfc8a402bbe08689f0201 ChangeLog 844 +MISC metadata.xml 160 RMD160 1233ca29861ca7c47f0b09d1d7a29def80f7df02 SHA1 1bfdc9d282a84c95e2bdcda19ace5b94e2e67349 SHA256 56717bdb03ad5d833acecfbc612a67f569256b328bf610fbc6cc33714186dae9 +MD5 cde8b4e93c9339eb99fe3ad45941c99b metadata.xml 160 +RMD160 1233ca29861ca7c47f0b09d1d7a29def80f7df02 metadata.xml 160 +SHA256 56717bdb03ad5d833acecfbc612a67f569256b328bf610fbc6cc33714186dae9 metadata.xml 160 +MD5 5b9a6b88783bdad6093fa8f22863b1ed files/digest-openmpi-1.1.1 247 +RMD160 c93be9890e009a7a6fc7ca6aedd325a4f59d56d4 files/digest-openmpi-1.1.1 247 +SHA256 5be0bb3d0abc8f4c244ab1cfc11f45ec692f7a15a7b6caad344156d9dd11077c files/digest-openmpi-1.1.1 247 diff --git a/sys-cluster/openmpi/files/digest-openmpi-1.1.1 b/sys-cluster/openmpi/files/digest-openmpi-1.1.1 new file mode 100644 index 000000000000..4916795a3155 --- /dev/null +++ b/sys-cluster/openmpi/files/digest-openmpi-1.1.1 @@ -0,0 +1,3 @@ +MD5 498b9322ae0ad512026a008a30c7e0b5 openmpi-1.1.1.tar.bz2 3213827 +RMD160 664ce83191dbe1c18d1848d4b0a57c8b7a899398 openmpi-1.1.1.tar.bz2 3213827 +SHA256 dc31aaec986c4ce436dbf31e73275ed1a9391432dcad7609de8d0d3a78d2c700 openmpi-1.1.1.tar.bz2 3213827 diff --git a/sys-cluster/openmpi/metadata.xml b/sys-cluster/openmpi/metadata.xml new file mode 100644 index 000000000000..348e6c4de815 --- /dev/null +++ b/sys-cluster/openmpi/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>cluster</herd> +</pkgmetadata> diff --git a/sys-cluster/openmpi/openmpi-1.1.1.ebuild b/sys-cluster/openmpi/openmpi-1.1.1.ebuild new file mode 100644 index 000000000000..eeb429afa383 --- /dev/null +++ b/sys-cluster/openmpi/openmpi-1.1.1.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/openmpi/openmpi-1.1.1.ebuild,v 1.1 2006/09/25 07:41:15 dberkholz Exp $ + +inherit eutils multilib flag-o-matic toolchain-funcs fortran + + +MY_P=${P/-mpi} +S=${WORKDIR}/${MY_P} + +DESCRIPTION="A High Performance Message Passing Library" +HOMEPAGE="http://www.open-mpi.org" +SRC_URI="http://www.open-mpi.org/software/ompi/v1.1/downloads/${MY_P}.tar.bz2" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="pbs fortran threads" +PROVIDE="virtual/mpi" +DEPEND="virtual/libc + pbs? ( virtual/pbs )" + +FORTRAN="ifc gfortran g77" + +pkg_setup() { + if use threads; then + ewarn + ewarn "WARNING: use of threads is highly experimental." + ewarn "You may stop now and set USE=-threads" + ewarn + epause 5 + fi + use fortran && fortran_pkg_setup +} + +src_compile() { + + einfo + einfo "OpenMPI has an overwhelming count of configuration options." + einfo "Don't forget the EXTRA_ECONF environment variable can let you" + einfo "specify configure options." + einfo + + local myconf="--sysconfdir=/etc/${PN}" + myconf="${myconf} --enable-pretty-print-stacktrace" + + if use threads; then + myconf="${myconf} --enable-mpi-threads" + myconf="${myconf} --with-progress-threads" + myconf="${myconf} --with-threads=posix" + fi + + if use fortran; then + myconf="${myconf} $(use enable fortran mpi-f77)" + [ "${FORTRANC}" = "g77" ] && \ + myconf="${myconf} --disable-mpi-f90" || \ + myconf="${myconf} --enable-mpi-f90" + fi + + use pbs && myconf="${myconf} $(use_with pbs tm /usr/$(get_libdir)/pbs)" + append-ldflags -Wl,-z,-noexecstack + + econf ${myconf} || die "econf failed" + emake || die "emake failed" +} + +src_install () { + + make DESTDIR="${D}" install || die "make install failed" + + dodoc README AUTHORS NEWS VERSION +} |