diff options
| author | Adam Vandenberg | 2012-10-21 13:15:36 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-10-21 13:36:56 -0700 |
| commit | 7d827a31f76db2a9aa477765cbc01d4eda70b941 (patch) | |
| tree | 9b1318a382bda93b532cd7ae107d9b4d73695ef8 /Library/Formula | |
| parent | f86eb28e5ba7ec3bced7af576e06d868d48b965b (diff) | |
| download | homebrew-7d827a31f76db2a9aa477765cbc01d4eda70b941.tar.bz2 | |
mpich2: fix audit
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/mpich2.rb | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/Library/Formula/mpich2.rb b/Library/Formula/mpich2.rb index b1cae4e48..0cd1e5600 100644 --- a/Library/Formula/mpich2.rb +++ b/Library/Formula/mpich2.rb @@ -3,25 +3,21 @@ require 'formula' class Mpich2 < Formula homepage 'http://www.mcs.anl.gov/research/projects/mpich2/index.php' url 'http://www.mcs.anl.gov/research/projects/mpich2/downloads/tarballs/1.5/mpich2-1.5.tar.gz' - version '1.5' sha1 'be7448227dde5badf3d6ebc0c152b200998421e0' + head 'https://svn.mcs.anl.gov/repos/mpi/mpich2/trunk' # the HEAD version requires the autotools to be installed # (autoconf>=2.67, automake>=1.12.3, libtool>=2.4) - if ARGV.build_head? + if build.head? depends_on 'automake' => :build depends_on 'libtool' => :build end - def options - [ - ['--disable-fortran', "Do not attempt to build Fortran bindings"], - ] - end + option 'disable-fortran', "Do not attempt to build Fortran bindings" def install - if ARGV.build_head? + if build.head? # ensure that the consistent set of autotools built by homebrew is used to # build MPICH2, otherwise very bizarre build errors can occur ENV['MPICH2_AUTOTOOLS_DIR'] = (HOMEBREW_PREFIX+'bin') @@ -34,7 +30,7 @@ class Mpich2 < Formula "--prefix=#{prefix}", "--mandir=#{man}" ] - if ARGV.include? '--disable-fortran' + if build.include? 'disable-fortran' args << "--disable-f77" << "--disable-fc" else ENV.fortran |
