Skip to content

Commit

Permalink
typespeed: Fix hardcoded gcc
Browse files Browse the repository at this point in the history
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 Homebrew#11848.

Signed-off-by: Jack Nagel <[email protected]>
  • Loading branch information
nibbles 2bits authored and jacknagel committed Apr 25, 2012
1 parent 1e780c6 commit 76a9b08
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Library/Formula/typespeed.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 76a9b08

Please sign in to comment.