1 |
commit: 8aa5f237c622b4305b33fdba0c3fab964f1cf945 |
2 |
Author: Christoph Junghans <ottxor <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 29 20:03:41 2016 +0000 |
4 |
Commit: Justin Bronder <jsbronder <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 29 20:11:29 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=8aa5f237 |
7 |
|
8 |
sys-cluster/mpich: bring back sysconfdir logic |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
sys-cluster/mpich/mpich-3.2-r2.ebuild | 11 ++++++++--- |
13 |
1 file changed, 8 insertions(+), 3 deletions(-) |
14 |
|
15 |
diff --git a/sys-cluster/mpich/mpich-3.2-r2.ebuild b/sys-cluster/mpich/mpich-3.2-r2.ebuild |
16 |
index 33fe443..64ebfc0 100644 |
17 |
--- a/sys-cluster/mpich/mpich-3.2-r2.ebuild |
18 |
+++ b/sys-cluster/mpich/mpich-3.2-r2.ebuild |
19 |
@@ -69,6 +69,13 @@ multilib_src_configure() { |
20 |
c="${c} --enable-threads=single" |
21 |
fi |
22 |
|
23 |
+ if ! mpi_classed; then |
24 |
+ c="${c} --sysconfdir=${EPREFIX}/etc/${PN}" |
25 |
+ c="${c} --docdir=${EPREFIX}/usr/share/doc/${PF}" |
26 |
+ else |
27 |
+ c="${c} --docdir=$(mpi_root)/usr/share/doc/${PF}" |
28 |
+ fi |
29 |
+ |
30 |
export MPICHLIB_CFLAGS="${CFLAGS}" |
31 |
export MPICHLIB_CPPFLAGS="${CPPFLAGS}" |
32 |
export MPICHLIB_CXXFLAGS="${CXXFLAGS}" |
33 |
@@ -77,16 +84,14 @@ multilib_src_configure() { |
34 |
export MPICHLIB_LDFLAGS="${LDFLAGS}" |
35 |
unset CFLAGS CPPFLAGS CXXFLAGS FFLAGS FCFLAGS LDFLAGS |
36 |
|
37 |
- ECONF_SOURCE=${S} $(mpi_econf_args) econf \ |
38 |
+ ECONF_SOURCE=${S} econf $(mpi_econf_args) \ |
39 |
--enable-shared \ |
40 |
- --sysconfdir="${EPREFIX}/etc/${PN}" \ |
41 |
--with-hwloc-prefix="${EPREFIX}/usr" \ |
42 |
${c} \ |
43 |
--with-pm=hydra \ |
44 |
--disable-fast \ |
45 |
--enable-versioning \ |
46 |
--with-hwloc-prefix=/usr \ |
47 |
- $(mpi_classed && echo "--docdir=$(mpi_root)/usr/share/doc/${PF}") \ |
48 |
$(use_enable romio) \ |
49 |
$(use_enable cxx) \ |
50 |
$(multilib_native_use_enable fortran fortran all) |