r - use ENV.fortran

master
Adam Vandenberg 2011-03-11 15:30:15 -08:00
parent 238b4f9146
commit 9de5d1950b
1 changed files with 5 additions and 10 deletions

View File

@ -6,17 +6,12 @@ class R < Formula
md5 'bc70b51dddab8aa39066710624e55d5e' md5 'bc70b51dddab8aa39066710624e55d5e'
def install def install
unless `/usr/bin/which gfortran`.chomp.size > 0 ENV.fortran
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["FCFLAGS"] = ENV["CFLAGS"] system "./configure", "--prefix=#{prefix}",
ENV["FFLAGS"] = ENV["CFLAGS"] "--with-aqua",
"--enable-R-framework",
system "./configure", "--prefix=#{prefix}", "--with-aqua", "--enable-R-framework", "--with-lapack"
"--with-lapack"
system "make" system "make"
ENV.j1 # Serialized installs, please ENV.j1 # Serialized installs, please
system "make install" system "make install"