diff options
| author | David Albert | 2010-09-03 02:22:13 -0700 |
|---|---|---|
| committer | David Höppner | 2010-09-03 18:37:19 +0200 |
| commit | eac2feb16703f3859677ac8d79c3e57a33b3993c (patch) | |
| tree | bdaa9fb1cf16d1fbe89d0dcb00a9812fbc5d257c /Library | |
| parent | 22d99c91b53a50d96e9b0c5c54f45355e9172def (diff) | |
| download | homebrew-eac2feb16703f3859677ac8d79c3e57a33b3993c.tar.bz2 | |
New Formula: picoc
PicoC is a small C interpreter for scripting. It has an interactive
mode.
Signed-off-by: David Höppner <0xffea@gmail.com>
* rewrite CC and CFLAGS in Makefile
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/picoc.rb | 17 |
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 |
