Gentoo Archives: gentoo-commits

From: "Patrice Clement (monsieurp)" <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-cluster/mpe2: mpe2-1.0.6_p1-r2.ebuild ChangeLog
Date: Tue, 28 Jul 2015 08:48:51
Message-Id: 20150728084842.3833FBF@oystercatcher.gentoo.org
1 monsieurp 15/07/28 08:48:42
2
3 Modified: ChangeLog
4 Added: mpe2-1.0.6_p1-r2.ebuild
5 Log:
6 EAPI 5 bump. Set up proper (optional) Java support and suppress QA warning. Fixes bug 298242.
7
8 Signed-off-by: Patrice Clement <monsieurp@g.o>
9 (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 93491BB8)
10
11 Revision Changes Path
12 1.12 sys-cluster/mpe2/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/mpe2/ChangeLog?rev=1.12&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/mpe2/ChangeLog?rev=1.12&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/mpe2/ChangeLog?r1=1.11&r2=1.12
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sys-cluster/mpe2/ChangeLog,v
21 retrieving revision 1.11
22 retrieving revision 1.12
23 diff -u -r1.11 -r1.12
24 --- ChangeLog 6 Jan 2013 18:48:37 -0000 1.11
25 +++ ChangeLog 28 Jul 2015 08:48:42 -0000 1.12
26 @@ -1,6 +1,12 @@
27 # ChangeLog for sys-cluster/mpe2
28 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/mpe2/ChangeLog,v 1.11 2013/01/06 18:48:37 jsbronder Exp $
30 +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
31 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/mpe2/ChangeLog,v 1.12 2015/07/28 08:48:42 monsieurp Exp $
32 +
33 +*mpe2-1.0.6_p1-r2 (28 Jul 2015)
34 +
35 + 28 Jul 2015; Patrice Clement <monsieurp@g.o> +mpe2-1.0.6_p1-r2.ebuild:
36 + EAPI 5 bump. Set up proper (optional) Java support and suppress QA warning.
37 + Fixes bug 298242.
38
39 06 Jan 2013; Justin Bronder <jsbronder@g.o> mpe2-1.0.6_p1.ebuild,
40 mpe2-1.0.6_p1-r1.ebuild:
41
42
43
44 1.1 sys-cluster/mpe2/mpe2-1.0.6_p1-r2.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/mpe2/mpe2-1.0.6_p1-r2.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/mpe2/mpe2-1.0.6_p1-r2.ebuild?rev=1.1&content-type=text/plain
48
49 Index: mpe2-1.0.6_p1-r2.ebuild
50 ===================================================================
51 # Copyright 1999-2015 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/sys-cluster/mpe2/mpe2-1.0.6_p1-r2.ebuild,v 1.1 2015/07/28 08:48:42 monsieurp Exp $
54
55 EAPI=5
56
57 FORTRAN_NEEDED=fortran
58
59 inherit eutils fortran-2 java-pkg-opt-2 toolchain-funcs
60
61 MY_P=${P/_/}
62 DESCRIPTION="MPI development tools"
63 HOMEPAGE="http://www-unix.mcs.anl.gov/perfvis/download/index.htm"
64 SRC_URI="ftp://ftp.mcs.anl.gov/pub/mpi/${PN%2}/${MY_P}.tar.gz"
65
66 LICENSE="mpich2"
67 SLOT="0"
68 KEYWORDS="~amd64 ~x86"
69 IUSE="minimal fortran threads debug"
70
71 COMMON_DEPEND="!minimal? ( x11-libs/libXtst
72 x11-libs/libXi )
73 || ( sys-cluster/openmpi[fortran?,threads?]
74 sys-cluster/mpich2[fortran?,threads?] )"
75
76 DEPEND="!minimal? ( >=virtual/jdk-1.6 )
77 ${COMMON_DEPEND}"
78
79 RDEPEND="
80 !minimal? ( >=virtual/jre-1.6 )
81 ${COMMON_DEPEND}"
82
83 S="${WORKDIR}"/${MY_P}
84 MPE_IMP=""
85
86 # README:
87 # This ebuild is created to handle building with both mpich2 and openmpi.
88 # However, without empi (in the science overlay), and some further
89 # conversion to use mpi.eclass, we can only handle one implementation
90 # at a time. I still believe it's better to have the ebuild setup
91 # correctly in preperation.
92
93 pkg_setup() {
94 fortran-2_pkg_setup
95 local i
96
97 if has_version sys-cluster/openmpi; then
98 MPE_IMP=openmpi
99 elif has_version sys-cluster/mpich2; then
100 MPE_IMP=mpich2
101 else
102 die "Unknown MPI implementation"
103 fi
104
105 export JFLAGS="${JFLAGS} $(java-pkg_javac-args)"
106
107 if [[ "${MPE_IMP}" == openmpi ]] && [ -z "${MPE2_FORCE_OPENMPI_TEST}" ]; then
108 echo
109 elog "Currently src_test fails on collchk with openmpi, hence"
110 elog "testing is disabled by default. If you would like to"
111 elog "force testing, please add MPE_FORCE_OPENMPI_TEST=1"
112 elog "to your environment."
113 echo
114 fi
115
116 einfo "Building with support for: sys-cluster/${MPE_IMP}"
117
118 if ! minimal; then
119 java-pkg-opt-2_pkg_setup
120 fi
121 }
122
123 src_prepare() {
124 # Don't assume path contains ./
125 sed -i 's,\($MPERUN\) $pgm,\1 ./$pgm,' sbin/mpetestexeclog.in
126 epatch "${FILESDIR}"/slog2sdk-trace_rlog-makefile-fixes.patch
127 epatch "${FILESDIR}"/slog2sdk-trace_sample-makefile-fixes.patch
128
129 if ! minimal; then
130 java-pkg-opt-2_src_prepare
131 fi
132 }
133
134 src_configure() {
135 local c="--with-mpicc=/usr/bin/mpicc"
136
137 if use fortran; then
138 c="${c} --with-mpif77=/usr/bin/mpif77"
139 else
140 c="${c} --disable-f77"
141 fi
142
143 if use minimal; then
144 c="${c} --enable-slog2=no --disable-rlog --disable-sample"
145 else
146 c="${c} --with-java2=$(java-config --jdk-home) --enable-slog2=build"
147 fi
148
149 if [[ "${MPE_IMP}" == openmpi ]]; then
150 c="${c} --disable-rlog --disable-sample"
151 fi
152
153 econf ${c} \
154 --sysconfdir=/etc/${PN} \
155 --datadir=/usr/share/${PN} \
156 --with-htmldir=/usr/share/${PN} \
157 --with-docdir=/usr/share/${PN} \
158 --enable-collchk \
159 --enable-wrappers \
160 $(use_enable !minimal graphics) \
161 $(use_enable threads threadlogging) \
162 $(use_enable debug g)
163 }
164
165 src_test() {
166 local rc
167
168 cd "${S}"
169 if [[ "${MPE_IMP}" == mpich2 ]]; then
170 echo "MPD_SECRETWORD=junk" > "${T}"/mpd.conf
171 chmod 600 "${T}"/mpd.conf
172 export MPD_CONF_FILE="${T}/mpd.conf"
173 "${ROOT}"usr/bin/mpd -d --pidfile="${T}"/mpd.pid
174 elif [[ "${MPE_IMP}" == openmpi* ]] && [ -z "${MPE2_FORCE_OPENMPI_TEST}" ]; then
175 elog
176 elog "Skipping tests for openmpi"
177 elog
178 return 0
179 fi
180
181 # No parallel make:
182 # http://trac.mcs.anl.gov/projects/mpich2/ticket/1095#comment:1
183 emake -j1 \
184 CC="${S}"/bin/mpecc \
185 FC="${S}"/bin/mpefc \
186 MPERUN="${ROOT}/usr/bin/mpiexec -n 4" \
187 CLOG2TOSLOG2="${S}/src/slog2sdk/bin/clog2TOslog2" \
188 check;
189 rc=${?}
190 if [[ "${MPE_IMP}" == mpich2 ]]; then
191 "${ROOT}"usr/bin/mpdallexit || kill $(<"${T}"/mpd.pid)
192 fi
193
194 return ${rc}
195 }
196
197 src_install() {
198 # No parallel make:
199 # http://trac.mcs.anl.gov/projects/mpich2/ticket/1095#comment:1
200 emake -j1 DESTDIR="${D}" install || die
201 rm -f "${D}"/usr/sbin/mpeuninstall || die
202 }