Lines 1-4
Link Here
|
1 |
# Copyright 1999-2014 Gentoo Foundation |
1 |
# Copyright 1999-2015 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-cluster/mpich/mpich-3.1.3.ebuild,v 1.1 2014/10/16 04:50:05 jsbronder Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-cluster/mpich/mpich-3.1.3.ebuild,v 1.1 2014/10/16 04:50:05 jsbronder Exp $ |
4 |
|
4 |
|
Lines 6-12
Link Here
|
6 |
|
6 |
|
7 |
FORTRAN_NEEDED=fortran |
7 |
FORTRAN_NEEDED=fortran |
8 |
|
8 |
|
9 |
inherit fortran-2 |
9 |
inherit fortran-2 multilib-minimal |
10 |
|
10 |
|
11 |
MY_PV=${PV/_/} |
11 |
MY_PV=${PV/_/} |
12 |
DESCRIPTION="A high performance and portable MPI implementation" |
12 |
DESCRIPTION="A high performance and portable MPI implementation" |
Lines 19-26
Link Here
|
19 |
IUSE="+cxx doc fortran mpi-threads romio threads" |
19 |
IUSE="+cxx doc fortran mpi-threads romio threads" |
20 |
|
20 |
|
21 |
COMMON_DEPEND=" |
21 |
COMMON_DEPEND=" |
22 |
dev-libs/libaio |
22 |
>=dev-libs/libaio-0.3.109-r5[${MULTILIB_USEDEP}] |
23 |
>=sys-apps/hwloc-1.9 |
23 |
>=sys-apps/hwloc-1.10.0-r2[${MULTILIB_USEDEP}] |
24 |
romio? ( net-fs/nfs-utils )" |
24 |
romio? ( net-fs/nfs-utils )" |
25 |
|
25 |
|
26 |
DEPEND="${COMMON_DEPEND} |
26 |
DEPEND="${COMMON_DEPEND} |
Lines 33-38
Link Here
|
33 |
|
33 |
|
34 |
S="${WORKDIR}"/${PN}-${MY_PV} |
34 |
S="${WORKDIR}"/${PN}-${MY_PV} |
35 |
|
35 |
|
|
|
36 |
MULTILIB_WRAPPED_HEADERS=( |
37 |
/usr/include/mpicxx.h |
38 |
/usr/include/mpi.h |
39 |
/usr/include/opa_config.h |
40 |
) |
41 |
|
36 |
pkg_setup() { |
42 |
pkg_setup() { |
37 |
FORTRAN_STANDARD="77 90" |
43 |
FORTRAN_STANDARD="77 90" |
38 |
fortran-2_pkg_setup |
44 |
fortran-2_pkg_setup |
Lines 50-56
Link Here
|
50 |
|| die |
56 |
|| die |
51 |
} |
57 |
} |
52 |
|
58 |
|
53 |
src_configure() { |
59 |
multilib_src_configure() { |
54 |
local c="--enable-shared" |
60 |
local c="--enable-shared" |
55 |
|
61 |
|
56 |
# The configure statements can be somewhat confusing, as they |
62 |
# The configure statements can be somewhat confusing, as they |
Lines 81-87
Link Here
|
81 |
export MPICHLIB_LDFLAGS=${LDFLAGS} |
87 |
export MPICHLIB_LDFLAGS=${LDFLAGS} |
82 |
unset CFLAGS CPPFLAGS CXXFLAGS FFLAGS FCFLAGS LDFLAGS |
88 |
unset CFLAGS CPPFLAGS CXXFLAGS FFLAGS FCFLAGS LDFLAGS |
83 |
|
89 |
|
84 |
econf ${c} \ |
90 |
ECONF_SOURCE=${S} econf ${c} \ |
85 |
--with-pm=hydra \ |
91 |
--with-pm=hydra \ |
86 |
--disable-mpe \ |
92 |
--disable-mpe \ |
87 |
--disable-fast \ |
93 |
--disable-fast \ |
Lines 90-106
Link Here
|
90 |
--with-hwloc-prefix=/usr \ |
96 |
--with-hwloc-prefix=/usr \ |
91 |
$(use_enable romio) \ |
97 |
$(use_enable romio) \ |
92 |
$(use_enable cxx) \ |
98 |
$(use_enable cxx) \ |
93 |
$(use_enable fortran f77) \ |
99 |
$(multilib_native_use_enable fortran fortran all) |
94 |
$(use_enable fortran fc) |
|
|
95 |
} |
100 |
} |
96 |
|
101 |
|
97 |
src_test() { |
102 |
multilib_src_test() { |
98 |
emake -j1 check |
103 |
emake -j1 check |
99 |
} |
104 |
} |
100 |
|
105 |
|
101 |
src_install() { |
106 |
multilib_src_install() { |
102 |
default |
107 |
default |
103 |
|
108 |
|
|
|
109 |
# fortran header cannot be wrapped (bug #540508), workaround part 1 |
110 |
if multilib_is_native_abi && use fortran; then |
111 |
mkdir "${T}"/fortran || die |
112 |
mv "${ED}"/usr/include/mpif* "${T}"/fortran || die |
113 |
mv "${ED}"/usr/include/*.mod "${T}"/fortran || die |
114 |
fi |
115 |
} |
116 |
|
117 |
multilib_src_install_all() { |
118 |
# fortran header cannot be wrapped (bug #540508), workaround part 2 |
119 |
if use fortran; then |
120 |
mv "${T}"/fortran/* "${ED}"/usr/include || die |
121 |
fi |
122 |
|
104 |
dodir /usr/share/doc/${PF} |
123 |
dodir /usr/share/doc/${PF} |
105 |
dodoc README{,.envvar} CHANGES RELEASE_NOTES |
124 |
dodoc README{,.envvar} CHANGES RELEASE_NOTES |
106 |
newdoc src/pm/hydra/README README.hydra |
125 |
newdoc src/pm/hydra/README README.hydra |