/[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.1 - (hide annotations) (download)
Wed Jun 30 18:36:56 2010 UTC (4 years, 1 month ago) by jsbronder
Branch: MAIN
Version Bump, EAPI bump, drop patch included upstream
(Portage version: 2.2_rc67/cvs/Linux x86_64)

1 jsbronder 1.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.1.ebuild,v 1.9 2010/06/25 19:02:36 armin76 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     ewarn
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     ewarn
38     epause 5
39     fi
40    
41     elog
42     elog "OpenMPI has an overwhelming count of configuration options."
43     elog "Don't forget the EXTRA_ECONF environment variable can let you"
44     elog "specify configure options if you find them necessary."
45     elog
46    
47     if use fortran; then
48     FORTRAN="g77 gfortran ifc"
49     fortran_pkg_setup
50     fi
51     }
52    
53     src_prepare() {
54     # Necessary for scalibility, see
55     # http://www.open-mpi.org/community/lists/users/2008/09/6514.php
56     if use threads; then
57     echo 'oob_tcp_listen_mode = listen_thread' \
58     >> opal/etc/openmpi-mca-params.conf
59     fi
60     }
61    
62     src_configure() {
63     local myconf="
64     --sysconfdir=/etc/${PN}
65     --without-xgrid
66     --enable-pretty-print-stacktrace
67     --enable-orterun-prefix-by-default
68     --without-slurm"
69    
70     if use mpi-threads; then
71     myconf="${myconf}
72     --enable-mpi-threads
73     --enable-progress-threads"
74     fi
75    
76     if use fortran; then
77     if [[ "${FORTRANC}" = "g77" ]]; then
78     myconf="${myconf} --disable-mpi-f90"
79     elif [[ "${FORTRANC}" = if* ]]; then
80     # Enabled here as gfortran compile times are huge with this enabled.
81     myconf="${myconf} --with-mpi-f90-size=medium"
82     fi
83     else
84     myconf="${myconf}
85     --disable-mpi-f90
86     --disable-mpi-f77"
87     fi
88    
89     ! use vt && myconf="${myconf} --enable-contrib-no-build=vt"
90    
91     econf ${myconf} \
92     $(use_enable cxx mpi-cxx) \
93     $(use_enable romio io-romio) \
94     $(use_enable heterogeneous) \
95     $(use_with pbs tm) \
96     $(use_enable ipv6) \
97     || die "econf failed"
98     }
99    
100     src_install () {
101     emake DESTDIR="${D}" install || die "make install failed"
102     dodoc README AUTHORS NEWS VERSION
103     }
104    
105     src_test() {
106     # Doesn't work with the default src_test as the dry run (-n) fails.
107     cd "${S}"
108     emake -j1 check || die "emake check failed"
109     }

  ViewVC Help
Powered by ViewVC 1.1.20