diff options
| author | Adam Vandenberg | 2011-03-11 15:30:15 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2011-03-12 13:30:40 -0800 |
| commit | 8d1649bafaa4730e2249ee78f6d9a48faeaf4af1 (patch) | |
| tree | 79f61e79389e510caf03145a3664b9d2e7dd66cc /Library/Formula | |
| parent | 448a6a6c9f75a05f3888e83dc1652a4076de15f5 (diff) | |
| download | homebrew-8d1649bafaa4730e2249ee78f6d9a48faeaf4af1.tar.bz2 | |
r - use ENV.fortran
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/r.rb | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/Library/Formula/r.rb b/Library/Formula/r.rb index 011d11634..53be4841f 100644 --- a/Library/Formula/r.rb +++ b/Library/Formula/r.rb @@ -6,17 +6,12 @@ class R < Formula md5 'bc70b51dddab8aa39066710624e55d5e' def install - unless `/usr/bin/which gfortran`.chomp.size > 0 - opoo 'No gfortran found in path' - puts "You'll need to `brew install gfortran` or otherwise have a copy" - puts "of gfortran in your path for this brew to work." - end + ENV.fortran - ENV["FCFLAGS"] = ENV["CFLAGS"] - ENV["FFLAGS"] = ENV["CFLAGS"] - - system "./configure", "--prefix=#{prefix}", "--with-aqua", "--enable-R-framework", - "--with-lapack" + system "./configure", "--prefix=#{prefix}", + "--with-aqua", + "--enable-R-framework", + "--with-lapack" system "make" ENV.j1 # Serialized installs, please system "make install" |
