diff options
| author | Adam Vandenberg | 2013-06-13 08:58:00 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-06-13 09:11:05 -0700 |
| commit | 481c3b2791752af5a922eba91d001105f4ecbfc3 (patch) | |
| tree | 343565fa7aa88879ec2e84354468dba970be46a8 /Library/Formula/pgplot.rb | |
| parent | 91f6de1945063bf9ed7ce1a1a318fb5e6e40d246 (diff) | |
| download | homebrew-481c3b2791752af5a922eba91d001105f4ecbfc3.tar.bz2 | |
pgplot: use buildpath
Diffstat (limited to 'Library/Formula/pgplot.rb')
| -rw-r--r-- | Library/Formula/pgplot.rb | 59 |
1 files changed, 27 insertions, 32 deletions
diff --git a/Library/Formula/pgplot.rb b/Library/Formula/pgplot.rb index ab8fa74c5..6dc523f03 100644 --- a/Library/Formula/pgplot.rb +++ b/Library/Formula/pgplot.rb @@ -39,38 +39,33 @@ class Pgplot < Formula inreplace 'drivers/pndriv.c', 'setjmp(png_ptr->jmpbuf)', 'setjmp(png_jmpbuf(png_ptr))' # configure options - mkdir 'sys_darwin' do - File.open('homebrew.conf', 'w') do |conf| - conf.write(<<-EOS -XINCL="#{ENV.cppflags}" -MOTIF_INCL="" -ATHENA_INCL="" -TK_INCL="" -RV_INCL="" -FCOMPL="#{ENV['FC']}" -FFLAGC="#{ENV['FCFLAGS']}" -FFLAGD="" -CCOMPL="#{ENV.cc}" -CFLAGC="#{ENV.cppflags}" -CFLAGD="" -PGBIND_FLAGS="bsd" -LIBS="#{ENV.ldflags} -lX11" -MOTIF_LIBS="" -ATHENA_LIBS="" -TK_LIBS="" -RANLIB="#{which 'ranlib'}" -SHARED_LIB="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" -EOS - ) - end - end + (buildpath/'sys_darwin/homebrew.conf').write <<-EOS.undent + XINCL="#{ENV.cppflags}" + MOTIF_INCL="" + ATHENA_INCL="" + TK_INCL="" + RV_INCL="" + FCOMPL="#{ENV['FC']}" + FFLAGC="#{ENV['FCFLAGS']}" + FFLAGD="" + CCOMPL="#{ENV.cc}" + CFLAGC="#{ENV.cppflags}" + CFLAGD="" + PGBIND_FLAGS="bsd" + LIBS="#{ENV.ldflags} -lX11" + MOTIF_LIBS="" + ATHENA_LIBS="" + TK_LIBS="" + RANLIB="#{which 'ranlib'}" + SHARED_LIB="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" + EOS mkdir 'build' do # activate drivers |
