aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorCharlie Sharpsteen2012-07-06 11:47:45 -0800
committerCharlie Sharpsteen2012-07-28 09:12:44 -0700
commit98d69d9efc300cd6ba50af1bf33da2f27dca0cdb (patch)
tree8c21f8dd1021a244bffaa2fbe1b858fd275bcf11 /Library/Homebrew/cmd
parentdcd06ecf88b460e4963c5d50df1a2889636551fc (diff)
downloadhomebrew-98d69d9efc300cd6ba50af1bf33da2f27dca0cdb.tar.bz2
dependencies.rb: Add MPI compiler Requirement
All versions of OS X prior to Lion shipped with some version of Open-MPI, but without working compiler wrappers for Fortran. Homebrew currently has two formulae that can supply this software: open-mpi and mpich2. This commit adds a `MPIDependency` Requirement that can be passed one of four values when constructed: :cc, :cxx, :f90, :f77 This will ensure the `mpi<value>` compiler is available and working. For example, if `depends_on MPIDependency.new(:cc, :f90)` is used, the Requirement will search for working `mpicc` and `mpif90` wrappers. If the required wrappers cannot be found, an error message will be displayed that prompts the user to install one of the Homebrew formulae that provides MPI. For each language passed to a MPIDependency Requirement, environment variables be will set that point to the compilers. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
Diffstat (limited to 'Library/Homebrew/cmd')
0 files changed, 0 insertions, 0 deletions