aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/picoc.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/Library/Formula/picoc.rb b/Library/Formula/picoc.rb
new file mode 100644
index 000000000..3fbee1305
--- /dev/null
+++ b/Library/Formula/picoc.rb
@@ -0,0 +1,17 @@
+require 'formula'
+
+class Picoc <Formula
+ url 'http://picoc.googlecode.com/files/picoc-1.0.tar.bz2'
+ homepage 'http://code.google.com/p/picoc/'
+ md5 '7af179f5f9351228df8a34ed7add436a'
+
+ 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"
+ bin.install "picoc"
+ end
+end