/[gentoo-x86]/sys-cluster/openmpi/openmpi-1.4.2.ebuild
Gentoo

Diff of /sys-cluster/openmpi/openmpi-1.4.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.7 Revision 1.8
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.7 2010/12/05 16:09:40 armin76 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-cluster/openmpi/Attic/openmpi-1.4.2.ebuild,v 1.8 2010/12/16 15:59:56 jlec Exp $
4 4
5EAPI=3 5EAPI=3
6inherit eutils multilib flag-o-matic toolchain-funcs fortran 6inherit eutils multilib flag-o-matic toolchain-funcs
7 7
8MY_P=${P/-mpi} 8MY_P=${P/-mpi}
9S=${WORKDIR}/${MY_P} 9S=${WORKDIR}/${MY_P}
10 10
11DESCRIPTION="A high-performance message passing library (MPI)" 11DESCRIPTION="A high-performance message passing library (MPI)"
40 echo 40 echo
41 elog "OpenMPI has an overwhelming count of configuration options." 41 elog "OpenMPI has an overwhelming count of configuration options."
42 elog "Don't forget the EXTRA_ECONF environment variable can let you" 42 elog "Don't forget the EXTRA_ECONF environment variable can let you"
43 elog "specify configure options if you find them necessary." 43 elog "specify configure options if you find them necessary."
44 echo 44 echo
45
46 if use fortran; then
47 FORTRAN="g77 gfortran ifc"
48 fortran_pkg_setup
49 fi
50} 45}
51 46
52src_prepare() { 47src_prepare() {
53 # Necessary for scalibility, see 48 # Necessary for scalibility, see
54 # http://www.open-mpi.org/community/lists/users/2008/09/6514.php 49 # http://www.open-mpi.org/community/lists/users/2008/09/6514.php
58 fi 53 fi
59} 54}
60 55
61src_configure() { 56src_configure() {
62 local myconf=" 57 local myconf="
63 --sysconfdir=${EPREFIX}/etc/${PN} 58 --sysconfdir="${EPREFIX}"/etc/${PN}
64 --without-xgrid 59 --without-xgrid
65 --enable-pretty-print-stacktrace 60 --enable-pretty-print-stacktrace
66 --enable-orterun-prefix-by-default 61 --enable-orterun-prefix-by-default
67 --without-slurm" 62 --without-slurm"
68 63
71 --enable-mpi-threads 66 --enable-mpi-threads
72 --enable-progress-threads" 67 --enable-progress-threads"
73 fi 68 fi
74 69
75 if use fortran; then 70 if use fortran; then
76 if [[ "${FORTRANC}" = "g77" ]]; then 71 if [[ "$(tc-getFC)" = "g77" ]]; then
77 myconf="${myconf} --disable-mpi-f90" 72 myconf="${myconf} --disable-mpi-f90"
78 elif [[ "${FORTRANC}" = if* ]]; then 73 elif [[ "$(tc-getFC)" = if* ]]; then
79 # Enabled here as gfortran compile times are huge with this enabled. 74 # Enabled here as gfortran compile times are huge with this enabled.
80 myconf="${myconf} --with-mpi-f90-size=medium" 75 myconf="${myconf} --with-mpi-f90-size=medium"
81 fi 76 fi
82 else 77 else
83 myconf="${myconf} 78 myconf="${myconf}

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.20