Gentoo Archives: gentoo-commits

From: "Justin Bronder (jsbronder)" <jsbronder@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-cluster/openmpi: ChangeLog openmpi-1.4.2.ebuild
Date: Wed, 30 Jun 2010 18:37:00
Message-Id: 20100630183656.459FD2C621@corvid.gentoo.org
1 jsbronder 10/06/30 18:36:56
2
3 Modified: ChangeLog
4 Added: openmpi-1.4.2.ebuild
5 Log:
6 Version Bump, EAPI bump, drop patch included upstream
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.68 sys-cluster/openmpi/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/openmpi/ChangeLog?rev=1.68&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/openmpi/ChangeLog?rev=1.68&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/openmpi/ChangeLog?r1=1.67&r2=1.68
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-cluster/openmpi/ChangeLog,v
19 retrieving revision 1.67
20 retrieving revision 1.68
21 diff -u -r1.67 -r1.68
22 --- ChangeLog 25 Jun 2010 19:02:36 -0000 1.67
23 +++ ChangeLog 30 Jun 2010 18:36:56 -0000 1.68
24 @@ -1,6 +1,11 @@
25 # ChangeLog for sys-cluster/openmpi
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/openmpi/ChangeLog,v 1.67 2010/06/25 19:02:36 armin76 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/openmpi/ChangeLog,v 1.68 2010/06/30 18:36:56 jsbronder Exp $
29 +
30 +*openmpi-1.4.2 (30 Jun 2010)
31 +
32 + 30 Jun 2010; Justin Bronder <jsbronder@g.o> +openmpi-1.4.2.ebuild:
33 + Version Bump, EAPI bump, drop patch included upstream
34
35 25 Jun 2010; Raúl Porcel <armin76@g.o> openmpi-1.4.1.ebuild:
36 Add ~ia64 wrt #324417
37
38
39
40 1.1 sys-cluster/openmpi/openmpi-1.4.2.ebuild
41
42 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/openmpi/openmpi-1.4.2.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/openmpi/openmpi-1.4.2.ebuild?rev=1.1&content-type=text/plain
44
45 Index: openmpi-1.4.2.ebuild
46 ===================================================================
47 # Copyright 1999-2010 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/sys-cluster/openmpi/openmpi-1.4.2.ebuild,v 1.1 2010/06/30 18:36:56 jsbronder Exp $
50
51 EAPI=3
52 inherit eutils multilib flag-o-matic toolchain-funcs fortran
53
54 MY_P=${P/-mpi}
55 S=${WORKDIR}/${MY_P}
56
57 DESCRIPTION="A high-performance message passing library (MPI)"
58 HOMEPAGE="http://www.open-mpi.org"
59 SRC_URI="http://www.open-mpi.org/software/ompi/v1.4/downloads/${MY_P}.tar.bz2"
60 LICENSE="BSD"
61 SLOT="0"
62 RESTRICT="mpi-threads? ( test )"
63 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
64 IUSE="+cxx elibc_FreeBSD fortran heterogeneous ipv6 mpi-threads pbs romio threads vt"
65 RDEPEND="pbs? ( sys-cluster/torque )
66 vt? (
67 !dev-libs/libotf
68 !app-text/lcdf-typetools
69 )
70 elibc_FreeBSD? ( dev-libs/libexecinfo )
71 !sys-cluster/mpich
72 !sys-cluster/lam-mpi
73 !sys-cluster/mpich2
74 !sys-cluster/mpiexec"
75 DEPEND="${RDEPEND}"
76
77 pkg_setup() {
78 if use mpi-threads; then
79 ewarn
80 ewarn "WARNING: use of MPI_THREAD_MULTIPLE is still disabled by"
81 ewarn "default and officially unsupported by upstream."
82 ewarn "You may stop now and set USE=-mpi-threads"
83 ewarn
84 epause 5
85 fi
86
87 elog
88 elog "OpenMPI has an overwhelming count of configuration options."
89 elog "Don't forget the EXTRA_ECONF environment variable can let you"
90 elog "specify configure options if you find them necessary."
91 elog
92
93 if use fortran; then
94 FORTRAN="g77 gfortran ifc"
95 fortran_pkg_setup
96 fi
97 }
98
99 src_prepare() {
100 # Necessary for scalibility, see
101 # http://www.open-mpi.org/community/lists/users/2008/09/6514.php
102 if use threads; then
103 echo 'oob_tcp_listen_mode = listen_thread' \
104 >> opal/etc/openmpi-mca-params.conf
105 fi
106 }
107
108 src_configure() {
109 local myconf="
110 --sysconfdir=/etc/${PN}
111 --without-xgrid
112 --enable-pretty-print-stacktrace
113 --enable-orterun-prefix-by-default
114 --without-slurm"
115
116 if use mpi-threads; then
117 myconf="${myconf}
118 --enable-mpi-threads
119 --enable-progress-threads"
120 fi
121
122 if use fortran; then
123 if [[ "${FORTRANC}" = "g77" ]]; then
124 myconf="${myconf} --disable-mpi-f90"
125 elif [[ "${FORTRANC}" = if* ]]; then
126 # Enabled here as gfortran compile times are huge with this enabled.
127 myconf="${myconf} --with-mpi-f90-size=medium"
128 fi
129 else
130 myconf="${myconf}
131 --disable-mpi-f90
132 --disable-mpi-f77"
133 fi
134
135 ! use vt && myconf="${myconf} --enable-contrib-no-build=vt"
136
137 econf ${myconf} \
138 $(use_enable cxx mpi-cxx) \
139 $(use_enable romio io-romio) \
140 $(use_enable heterogeneous) \
141 $(use_with pbs tm) \
142 $(use_enable ipv6) \
143 || die "econf failed"
144 }
145
146 src_install () {
147 emake DESTDIR="${D}" install || die "make install failed"
148 dodoc README AUTHORS NEWS VERSION
149 }
150
151 src_test() {
152 # Doesn't work with the default src_test as the dry run (-n) fails.
153 cd "${S}"
154 emake -j1 check || die "emake check failed"
155 }