aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCharlie Sharpsteen2012-05-24 09:53:06 -0700
committerCharlie Sharpsteen2012-05-24 09:55:30 -0700
commitafc8498129b826bbe561fb5a4d7a78fc0bb820f7 (patch)
treefa07e0033c20e089cfdf3fa8d6b32b247e37fb3b
parentd43c1e4543f55df1c4b29a1471f889bd5051ed65 (diff)
downloadhomebrew-afc8498129b826bbe561fb5a4d7a78fc0bb820f7.tar.bz2
NetCDF: Disable Doxygen
Configure fails to disable make tasks when Doxygen is not installed and this causes the build to fail. We don't install Doxygen docs anyway. Also, move `ENV.fortran` to the top of the install block so that the build will fail early if a fortran compiler is not installed. Fixes #12406.
-rw-r--r--Library/Formula/netcdf.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Formula/netcdf.rb b/Library/Formula/netcdf.rb
index 8f9cf5ae4..8c80ee304 100644
--- a/Library/Formula/netcdf.rb
+++ b/Library/Formula/netcdf.rb
@@ -35,6 +35,8 @@ class Netcdf < Formula
end
def install
+ ENV.fortran if fortran?
+
common_args = %W[
--disable-dependency-tracking
--prefix=#{prefix}
@@ -43,7 +45,7 @@ class Netcdf < Formula
]
args = common_args.clone
- args << '--enable-netcdf4'
+ args.concat %w[--enable-netcdf4 --disable-doxygen]
system './configure', *args
system 'make install'
@@ -60,8 +62,6 @@ class Netcdf < Formula
end unless no_cxx?
NetcdfFortran.new.brew do
- ENV.fortran
-
system './configure', *common_args
system 'make install'
end if fortran?