From 5082f98a415a7c0ca9d50d90da7dc24d6da40ebd Mon Sep 17 00:00:00 2001 From: Martin Kühl Date: Fri, 16 Jul 2010 22:27:12 +0200 Subject: Make `gfortran` only report errors on install. As is, the gfortran formula reports an Error when no compatible Xcode version is available, but does so even in cases when it is neither installed nor in the process of being installed. For example, `brew outdated` reports the error, just because it needs to load the formula to check its version. This changeset delays the error message until someone tries to install the formula. The version and URL are determined solely by checking the OSX version. Signed-off-by: Adam Vandenberg --- Library/Formula/gfortran.rb | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) (limited to 'Library') diff --git a/Library/Formula/gfortran.rb b/Library/Formula/gfortran.rb index 609f34b4d..f81e3d718 100644 --- a/Library/Formula/gfortran.rb +++ b/Library/Formula/gfortran.rb @@ -16,24 +16,14 @@ class GfortranPkgDownloadStrategy = 10.6 url 'http://r.research.att.com/gfortran-42-5659.pkg' md5 '71bd546baa45c9c0fb4943cdd72ee274' version "4.2.4-5659" - else - onoe <<-EOS.undent - Currently the gfortran compiler provided by this brew is only supported - for XCode 3.1.4 on OS X 10.5.x and XCode 3.2.2 on OS X 10.6.x - EOS - # exit + url 'http://r.research.att.com/gfortran-42-5577.pkg' + md5 '30fb495c93cf514003cdfcb7846dc701' + version "4.2.4-5577" end homepage 'http://r.research.att.com/tools/' @@ -61,6 +51,11 @@ class Gfortran