/[gentoo-x86]/sys-cluster/openmpi/openmpi-1.4.2.ebuild
Gentoo

Contents of /sys-cluster/openmpi/openmpi-1.4.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sun Dec 5 16:09:40 2010 UTC (3 years, 9 months ago) by armin76
Branch: MAIN
Changes since 1.6: +2 -2 lines
ia64 stable wrt #337129

(Portage version: 2.1.9.24/cvs/Linux ia64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-cluster/openmpi/openmpi-1.4.2.ebuild,v 1.6 2010/10/24 17:28:17 xarthisius Exp $
4
5 EAPI=3
6 inherit eutils multilib flag-o-matic toolchain-funcs fortran
7
8 MY_P=${P/-mpi}
9 S=${WORKDIR}/${MY_P}
10
11 DESCRIPTION="A high-performance message passing library (MPI)"
12 HOMEPAGE="http://www.open-mpi.org"
13 SRC_URI="http://www.open-mpi.org/software/ompi/v1.4/downloads/${MY_P}.tar.bz2"
14 LICENSE="BSD"
15 SLOT="0"
16 RESTRICT="mpi-threads? ( test )"
17 KEYWORDS="alpha amd64 ia64 ~ppc ~ppc64 sparc x86 ~x86-fbsd"
18 IUSE="+cxx elibc_FreeBSD fortran heterogeneous ipv6 mpi-threads pbs romio threads vt"
19 RDEPEND="pbs? ( sys-cluster/torque )
20 vt? (
21 !dev-libs/libotf
22 !app-text/lcdf-typetools
23 )
24 elibc_FreeBSD? ( dev-libs/libexecinfo )
25 !sys-cluster/mpich
26 !sys-cluster/lam-mpi
27 !sys-cluster/mpich2
28 !sys-cluster/mpiexec"
29 DEPEND="${RDEPEND}"
30
31 pkg_setup() {
32 if use mpi-threads; then
33 echo
34 ewarn "WARNING: use of MPI_THREAD_MULTIPLE is still disabled by"
35 ewarn "default and officially unsupported by upstream."
36 ewarn "You may stop now and set USE=-mpi-threads"
37 echo
38 fi
39
40 echo
41 elog "OpenMPI has an overwhelming count of configuration options."
42 elog "Don't forget the EXTRA_ECONF environment variable can let you"
43 elog "specify configure options if you find them necessary."
44 echo
45
46 if use fortran; then
47 FORTRAN="g77 gfortran ifc"
48 fortran_pkg_setup
49 fi
50 }
51
52 src_prepare() {
53 # Necessary for scalibility, see
54 # http://www.open-mpi.org/community/lists/users/2008/09/6514.php
55 if use threads; then
56 echo 'oob_tcp_listen_mode = listen_thread' \
57 >> opal/etc/openmpi-mca-params.conf
58 fi
59 }
60
61 src_configure() {
62 local myconf="
63 --sysconfdir=${EPREFIX}/etc/${PN}
64 --without-xgrid
65 --enable-pretty-print-stacktrace
66 --enable-orterun-prefix-by-default
67 --without-slurm"
68
69 if use mpi-threads; then
70 myconf="${myconf}
71 --enable-mpi-threads
72 --enable-progress-threads"
73 fi
74
75 if use fortran; then
76 if [[ "${FORTRANC}" = "g77" ]]; then
77 myconf="${myconf} --disable-mpi-f90"
78 elif [[ "${FORTRANC}" = if* ]]; then
79 # Enabled here as gfortran compile times are huge with this enabled.
80 myconf="${myconf} --with-mpi-f90-size=medium"
81 fi
82 else
83 myconf="${myconf}
84 --disable-mpi-f90
85 --disable-mpi-f77"
86 fi
87
88 ! use vt && myconf="${myconf} --enable-contrib-no-build=vt"
89
90 econf ${myconf} \
91 $(use_enable cxx mpi-cxx) \
92 $(use_enable romio io-romio) \
93 $(use_enable heterogeneous) \
94 $(use_with pbs tm) \
95 $(use_enable ipv6) \
96 || die "econf failed"
97 }
98
99 src_install () {
100 emake DESTDIR="${D}" install || die "make install failed"
101 dodoc README AUTHORS NEWS VERSION
102 }
103
104 src_test() {
105 # Doesn't work with the default src_test as the dry run (-n) fails.
106 cd "${S}"
107 emake -j1 check || die "emake check failed"
108 }

  ViewVC Help
Powered by ViewVC 1.1.20