Lines 6-12
Link Here
|
6 |
|
6 |
|
7 |
FORTRAN_NEEDED=fortran |
7 |
FORTRAN_NEEDED=fortran |
8 |
|
8 |
|
9 |
inherit cuda eutils flag-o-matic fortran-2 toolchain-funcs versionator |
9 |
inherit cuda eutils flag-o-matic fortran-2 toolchain-funcs versionator multilib java-pkg-opt-2 |
|
|
10 |
|
11 |
JAVA_PKG_WANT_SOURCE=1.8 |
12 |
JAVA_PKG_WANT_TARGET=1.8 |
10 |
|
13 |
|
11 |
MY_P=${P/-mpi} |
14 |
MY_P=${P/-mpi} |
12 |
S=${WORKDIR}/${MY_P} |
15 |
S=${WORKDIR}/${MY_P} |
Lines 35-41
Link Here
|
35 |
LICENSE="BSD" |
38 |
LICENSE="BSD" |
36 |
SLOT="0" |
39 |
SLOT="0" |
37 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux" |
40 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux" |
38 |
IUSE="cma cuda +cxx elibc_FreeBSD fortran heterogeneous ipv6 mpi-threads numa romio threads vt |
41 |
IUSE="cma cuda +cxx elibc_FreeBSD fortran heterogeneous ipv6 mpi-threads numa romio threads vt +java |
39 |
${IUSE_OPENMPI_FABRICS} ${IUSE_OPENMPI_RM} ${IUSE_OPENMPI_OFED_FEATURES}" |
42 |
${IUSE_OPENMPI_FABRICS} ${IUSE_OPENMPI_RM} ${IUSE_OPENMPI_OFED_FEATURES}" |
40 |
|
43 |
|
41 |
REQUIRED_USE="openmpi_rm_slurm? ( !openmpi_rm_pbs ) |
44 |
REQUIRED_USE="openmpi_rm_slurm? ( !openmpi_rm_pbs ) |
Lines 71-82
Link Here
|
71 |
openmpi_rm_pbs? ( sys-cluster/torque ) |
74 |
openmpi_rm_pbs? ( sys-cluster/torque ) |
72 |
openmpi_rm_slurm? ( sys-cluster/slurm ) |
75 |
openmpi_rm_slurm? ( sys-cluster/slurm ) |
73 |
openmpi_ofed_features_rdmacm? ( sys-infiniband/librdmacm ) |
76 |
openmpi_ofed_features_rdmacm? ( sys-infiniband/librdmacm ) |
|
|
77 |
java? ( |
78 |
>=virtual/jre-1.6 |
79 |
) |
74 |
" |
80 |
" |
75 |
DEPEND="${RDEPEND}" |
81 |
DEPEND="${RDEPEND} |
|
|
82 |
java? ( |
83 |
>=virtual/jdk-1.6 |
84 |
)" |
76 |
|
85 |
|
77 |
pkg_setup() { |
86 |
pkg_setup() { |
78 |
fortran-2_pkg_setup |
87 |
fortran-2_pkg_setup |
79 |
|
88 |
|
|
|
89 |
if use java; then |
90 |
java-pkg-opt-2_pkg_setup |
91 |
fi |
92 |
|
80 |
if use mpi-threads; then |
93 |
if use mpi-threads; then |
81 |
echo |
94 |
echo |
82 |
ewarn "WARNING: use of MPI_THREAD_MULTIPLE is still disabled by" |
95 |
ewarn "WARNING: use of MPI_THREAD_MULTIPLE is still disabled by" |
Lines 137-143
Link Here
|
137 |
$(use_enable openmpi_ofed_features_dynamic-sl openib-dynamic-sl) \ |
150 |
$(use_enable openmpi_ofed_features_dynamic-sl openib-dynamic-sl) \ |
138 |
$(use_enable openmpi_ofed_features_failover btl-openib-failover) \ |
151 |
$(use_enable openmpi_ofed_features_failover btl-openib-failover) \ |
139 |
$(use_with openmpi_rm_pbs tm) \ |
152 |
$(use_with openmpi_rm_pbs tm) \ |
140 |
$(use_with openmpi_rm_slurm slurm) |
153 |
$(use_with openmpi_rm_slurm slurm) \ |
|
|
154 |
$(use_enable java) \ |
155 |
$(use_enable java mpi-java) |
141 |
} |
156 |
} |
142 |
|
157 |
|
143 |
src_install () { |
158 |
src_install () { |
Lines 152-157
Link Here
|
152 |
# Remove la files, no static libs are installed and we have pkg-config |
167 |
# Remove la files, no static libs are installed and we have pkg-config |
153 |
find "${ED}"/usr/$(get_libdir)/ -type f -name '*.la' -delete |
168 |
find "${ED}"/usr/$(get_libdir)/ -type f -name '*.la' -delete |
154 |
|
169 |
|
|
|
170 |
if use java; then |
171 |
local mpi_jar="${ED}"/usr/$(get_libdir)/mpi.jar |
172 |
java-pkg_dojar ${mpi_jar} |
173 |
# We don't want to install the jar file twice |
174 |
# so let's clean after ourselves |
175 |
rm ${mpi_jar} |
176 |
fi |
177 |
|
155 |
dodoc README AUTHORS NEWS VERSION || die |
178 |
dodoc README AUTHORS NEWS VERSION || die |
156 |
} |
179 |
} |
157 |
|
180 |
|