From 76a304bec863971f4113a60ea0ab3aa19fcbc685 Mon Sep 17 00:00:00 2001 From: David Stuebe Date: Thu, 7 Mar 2013 13:34:37 -0500 Subject: [PATCH] HDF5: add support for fortran2003 Closes Homebrew/homebrew#18317. Signed-off-by: Adam Vandenberg --- Formula/hdf5.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Formula/hdf5.rb b/Formula/hdf5.rb index 214abe34258..669036daeb8 100644 --- a/Formula/hdf5.rb +++ b/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