This is silly, but I am no Rubyist and I don't have time to figure out why Formula.factory(foo).url works as expected but Formula.factory(foo).version does not. Signed-off-by: Jack Nagel <email@example.com>
Check for XCode >= 4.2 on Lion first before casing the GCC build in the install section as this is the order in which the download section selects which Lion binaries to fetch. Without this change, a leftover `gcc-4.2` installation can fool the logic into thinking the 5666-3 binaries were downloaded instead of the full GCC-4.2 suite. This causes the wrong installation steps to be executed which leaves users without some important symlinks. Closes #9398. Fixes #9395. Fixes #9043.
Rather than regex the output of `git show <rev>:<path>`, we write the output of `git cat-file blog <rev>:<path>` to a temporary file, and then operate on it just as we would a normal formula. I haven't observed any speed difference. `git cat-file blob` is faster than `git show`, but the "slow part" is still the git-rev-list invocation. But really it's pretty fast overall. Signed-off-by: Jack Nagel <firstname.lastname@example.org>