| 1 | # Copyright 1999-2010 Gentoo Foundation |
1 | # Copyright 1999-2010 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/openmpi/Attic/openmpi-1.4.2.ebuild,v 1.9 2010/12/19 17:51:36 jlec Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/sys-cluster/openmpi/Attic/openmpi-1.4.2.ebuild,v 1.10 2010/12/19 18:12:39 jlec Exp $ |
| 4 | |
4 | |
| 5 | EAPI=3 |
5 | EAPI=3 |
| 6 | inherit eutils multilib flag-o-matic toolchain-funcs |
6 | inherit eutils multilib flag-o-matic toolchain-funcs |
| 7 | |
7 | |
| 8 | MY_P=${P/-mpi} |
8 | MY_P=${P/-mpi} |
| … | |
… | |
| 52 | >> opal/etc/openmpi-mca-params.conf |
52 | >> opal/etc/openmpi-mca-params.conf |
| 53 | fi |
53 | fi |
| 54 | } |
54 | } |
| 55 | |
55 | |
| 56 | src_configure() { |
56 | src_configure() { |
| 57 | local myconf=" |
57 | local myconf=( |
| 58 | --sysconfdir="${EPREFIX}/etc/${PN}" |
58 | --sysconfdir=${EPREFIX}/etc/${PN} |
| 59 | --without-xgrid |
59 | --without-xgrid |
| 60 | --enable-pretty-print-stacktrace |
60 | --enable-pretty-print-stacktrace |
| 61 | --enable-orterun-prefix-by-default |
61 | --enable-orterun-prefix-by-default |
| 62 | --without-slurm" |
62 | --without-slurm) |
| 63 | |
63 | |
| 64 | if use mpi-threads; then |
64 | if use mpi-threads; then |
| 65 | myconf="${myconf} |
65 | myconf+=(${myconf} |
| 66 | --enable-mpi-threads |
66 | --enable-mpi-threads |
| 67 | --enable-progress-threads" |
67 | --enable-progress-threads) |
| 68 | fi |
68 | fi |
| 69 | |
69 | |
| 70 | if use fortran; then |
70 | if use fortran; then |
| 71 | if [[ $(tc-getFC) =~ g77 ]]; then |
71 | if [[ $(tc-getFC) =~ g77 ]]; then |
| 72 | myconf="${myconf} --disable-mpi-f90" |
72 | myconf+=(${myconf} --disable-mpi-f90) |
| 73 | elif [[ $(tc-getFC) =~ if ]]; then |
73 | elif [[ $(tc-getFC) =~ if ]]; then |
| 74 | # Enabled here as gfortran compile times are huge with this enabled. |
74 | # Enabled here as gfortran compile times are huge with this enabled. |
| 75 | myconf="${myconf} --with-mpi-f90-size=medium" |
75 | myconf+=(${myconf} --with-mpi-f90-size=medium) |
| 76 | fi |
76 | fi |
| 77 | else |
77 | else |
| 78 | myconf="${myconf} |
78 | myconf+=(${myconf} |
| 79 | --disable-mpi-f90 |
79 | --disable-mpi-f90 |
| 80 | --disable-mpi-f77" |
80 | --disable-mpi-f77) |
| 81 | fi |
81 | fi |
| 82 | |
82 | |
| 83 | ! use vt && myconf="${myconf} --enable-contrib-no-build=vt" |
83 | ! use vt && myconf+=(${myconf} --enable-contrib-no-build=vt) |
| 84 | |
84 | |
| 85 | econf ${myconf} \ |
85 | econf ${myconf} \ |
| 86 | $(use_enable cxx mpi-cxx) \ |
86 | $(use_enable cxx mpi-cxx) \ |
| 87 | $(use_enable romio io-romio) \ |
87 | $(use_enable romio io-romio) \ |
| 88 | $(use_enable heterogeneous) \ |
88 | $(use_enable heterogeneous) \ |
| 89 | $(use_with pbs tm) \ |
89 | $(use_with pbs tm) \ |
| 90 | $(use_enable ipv6) \ |
90 | $(use_enable ipv6) |
| 91 | || die "econf failed" |
|
|
| 92 | } |
91 | } |
| 93 | |
92 | |
| 94 | src_install () { |
93 | src_install () { |
| 95 | emake DESTDIR="${D}" install || die "make install failed" |
94 | emake DESTDIR="${D}" install || die "make install failed" |
| 96 | dodoc README AUTHORS NEWS VERSION |
95 | dodoc README AUTHORS NEWS VERSION || die |
| 97 | } |
96 | } |
| 98 | |
97 | |
| 99 | src_test() { |
98 | src_test() { |
| 100 | # Doesn't work with the default src_test as the dry run (-n) fails. |
99 | # Doesn't work with the default src_test as the dry run (-n) fails. |
| 101 | cd "${S}" |
100 | cd "${S}" |