From afc8498129b826bbe561fb5a4d7a78fc0bb820f7 Mon Sep 17 00:00:00 2001 From: Charlie Sharpsteen Date: Thu, 24 May 2012 09:53:06 -0700 Subject: 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. --- Library/Formula/netcdf.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Library/Formula') 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? -- cgit v1.2.3