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/pgplot.rb | |
| parent | 80135fe5a92c493159414db6029dc3d55a522bcd (diff) | |
| download | homebrew-e2cf5f0b75b4d3e3346b1cc9fb742a5a401596a4.tar.bz2 | |
Use Fortran ENV helpers
Diffstat (limited to 'Library/Formula/pgplot.rb')
| -rw-r--r-- | Library/Formula/pgplot.rb | 10 |
1 files changed, 5 insertions, 5 deletions
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 |
