Gentoo Archives: gentoo-commits

From: Kacper Kowalik <xarthisius@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sys-cluster/mpich2/
Date: Thu, 01 Nov 2012 20:10:44
Message-Id: 1351788935.b10c1dbf92324e438e8967e237701aa14fd983ab.xarthisius@gentoo
1 commit: b10c1dbf92324e438e8967e237701aa14fd983ab
2 Author: Justin Bronder <jbronder <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 1 16:55:19 2012 +0000
4 Commit: Kacper Kowalik <xarthisius <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 1 16:55:35 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=b10c1dbf
7
8 bump
9
10 Package-Manager: portage-2.1.11.30
11
12 ---
13 sys-cluster/mpich2/ChangeLog | 5 ++
14 sys-cluster/mpich2/mpich2-1.5.ebuild | 128 ++++++++++++++++++++++++++++++++++
15 2 files changed, 133 insertions(+), 0 deletions(-)
16
17 diff --git a/sys-cluster/mpich2/ChangeLog b/sys-cluster/mpich2/ChangeLog
18 index 6f093d8..6c93d92 100644
19 --- a/sys-cluster/mpich2/ChangeLog
20 +++ b/sys-cluster/mpich2/ChangeLog
21 @@ -2,6 +2,11 @@
22 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
23 # $Header: $
24
25 +*mpich2-1.5 (30 Oct 2012)
26 +
27 + 30 Oct 2012; Justin Bronder <jsbronder@g.o> +mpich2-1.5.ebuild:
28 + Bump
29 +
30 26 Oct 2012; Justin Lecher <jlec@g.o> mpich2-1.2.1_p1-r2.ebuild,
31 mpich2-1.4.1_p1.ebuild, metadata.xml:
32 Move to EAPI=5, use fortran-2.eclass correctly
33
34 diff --git a/sys-cluster/mpich2/mpich2-1.5.ebuild b/sys-cluster/mpich2/mpich2-1.5.ebuild
35 new file mode 100644
36 index 0000000..d1ce401
37 --- /dev/null
38 +++ b/sys-cluster/mpich2/mpich2-1.5.ebuild
39 @@ -0,0 +1,128 @@
40 +# Copyright 1999-2012 Gentoo Foundation
41 +# Distributed under the terms of the GNU General Public License v2
42 +# $Header: $
43 +
44 +EAPI=5
45 +
46 +FORTRAN_NEEDED=fortran
47 +
48 +inherit fortran-2 mpi
49 +
50 +MY_PV=${PV/_/}
51 +DESCRIPTION="A high performance and portable MPI implementation"
52 +HOMEPAGE="http://www.mcs.anl.gov/research/projects/mpich2/index.php"
53 +SRC_URI="http://www.mcs.anl.gov/research/projects/mpich2/downloads/tarballs/${MY_PV}/${PN}-${MY_PV}.tar.gz"
54 +
55 +SLOT="0"
56 +LICENSE="as-is"
57 +KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86"
58 +IUSE="+cxx doc fortran mpi-threads romio threads"
59 +
60 +COMMON_DEPEND="
61 + dev-libs/libaio
62 + sys-apps/hwloc
63 + romio? ( net-fs/nfs-utils )
64 + $(mpi_imp_deplist)"
65 +
66 +DEPEND="${COMMON_DEPEND}
67 + dev-lang/perl
68 + sys-devel/libtool"
69 +
70 +RDEPEND="${COMMON_DEPEND}"
71 +
72 +S="${WORKDIR}"/${PN}-${MY_PV}
73 +
74 +pkg_setup() {
75 + FORTRAN_STANDARD="77 90"
76 + fortran-2_pkg_setup
77 + MPI_ESELECT_FILE="eselect.mpi.mpich2"
78 +
79 + if use mpi-threads && ! use threads; then
80 + ewarn "mpi-threads requires threads, assuming that's what you want"
81 + fi
82 +
83 + if mpi_classed; then
84 + MPD_CONF_FILE_DIR=/etc/$(mpi_class)
85 + else
86 + MPD_CONF_FILE_DIR=/etc/${PN}
87 + fi
88 +
89 +}
90 +
91 +src_prepare() {
92 + # Using MPICH2LIB_LDFLAGS doesn't seem to full work.
93 + sed -i 's| *@WRAPPER_LDFLAGS@ *||' \
94 + src/packaging/pkgconfig/mpich2.pc.in \
95 + src/env/*.in \
96 + || die
97 +}
98 +
99 +src_configure() {
100 + local c="--enable-shared"
101 +
102 + # The configure statements can be somewhat confusing, as they
103 + # don't all show up in the top level configure, however, they
104 + # are picked up in the children directories.
105 +
106 + if use mpi-threads; then
107 + # MPI-THREAD requries threading.
108 + c="${c} --with-thread-package=pthreads"
109 + c="${c} --enable-threads=runtime"
110 + else
111 + if use threads ; then
112 + c="${c} --with-thread-package=pthreads"
113 + else
114 + c="${c} --with-thread-package=none"
115 + fi
116 + c="${c} --enable-threads=single"
117 + fi
118 +
119 + if ! mpi_classed; then
120 + c="${c} --sysconfdir=${EPREFIX}/etc/${PN}"
121 + c="${c} --docdir=${EPREFIX}/usr/share/doc/${PF}"
122 + else
123 + c="${c} --docdir=$(mpi_root)/usr/share/doc/${PF}"
124 + fi
125 +
126 + export MPICH2LIB_CFLAGS=${CFLAGS}
127 + export MPICH2LIB_CPPFLAGS=${CPPFLAGS}
128 + export MPICH2LIB_CXXFLAGS=${CXXFLAGS}
129 + export MPICH2LIB_FFLAGS=${FFLAGS}
130 + export MPICH2LIB_FCFLAGS=${FCFLAGS}
131 + export MPICH2LIB_LDFLAGS=${LDFLAGS}
132 + unset CFLAGS CPPFLAGS CXXFLAGS FFLAGS FCFLAGS LDFLAGS
133 +
134 + econf $(mpi_econf_args) ${c} \
135 + --with-pm=hydra \
136 + --disable-mpe \
137 + --disable-fast \
138 + --enable-smpcoll \
139 + --enable-versioning \
140 + $(use_enable romio) \
141 + $(use_enable cxx) \
142 + $(use_enable fortran f77) \
143 + $(use_enable fortran fc)
144 +}
145 +
146 +src_test() {
147 + emake -j1 check
148 +}
149 +
150 +src_install() {
151 + local d=$(echo ${ED}/$(mpi_root)/ | sed 's,///*,/,g')
152 +
153 + default
154 +
155 + mpi_dodir /usr/share/doc/${PF}
156 + mpi_dodoc COPYRIGHT README{,.envvar} CHANGES RELEASE_NOTES
157 + mpi_newdoc src/pm/hydra/README README.hydra
158 + if use romio; then
159 + mpi_newdoc src/mpi/romio/README README.romio
160 + fi
161 +
162 + if ! use doc; then
163 + rm -rf "${d}"usr/share/doc/${PF}/www*
164 + fi
165 +
166 + mpi_imp_add_eselect
167 +}