diff options
| author | nibbles 2bits | 2012-04-23 22:11:52 -0700 |
|---|---|---|
| committer | Jack Nagel | 2012-04-24 23:44:55 -0500 |
| commit | a63c052f010d630fb2558155e28e0fb3d2149c49 (patch) | |
| tree | ed09e9771821ab4dc0176654c21ddadb6f22bf78 /Library/Formula | |
| parent | 4e3f40925584a4c1a8c9a53334691f554778b4ce (diff) | |
| download | homebrew-a63c052f010d630fb2558155e28e0fb3d2149c49.tar.bz2 | |
typespeed: Fix hardcoded gcc
Typespeed-0.6.5 stopped development in 2008 but hard-codes `gcc`
into two of their Makefiles. Use `ENV.cc` instead. Tested on
Lion with clang and llvm-gcc. Typespeed also does a `chgrp games`
Even though that group will likely not exist, the software still
works without error because the owner is correct, and the `chgrp`
does not stop the build if it is unsuccessful.
Closes #11848.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/typespeed.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Formula/typespeed.rb b/Library/Formula/typespeed.rb index c5f98aaca..80deda834 100644 --- a/Library/Formula/typespeed.rb +++ b/Library/Formula/typespeed.rb @@ -6,7 +6,10 @@ class Typespeed < Formula md5 '578102b418c7df84903d3e90df2e7483' def install - system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking" + # Fix the hardcoded gcc. + inreplace 'src/Makefile.in', 'gcc', "#{ENV.cc}" + inreplace 'testsuite/Makefile.in', 'gcc', "#{ENV.cc}" + system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking" system "make install" end end |
