Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sys-cluster/mpich2/
Date: Mon, 29 Oct 2012 11:01:04
Message-Id: 1351248344.ea31a80dd59c6c2717dd6babbae015139ab6291a.jlec@gentoo
1 commit: ea31a80dd59c6c2717dd6babbae015139ab6291a
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Fri Oct 26 10:45:44 2012 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 26 10:45:44 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=ea31a80d
7
8 sys-cluster/mpich2: Move to EAPI=5, use fortran-2.eclass correctly
9
10 Package-Manager: portage-2.2.0_alpha141
11
12 ---
13 sys-cluster/mpich2/ChangeLog | 4 ++
14 sys-cluster/mpich2/metadata.xml | 4 +-
15 sys-cluster/mpich2/mpich2-1.2.1_p1-r2.ebuild | 41 +++++++++++++------------
16 sys-cluster/mpich2/mpich2-1.4.1_p1.ebuild | 41 ++++++++++++-------------
17 4 files changed, 47 insertions(+), 43 deletions(-)
18
19 diff --git a/sys-cluster/mpich2/ChangeLog b/sys-cluster/mpich2/ChangeLog
20 index 39cb67f..6f093d8 100644
21 --- a/sys-cluster/mpich2/ChangeLog
22 +++ b/sys-cluster/mpich2/ChangeLog
23 @@ -2,6 +2,10 @@
24 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
25 # $Header: $
26
27 + 26 Oct 2012; Justin Lecher <jlec@g.o> mpich2-1.2.1_p1-r2.ebuild,
28 + mpich2-1.4.1_p1.ebuild, metadata.xml:
29 + Move to EAPI=5, use fortran-2.eclass correctly
30 +
31 20 Apr 2012; Justin Bronder <jsbronder@g.o> mpich2-1.4.1_p1.ebuild:
32 Fix docdir for prefix. Thanks to Robert McGehee for reporting.
33
34
35 diff --git a/sys-cluster/mpich2/metadata.xml b/sys-cluster/mpich2/metadata.xml
36 index 27045b0..1738cc6 100644
37 --- a/sys-cluster/mpich2/metadata.xml
38 +++ b/sys-cluster/mpich2/metadata.xml
39 @@ -12,7 +12,7 @@
40 <description>Upstream Contact</description>
41 </maintainer>
42 <use>
43 - <flag name='mpi-threads'>Enable MPI_THREAD_MULTIPLE</flag>
44 - <flag name='romio'>Build the ROMIO MPI-IO component</flag>
45 + <flag name="mpi-threads">Enable MPI_THREAD_MULTIPLE</flag>
46 + <flag name="romio">Build the ROMIO MPI-IO component</flag>
47 </use>
48 </pkgmetadata>
49
50 diff --git a/sys-cluster/mpich2/mpich2-1.2.1_p1-r2.ebuild b/sys-cluster/mpich2/mpich2-1.2.1_p1-r2.ebuild
51 index eca3941..5b2ddd0 100644
52 --- a/sys-cluster/mpich2/mpich2-1.2.1_p1-r2.ebuild
53 +++ b/sys-cluster/mpich2/mpich2-1.2.1_p1-r2.ebuild
54 @@ -1,25 +1,29 @@
55 -# Copyright 1999-2011 Gentoo Foundation
56 +# Copyright 1999-2012 Gentoo Foundation
57 # Distributed under the terms of the GNU General Public License v2
58 # $Header: $
59
60 -EAPI=2
61 +EAPI=5
62 +
63 PYTHON_DEPEND="2"
64
65 +FORTRAN_NEEDED=fortran
66 +
67 inherit eutils fortran-2 mpi python toolchain-funcs
68
69 MY_PV=${PV/_/}
70 -DESCRIPTION="MPICH2 - A portable MPI implementation"
71 +DESCRIPTION="A high performance and portable MPI implementation"
72 HOMEPAGE="http://www.mcs.anl.gov/research/projects/mpich2/index.php"
73 SRC_URI="http://www.mcs.anl.gov/research/projects/mpich2/downloads/tarballs/${MY_PV}/${PN}-${MY_PV}.tar.gz"
74
75 -LICENSE="as-is"
76 SLOT="0"
77 +LICENSE="as-is"
78 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
79 IUSE="+cxx debug doc fortran mpi-threads romio threads"
80
81 MPI_UNCLASSED_DEP_STR="!media-sound/mpd"
82
83 -COMMON_DEPEND="dev-libs/libaio
84 +COMMON_DEPEND="
85 + dev-libs/libaio
86 romio? ( net-fs/nfs-utils )
87 $(mpi_imp_deplist)"
88
89 @@ -118,16 +122,13 @@ src_configure() {
90 --with-pm=mpd:hydra \
91 --disable-mpe \
92 $(use_enable romio) \
93 - $(use_enable cxx) \
94 - || die
95 + $(use_enable cxx)
96 }
97
98 -src_compile() {
99 - # Oh, the irony.
100 - # http://wiki.mcs.anl.gov/mpich2/index.php/Frequently_Asked_Questions#Q:_The_build_fails_when_I_use_parallel_make.
101 - # https://trac.mcs.anl.gov/projects/mpich2/ticket/297
102 - emake -j1 || die
103 -}
104 +# Oh, the irony.
105 +# http://wiki.mcs.anl.gov/mpich2/index.php/Frequently_Asked_Questions#Q:_The_build_fails_when_I_use_parallel_make.
106 +# https://trac.mcs.anl.gov/projects/mpich2/ticket/297
107 +MAKEOPTS+=" -j1"
108
109 src_test() {
110 local rc
111 @@ -154,17 +155,17 @@ src_install() {
112 local d=$(echo ${D}/$(mpi_root)/ | sed 's,///*,/,g')
113 local f
114
115 - emake DESTDIR="${D}" install || die
116 + default
117
118 dodir ${MPD_CONF_FILE_DIR}
119 insinto ${MPD_CONF_FILE_DIR}
120 - doins "${FILESDIR}"/mpd.conf || die
121 + doins "${FILESDIR}"/mpd.conf
122
123 mpi_dodir /usr/share/doc/${PF}
124 - mpi_dodoc COPYRIGHT README CHANGES RELEASE_NOTES || die
125 - mpi_newdoc src/pm/mpd/README README.mpd || die
126 + mpi_dodoc COPYRIGHT README CHANGES RELEASE_NOTES
127 + mpi_newdoc src/pm/mpd/README README.mpd
128 if use romio; then
129 - mpi_newdoc src/mpi/romio/README README.romio || die
130 + mpi_newdoc src/mpi/romio/README README.romio
131 fi
132
133 if ! use doc; then
134 @@ -188,10 +189,10 @@ pkg_postinst() {
135 chown root:root "${ROOT}"${MPD_CONF_FILE_DIR}/mpd.conf
136 chmod 600 "${ROOT}"${MPD_CONF_FILE_DIR}/mpd.conf
137
138 - elog ""
139 + echo ""
140 elog "MPE2 has been removed from this ebuild and now stands alone"
141 elog "as sys-cluster/mpe2."
142 - elog ""
143 + echo ""
144
145 python_mod_optimize ${MPD_PYTHON_MODULES}
146 }
147
148 diff --git a/sys-cluster/mpich2/mpich2-1.4.1_p1.ebuild b/sys-cluster/mpich2/mpich2-1.4.1_p1.ebuild
149 index 0a3903e..b9f91dd 100644
150 --- a/sys-cluster/mpich2/mpich2-1.4.1_p1.ebuild
151 +++ b/sys-cluster/mpich2/mpich2-1.4.1_p1.ebuild
152 @@ -2,7 +2,10 @@
153 # Distributed under the terms of the GNU General Public License v2
154 # $Header: $
155
156 -EAPI=4
157 +EAPI=5
158 +
159 +FORTRAN_NEEDED=fortran
160 +
161 inherit autotools eutils fortran-2 mpi toolchain-funcs versionator
162
163 MY_PV=${PV/_/}
164 @@ -10,12 +13,13 @@ DESCRIPTION="A high performance and portable MPI implementation"
165 HOMEPAGE="http://www.mcs.anl.gov/research/projects/mpich2/index.php"
166 SRC_URI="http://www.mcs.anl.gov/research/projects/mpich2/downloads/tarballs/${MY_PV}/${PN}-${MY_PV}.tar.gz"
167
168 -LICENSE="as-is"
169 SLOT="0"
170 +LICENSE="as-is"
171 KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86"
172 IUSE="+cxx debug doc fortran mpi-threads romio threads"
173
174 -COMMON_DEPEND="dev-libs/libaio
175 +COMMON_DEPEND="
176 + dev-libs/libaio
177 sys-apps/hwloc
178 romio? ( net-fs/nfs-utils )
179 $(mpi_imp_deplist)"
180 @@ -24,16 +28,13 @@ DEPEND="${COMMON_DEPEND}
181 dev-lang/perl
182 sys-devel/libtool"
183
184 -RDEPEND="${COMMON_DEPEND}
185 - fortran? ( virtual/fortran )"
186 +RDEPEND="${COMMON_DEPEND}"
187
188 S="${WORKDIR}"/${PN}-${MY_PV}
189
190 pkg_setup() {
191 - if use fortran; then
192 - FORTRAN_STANDARD="77 90"
193 - fortran-2_pkg_setup
194 - fi
195 + FORTRAN_STANDARD="77 90"
196 + fortran-2_pkg_setup
197 MPI_ESELECT_FILE="eselect.mpi.mpich2"
198
199 if use mpi-threads && ! use threads; then
200 @@ -82,7 +83,7 @@ src_prepare() {
201 # 393361, backport of r8809 upstream.
202 epatch "${FILESDIR}"/mpich2-hvector.patch
203
204 - AT_M4DIR="${S}"/confdb eautoreconf || die
205 + AT_M4DIR="${S}"/confdb eautoreconf
206 }
207
208 src_configure() {
209 @@ -127,12 +128,10 @@ src_configure() {
210 $(use_enable fortran fc)
211 }
212
213 -src_compile() {
214 - # Oh, the irony.
215 - # http://wiki.mcs.anl.gov/mpich2/index.php/Frequently_Asked_Questions#Q:_The_build_fails_when_I_use_parallel_make.
216 - # https://trac.mcs.anl.gov/projects/mpich2/ticket/711
217 - emake -j1
218 -}
219 +# Oh, the irony.
220 +# http://wiki.mcs.anl.gov/mpich2/index.php/Frequently_Asked_Questions#Q:_The_build_fails_when_I_use_parallel_make.
221 +# https://trac.mcs.anl.gov/projects/mpich2/ticket/711
222 +MAKEOPTS+=" -j1"
223
224 src_test() {
225 # See #362655 and comments in the testlist files.
226 @@ -152,7 +151,7 @@ src_test() {
227 -e '/^[# ]*spawn/d' \
228 test/mpi/threads/testlist || die
229
230 - emake -j1 \
231 + emake \
232 CC="${S}"/bin/mpicc \
233 CXX="${S}"/bin/mpicxx \
234 F77="${S}"/bin/mpif77 \
235 @@ -163,13 +162,13 @@ src_test() {
236 src_install() {
237 local d=$(echo ${ED}/$(mpi_root)/ | sed 's,///*,/,g')
238
239 - emake -j1 DESTDIR="${D}" install
240 + default
241
242 mpi_dodir /usr/share/doc/${PF}
243 - mpi_dodoc COPYRIGHT README CHANGES RELEASE_NOTES || die
244 - mpi_newdoc src/pm/hydra/README README.hydra || die
245 + mpi_dodoc COPYRIGHT README CHANGES RELEASE_NOTES
246 + mpi_newdoc src/pm/hydra/README README.hydra
247 if use romio; then
248 - mpi_newdoc src/mpi/romio/README README.romio || die
249 + mpi_newdoc src/mpi/romio/README README.romio
250 fi
251
252 if ! use doc; then