diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/gfortran.rb | 23 |
1 files changed, 9 insertions, 14 deletions
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 <CurlDownloadStrategy end class Gfortran <Formula - - case gcc_42_build - when 5577 - url 'http://r.research.att.com/gfortran-42-5577.pkg' - md5 '30fb495c93cf514003cdfcb7846dc701' - version "4.2.4-5577" - - when 5659 + if MACOS_VERSION >= 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 <Formula ohai "Installing gfortran 4.2.4 for XCode 3.2.2 (build 5659)" safe_system "pax --insecure -rz -f Payload.gz -s ',./usr,#{prefix},'" safe_system "ln -sf #{man1}/gfortran-4.2.1 #{man1}/gfortran.1" + 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 end end |
