diff options
| author | Dave Goodell | 2012-05-17 18:10:37 -0500 |
|---|---|---|
| committer | Charlie Sharpsteen | 2012-07-02 08:42:57 -0800 |
| commit | 4cea393966bcea24b5b8857511cb3cb48d69e6ff (patch) | |
| tree | 31df686dd5592c2e72a0a2cc955a5d09b38416bd /Library/Formula | |
| parent | 19d79bca80430f235dc6d9946c0d321c0a684147 (diff) | |
| download | homebrew-4cea393966bcea24b5b8857511cb3cb48d69e6ff.tar.bz2 | |
mpich2: add --devel and --HEAD versions
Closes #12303.
Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/mpich2.rb | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/Library/Formula/mpich2.rb b/Library/Formula/mpich2.rb index 2e47b26af..56d70ca56 100644 --- a/Library/Formula/mpich2.rb +++ b/Library/Formula/mpich2.rb @@ -4,7 +4,21 @@ 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.4.1p1/mpich2-1.4.1p1.tar.gz' version '1.4.1p1' - md5 'b470666749bcb4a0449a072a18e2c204' + sha1 '8dcc8888fb27232eb8f76c11cc890f1c3c483804' + head 'https://svn.mcs.anl.gov/repos/mpi/mpich2/trunk' + + devel do + url 'http://www.mcs.anl.gov/research/projects/mpich2/downloads/tarballs/1.5b1/mpich2-1.5b1.tar.gz' + version '1.5b1' + sha1 'd9dfc992657c3cbe5b40374fd8aaa553ebaf5402' + end + + # the HEAD version requires the autotools to be installed + # (autoconf>=2.67, automake>=1.11, libtool>=2.4) + if ARGV.build_head? + depends_on 'automake' => :build + depends_on 'libtool' => :build + end def options [ @@ -13,6 +27,18 @@ class Mpich2 < Formula end def install + unless ARGV.build_devel? or ARGV.build_head? + # parallel builds are broken prior to version 1.5a1 + ENV.deparallelize + end + + if ARGV.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') + system "./autogen.sh" + end + args = [ "--prefix=#{prefix}", "--mandir=#{man}", |
