aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Formula/picoc.rb9
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