From 7a95865ecb226e4755a668cf2e751a5c87cd9cb4 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Wed, 29 Aug 2012 21:42:24 -0400 Subject: Fix qrupdate FCFLAGS if nil --- Library/Formula/qrupdate.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Library') diff --git a/Library/Formula/qrupdate.rb b/Library/Formula/qrupdate.rb index 3326a63de..aea99b992 100644 --- a/Library/Formula/qrupdate.rb +++ b/Library/Formula/qrupdate.rb @@ -12,9 +12,9 @@ class Qrupdate < Formula ENV['PREFIX'] = prefix inreplace 'Makeconf' do |s| # as per the caveats in the gfortran formula: - 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! /^(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" end cd "./src" -- cgit v1.2.3