diff options
| author | Adam Vandenberg | 2010-07-28 18:19:04 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-07-29 12:48:40 -0700 |
| commit | 48a664d6ebbbf91a0116a9bcbc45ca69b25705c8 (patch) | |
| tree | a8faf07cd64a0dfd03d4cbd08e35b602a27ca431 /Library | |
| parent | 17bcef52e0f4ed381999894353de53d0940b2b12 (diff) | |
| download | homebrew-48a664d6ebbbf91a0116a9bcbc45ca69b25705c8.tar.bz2 | |
Allow gfortran to install on Xcode 3.2.3 - experimental
Do:
brew install --force gfortran
to install gfortran on Xcode 3.2.3, using support for 3.2.2.
This is unsupported, but R seemed to compile fine for me when
I tried this.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/gfortran.rb | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/Library/Formula/gfortran.rb b/Library/Formula/gfortran.rb index f81e3d718..4c455b6a9 100644 --- a/Library/Formula/gfortran.rb +++ b/Library/Formula/gfortran.rb @@ -16,14 +16,16 @@ class GfortranPkgDownloadStrategy <CurlDownloadStrategy end class Gfortran <Formula - if MACOS_VERSION >= 10.6 - url 'http://r.research.att.com/gfortran-42-5659.pkg' - md5 '71bd546baa45c9c0fb4943cdd72ee274' - version "4.2.4-5659" - else + if MACOS_VERSION < 10.6 + # Leopard url 'http://r.research.att.com/gfortran-42-5577.pkg' md5 '30fb495c93cf514003cdfcb7846dc701' version "4.2.4-5577" + else + # Snow Leopard + url 'http://r.research.att.com/gfortran-42-5659.pkg' + md5 '71bd546baa45c9c0fb4943cdd72ee274' + version "4.2.4-5659" end homepage 'http://r.research.att.com/tools/' @@ -51,6 +53,17 @@ 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" + when 5664 + if ARGV.force? + opoo "XCode 3.2.3 detected, but using gfortran 4.2.4 for XCode 3.2.2" + 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 "XCode 3.2.3 detected, but not supported" + puts "To force installation on XCode 3.2.3 use:" + puts "\tbrew install --force gfortran" + end else onoe <<-EOS.undent Currently the gfortran compiler provided by this brew is only supported |
