diff options
| author | Josh Pschorr | 2010-08-04 00:29:47 -0400 |
|---|---|---|
| committer | Adam Vandenberg | 2010-08-03 21:56:39 -0700 |
| commit | 0c9739c4f313f59d175e7fd82be63b35e62e77f4 (patch) | |
| tree | 4b258440ab69e29eee9776196240e532eec74123 | |
| parent | 543647a24997010b5048d0fed93e0c570d149197 (diff) | |
| download | homebrew-0c9739c4f313f59d175e7fd82be63b35e62e77f4.tar.bz2 | |
New formula: lemon
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
| -rw-r--r-- | Library/Formula/lemon.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Library/Formula/lemon.rb b/Library/Formula/lemon.rb new file mode 100644 index 000000000..e01f1f144 --- /dev/null +++ b/Library/Formula/lemon.rb @@ -0,0 +1,20 @@ +require 'formula' + +class Lemon <Formula + url 'http://tx97.net/pub/distfiles/lemon-1.69.tar.bz2' + homepage 'http://www.hwaci.com/sw/lemon/' + md5 '35aebc84c4f0e186aba1303bbef11a37' + + def install + lemon_share = share+'lemon' + + lemon_share.install 'lempar.c' + + # patch the parser generator to look for the 'lempar.c' template file where we've installed it + lempar_path = lemon_share+'lempar.c' + inreplace 'lemon.c', / = pathsearch\([^)]*\);/, " = \"#{lempar_path}\";" + + system ENV.cc, '-o', 'lemon', 'lemon.c' + bin.install 'lemon' + end +end |
