diff options
| author | Adam Vandenberg | 2013-06-23 20:39:26 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-06-24 07:38:25 -0700 |
| commit | e2cf5f0b75b4d3e3346b1cc9fb742a5a401596a4 (patch) | |
| tree | 08f2fca2650f55edc74f84b97d000a7cadaab5cc /Library/Formula | |
| parent | 80135fe5a92c493159414db6029dc3d55a522bcd (diff) | |
| download | homebrew-e2cf5f0b75b4d3e3346b1cc9fb742a5a401596a4.tar.bz2 | |
Use Fortran ENV helpers
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/dotwrp.rb | 2 | ||||
| -rw-r--r-- | Library/Formula/netcdf.rb | 2 | ||||
| -rw-r--r-- | Library/Formula/pgplot.rb | 10 | ||||
| -rw-r--r-- | Library/Formula/qrupdate.rb | 6 | ||||
| -rw-r--r-- | Library/Formula/slicot.rb | 4 |
5 files changed, 12 insertions, 12 deletions
diff --git a/Library/Formula/dotwrp.rb b/Library/Formula/dotwrp.rb index 6f2960705..10e3e68b2 100644 --- a/Library/Formula/dotwrp.rb +++ b/Library/Formula/dotwrp.rb @@ -11,7 +11,7 @@ class Dotwrp < Formula def install # note: fno-underscoring is vital to override the symbols in Accelerate - system "#{ENV["FC"]} #{ENV["FFLAGS"]} -fno-underscoring -c dotwrp.f90" + system "#{ENV.fc} #{ENV.fflags} -fno-underscoring -c dotwrp.f90" system "ar -cru libdotwrp.a dotwrp.o" system "ranlib libdotwrp.a" diff --git a/Library/Formula/netcdf.rb b/Library/Formula/netcdf.rb index 6c109c234..8cb4be91e 100644 --- a/Library/Formula/netcdf.rb +++ b/Library/Formula/netcdf.rb @@ -36,7 +36,7 @@ class Netcdf < Formula # the library libnetcdff.dylib to be missing all the f90 symbols. # http://www.unidata.ucar.edu/software/netcdf/docs/known_problems.html#intel-fortran-macosx # https://github.com/mxcl/homebrew/issues/13050 - ENV['lt_cv_ld_force_load'] = 'no' if ENV['FC'] == 'ifort' + ENV['lt_cv_ld_force_load'] = 'no' if ENV.fc == 'ifort' end common_args = %W[ diff --git a/Library/Formula/pgplot.rb b/Library/Formula/pgplot.rb index b9250c716..670002bf6 100644 --- a/Library/Formula/pgplot.rb +++ b/Library/Formula/pgplot.rb @@ -45,8 +45,8 @@ class Pgplot < Formula ATHENA_INCL="" TK_INCL="" RV_INCL="" - FCOMPL="#{ENV['FC']}" - FFLAGC="#{ENV['FCFLAGS']}" + FCOMPL="#{ENV.fc}" + FFLAGC="#{ENV.fcflags}" FFLAGD="" CCOMPL="#{ENV.cc}" CFLAGC="#{ENV.cppflags}" @@ -58,13 +58,13 @@ class Pgplot < Formula TK_LIBS="" RANLIB="#{which 'ranlib'}" SHARED_LIB="libpgplot.dylib" - SHARED_LD="#{ENV['FC']} -dynamiclib -single_module $LDFLAGS -lX11 -install_name libpgplot.dylib" + SHARED_LD="#{ENV.fc} -dynamiclib -single_module $LDFLAGS -lX11 -install_name libpgplot.dylib" SHARED_LIB_LIBS="#{ENV.ldflags} -lpng -lX11" MCOMPL="" MFLAGC="" SYSDIR="$SYSDIR" CSHARED_LIB="libcpgplot.dylib" - CSHARED_LD="#{ENV['FC']} -dynamiclib -single_module $LDFLAGS -lX11" + CSHARED_LD="#{ENV.fc} -dynamiclib -single_module $LDFLAGS -lX11" EOS mkdir 'build' do @@ -90,7 +90,7 @@ class Pgplot < Formula # install libbutton if build.include? 'with-button' Button.new.brew do - inreplace 'Makefile', 'f77', "#{ENV['FC']} #{ENV['FCFLAGS']}" + inreplace 'Makefile', 'f77', "#{ENV.fc} #{ENV.fcflags}" system "make" lib.install 'libbutton.a' end diff --git a/Library/Formula/qrupdate.rb b/Library/Formula/qrupdate.rb index 8413f6f08..69c05b5e0 100644 --- a/Library/Formula/qrupdate.rb +++ b/Library/Formula/qrupdate.rb @@ -13,9 +13,9 @@ class Qrupdate < Formula ENV['PREFIX'] = prefix inreplace 'Makeconf' do |s| s.gsub! /^(FC=).*/, "\\1#{HOMEBREW_PREFIX}/bin/gfortran" - s.gsub! /^(FFLAGS=).*/, "\\1#{ENV['FCFLAGS']}" - s.gsub! /^(BLAS=).*/, "\\1#{ENV["LDFLAGS"]} -ldotwrp -framework Accelerate" - s.gsub! /^(LAPACK=).*/, "\\1#{ENV["LDFLAGS"]} -ldotwrp -framework Accelerate" + s.gsub! /^(FFLAGS=).*/, "\\1#{ENV.fcflags}" + s.gsub! /^(BLAS=).*/, "\\1#{ENV.ldflags} -ldotwrp -framework Accelerate" + s.gsub! /^(LAPACK=).*/, "\\1#{ENV.ldflags} -ldotwrp -framework Accelerate" end cd "./src" inreplace 'Makefile' do |s| diff --git a/Library/Formula/slicot.rb b/Library/Formula/slicot.rb index be5e3d9c2..7b5125dc0 100644 --- a/Library/Formula/slicot.rb +++ b/Library/Formula/slicot.rb @@ -12,8 +12,8 @@ class Slicot < Formula def install args = [ - "FORTRAN=#{ENV['FC']}", - "LOADER=#{ENV['FC']}", + "FORTRAN=#{ENV.fc}", + "LOADER=#{ENV.fc}", "LAPACKLIB='-framework Accelerate'", ] |
