aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWesley Bland2013-12-02 10:09:38 -0600
committerAdam Vandenberg2013-12-05 08:01:34 -0800
commit6a44a1954f51768b01372804c29237f76ed1e30f (patch)
tree5cec61d44a0f12dcdf59e88105a06e1f61767167
parent649b07522e7699b23140d9421fa30688ab256d78 (diff)
downloadhomebrew-6a44a1954f51768b01372804c29237f76ed1e30f.tar.bz2
mpich2: Update for 3.1rc2 release
Add the information for the 3.1rc2 release as a devel tag. This is the first time this formula has an unstable version so some new logic needed to be added to cover these cases. This release changes the default behavior from disabling shared libraries to enabling them so there needs to be another flag to cover this case. For now, both options will be available to the user (MPICH will ignore the flag if it is redundant). When 3.1 is fully released, the --enable-shared flag will be removed entirely as it will always be redundant. Closes #24880. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
-rw-r--r--Library/Formula/mpich2.rb11
1 files changed, 9 insertions, 2 deletions
diff --git a/Library/Formula/mpich2.rb b/Library/Formula/mpich2.rb
index e644b2a5b..c18b7de80 100644
--- a/Library/Formula/mpich2.rb
+++ b/Library/Formula/mpich2.rb
@@ -16,9 +16,14 @@ class Mpich2 < Formula
depends_on 'libtool' => :build
end
+ devel do
+ url 'http://www.mpich.org/static/downloads/3.1rc2/mpich-3.1rc2.tar.gz'
+ sha1 'bfb3a5b844789a314773a6c2b9763fdc2054be75'
+ end
option 'disable-fortran', "Do not attempt to build Fortran bindings"
- option 'enable-shared', "Build shared libraries"
+ option 'enable-shared', "Build shared libraries (default for versions > 3.0.4)"
+ option 'disable-shared', "Do not build shared libraries (default for versions <= 3.0.4)"
depends_on :fortran unless build.include? 'disable-fortran'
@@ -54,9 +59,11 @@ class Mpich2 < Formula
args << "--disable-f77" << "--disable-fc"
end
- # MPICH configure defaults to "--disable-shared"
+ # MPICH configure up to version 3.0.4 defaults to "--disable-shared"
if build.include? 'enable-shared'
args << "--enable-shared"
+ elsif build.include? 'disable-shared'
+ args << "--disable-shared"
end
system "./configure", *args