diff options
| author | Tianyi Cui | 2010-10-05 14:20:45 +0800 |
|---|---|---|
| committer | Adam Vandenberg | 2010-10-07 10:20:51 -0700 |
| commit | 52a2e3a109fd2fbaf7d0805d1ab0686e7ac9c1dc (patch) | |
| tree | 2c8e59cf8019442014c4123b591054431fd56f20 /Library/Formula | |
| parent | 568e89facd6b6e7b207b45e06c60c77ddef2169d (diff) | |
| download | homebrew-52a2e3a109fd2fbaf7d0805d1ab0686e7ac9c1dc.tar.bz2 | |
Refactored the newlisp formula
This formula is completely rewritten. Instead of just
install one executable `newlisp`, it now install
everything including standard library, documentation
and the IDE.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/newlisp.rb | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/Library/Formula/newlisp.rb b/Library/Formula/newlisp.rb index 9b6720481..f49bee2e9 100644 --- a/Library/Formula/newlisp.rb +++ b/Library/Formula/newlisp.rb @@ -8,16 +8,26 @@ class Newlisp <Formula depends_on 'readline' def install - # Minimal install as describe in the README - system "./configure" + # Required to use our configuration + ENV.append_to_cflags "-DNEWCONFIG -c" + + system "./configure-alt", "--prefix=#{prefix}", "--mandir=#{man}" system "make" - bin.install 'newlisp' + # Many .lsp files assume the interpreter will be installed in /usr/bin + Dir.glob("**/*.lsp") do |f| + inreplace f do |s| + s.gsub! "!#/usr/bin/newlisp", "!#/usr/bin/env newlisp" + s.gsub! "/usr/bin/newlisp", "#{bin}/newlisp" + end + end + + system "make check" + system "make install" end - def caveats; <<-EOS.undent - Because of hardcoded paths in the newLISP source, - this formula does not install the Java-based IDE. - EOS + # Use the IDE to test a complete installation + def test + system "newlisp-edit" end end |
