mxcl/homebrew — pull request #8234 by randysecrist (2011-10-22 17:25:23+00:00)
Title: gfortran changed to install under xcode 4.2.

With xcode 4.2 gm (released October 12), apple removed /usr/bin/gcc-4.2. This causes the brew script to fail for gfortran.

This pull request attempts to address this issue.

Summary of the changes:

1) Added a DMG download strategy.
2) Modified the selection of the strategy chooser. Strategy is now selected depending on if gcc-4.2 can be located.
3) For systems which are on Lion using the latest xcode, this brew now pulls down and uses gfortran 4.6.2.
4) Honors brew standard practice of placing files in cellar, and only linking against gfortran.

Testing:
New OS X 10.7 virtual machine.
a) Installed xcode 4.2.
b) Installed homebrew.
c) Installed gfortran
d) Installed R (depends on gfortran & passed)

Please consider this for merge.

-- Randy