From a63c052f010d630fb2558155e28e0fb3d2149c49 Mon Sep 17 00:00:00 2001 From: nibbles 2bits Date: Mon, 23 Apr 2012 22:11:52 -0700 Subject: 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 --- Library/Formula/typespeed.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Library/Formula') 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 -- cgit v1.2.3