diff options
| author | Jack Nagel | 2012-02-12 22:37:27 -0600 |
|---|---|---|
| committer | Jack Nagel | 2012-02-12 22:37:27 -0600 |
| commit | 5efeb5419dee2631d58f14bcb5a1f0a83073610e (patch) | |
| tree | b837dada7ea5065d197a758a4be54eb8fdfafb5e /Library | |
| parent | 714c13a4520ebd062e2a23d3b23bc5bc0bdb1791 (diff) | |
| download | homebrew-5efeb5419dee2631d58f14bcb5a1f0a83073610e.tar.bz2 | |
picoc: avoid inreplace
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/picoc.rb | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/Library/Formula/picoc.rb b/Library/Formula/picoc.rb index 3f1666f5e..9b3e23965 100644 --- a/Library/Formula/picoc.rb +++ b/Library/Formula/picoc.rb @@ -1,17 +1,12 @@ require 'formula' class Picoc < Formula - url 'http://picoc.googlecode.com/files/picoc-2.1.tar.bz2' homepage 'http://code.google.com/p/picoc/' + url 'http://picoc.googlecode.com/files/picoc-2.1.tar.bz2' md5 '6505fb108d195bad0854c7024993cc24' def install - inreplace 'Makefile' do |s| - s.change_make_var! 'CC', ENV['CC'] - s.change_make_var! 'CFLAGS', ENV['CFLAGS'] + ' -DUNIX_HOST' - end - - system "make" + system "make", "CC=#{ENV.cc}", "CFLAGS=#{ENV.cflags} -DUNIX_HOST" bin.install "picoc" end end |
