diff options
| author | Adam Vandenberg | 2009-09-21 11:52:47 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2009-09-21 13:06:21 -0700 |
| commit | 3db47c451b1f8a7a0f6bf0624192e467e3c77316 (patch) | |
| tree | 49e050e0e081792b91c43221c0359c2c052d7e61 | |
| parent | 86c2a45ded97d6b9cea30676f582458bb83b1e5c (diff) | |
| download | homebrew-3db47c451b1f8a7a0f6bf0624192e467e3c77316.tar.bz2 | |
Don't hardcode 'gcc' in manual formulas.
| -rw-r--r-- | Library/Formula/dos2unix.rb | 5 | ||||
| -rw-r--r-- | Library/Formula/tree.rb | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/Library/Formula/dos2unix.rb b/Library/Formula/dos2unix.rb index 06988aac8..c0ba4f5f6 100644 --- a/Library/Formula/dos2unix.rb +++ b/Library/Formula/dos2unix.rb @@ -7,8 +7,11 @@ class Dos2unix <Formula def install File.unlink 'dos2unix' + # we don't use make as it doesn't optimise :P - system "gcc #{ENV['CFLAGS']} dos2unix.c -o dos2unix" + gcc = ENV['CC'] || "gcc" + system "#{gcc} #{ENV['CFLAGS']} dos2unix.c -o dos2unix" + # make install is broken due to INSTALL file, but also it sucks so we'll do it # also Ruby 1.8 is broken, it won't allow you to move a symlink that's # target is invalid. FFS very dissapointed with dependability of diff --git a/Library/Formula/tree.rb b/Library/Formula/tree.rb index 7964a0184..982b4bb5a 100644 --- a/Library/Formula/tree.rb +++ b/Library/Formula/tree.rb @@ -6,7 +6,9 @@ class Tree <Formula @md5='a7731a898e2c0d7e422a57a84ffbb06c' def install - system "gcc #{ENV['CFLAGS']} -o tree tree.c strverscmp.c" + gcc = ENV['CC'] || "gcc" + system "#{gcc} #{ENV['CFLAGS']} -o tree tree.c strverscmp.c" + bin.install "tree" man1.install "man/tree.1" end |
