1 |
commit: 4a826e16ad44b9bdb3cf60ffde8bd9aef310730b |
2 |
Author: Christoph Junghans <ottxor <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 29 20:13:06 2016 +0000 |
4 |
Commit: Christoph Junghans <ottxor <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 29 20:13:11 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a826e16 |
7 |
|
8 |
sys-cluster/mpich: drop REQUIRED_USE |
9 |
|
10 |
See discussion on gentoo-science/sci#664 |
11 |
|
12 |
Package-Manager: portage-2.2.28 |
13 |
|
14 |
sys-cluster/mpich/mpich-3.2-r1.ebuild | 25 ++++++++++++++++++++----- |
15 |
1 file changed, 20 insertions(+), 5 deletions(-) |
16 |
|
17 |
diff --git a/sys-cluster/mpich/mpich-3.2-r1.ebuild b/sys-cluster/mpich/mpich-3.2-r1.ebuild |
18 |
index 382b2ca..90b3ee3 100644 |
19 |
--- a/sys-cluster/mpich/mpich-3.2-r1.ebuild |
20 |
+++ b/sys-cluster/mpich/mpich-3.2-r1.ebuild |
21 |
@@ -18,7 +18,6 @@ SLOT="0" |
22 |
LICENSE="mpich" |
23 |
KEYWORDS="" |
24 |
IUSE="+cxx doc fortran mpi-threads romio threads" |
25 |
-REQUIRED_USE="mpi-threads? ( threads )" |
26 |
|
27 |
COMMON_DEPEND=" |
28 |
>=dev-libs/libaio-0.3.109-r5[${MULTILIB_USEDEP}] |
29 |
@@ -54,7 +53,25 @@ src_prepare() { |
30 |
multilib_src_configure() { |
31 |
# The configure statements can be somewhat confusing, as they |
32 |
# don't all show up in the top level configure, however, they |
33 |
- # are picked up in the children directories. |
34 |
+ # are picked up in the children directories. Hence the separate |
35 |
+ # local vars. |
36 |
+ |
37 |
+ local c= |
38 |
+ if use mpi-threads; then |
39 |
+ # MPI-THREAD requries threading. |
40 |
+ c="${c} --with-thread-package=pthreads" |
41 |
+ c="${c} --enable-threads=runtime" |
42 |
+ else |
43 |
+ if use threads ; then |
44 |
+ c="${c} --with-thread-package=pthreads" |
45 |
+ else |
46 |
+ c="${c} --with-thread-package=none" |
47 |
+ fi |
48 |
+ c="${c} --enable-threads=single" |
49 |
+ fi |
50 |
+ |
51 |
+ c="${c} --sysconfdir=${EPREFIX}/etc/${PN}" |
52 |
+ c="${c} --docdir=${EPREFIX}/usr/share/doc/${PF}" |
53 |
|
54 |
export MPICHLIB_CFLAGS="${CFLAGS}" |
55 |
export MPICHLIB_CPPFLAGS="${CPPFLAGS}" |
56 |
@@ -66,10 +83,8 @@ multilib_src_configure() { |
57 |
|
58 |
ECONF_SOURCE=${S} econf \ |
59 |
--enable-shared \ |
60 |
- --sysconfdir="${EPREFIX}/etc/${PN}" \ |
61 |
--with-hwloc-prefix="${EPREFIX}/usr" \ |
62 |
- --enable-threads=$(usex mpi-threads runtime single) \ |
63 |
- --with-thread-package=$(usex threads pthreads none) \ |
64 |
+ ${c} \ |
65 |
--with-pm=hydra \ |
66 |
--disable-fast \ |
67 |
--enable-versioning \ |