aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorDavid Stuebe2013-03-07 13:34:37 -0500
committerAdam Vandenberg2013-06-19 13:48:04 -0700
commit5d6df736e59da9eb745b2bb0fb7d237199520649 (patch)
tree8b6dbcf7c889e1ec5487188dfbbe2c33f93edaa8 /Library/Formula
parent837072104558e3e0d366358acbe6477b7b789cfe (diff)
downloadhomebrew-5d6df736e59da9eb745b2bb0fb7d237199520649.tar.bz2
HDF5: add support for fortran2003
Closes #18317. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/hdf5.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Formula/hdf5.rb b/Library/Formula/hdf5.rb
index 214abe342..669036dae 100644
--- a/Library/Formula/hdf5.rb
+++ b/Library/Formula/hdf5.rb
@@ -11,6 +11,7 @@ class Hdf5 < Formula
option 'enable-cxx', 'Compile C++ bindings'
option 'enable-threadsafe', 'Trade performance and C++ or Fortran support for thread safety'
option 'enable-parallel', 'Compile parallel bindings'
+ option 'enable-fortran2003', 'Compile Fortran 2003 bindings. Requires enable-fortran.'
depends_on 'szip'
depends_on MPIDependency.new(:cc, :cxx, :f90) if build.include? "enable-parallel"
@@ -36,9 +37,10 @@ class Hdf5 < Formula
if build.include? 'enable-cxx'
args << '--enable-cxx'
end
- if build.include? 'enable-fortran'
+ if build.include? 'enable-fortran' or build.include? 'enable-fortran2003'
args << '--enable-fortran'
ENV.fortran
+ args << '--enable-fortran2003' if build.include? 'enable-fortran2003'
end
end
@@ -46,6 +48,7 @@ class Hdf5 < Formula
ENV['CC'] = 'mpicc'
ENV['FC'] = 'mpif90'
end
+
system "./configure", *args
system "make install"
end