Skip to content

Commit

Permalink
newlisp 10.4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
brettkoonce committed Oct 11, 2012
1 parent ea149cc commit 8875d0b
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions Library/Formula/newlisp.rb
Expand Up @@ -2,8 +2,8 @@

class Newlisp < Formula
homepage 'http://www.newlisp.org/'
url 'http://www.newlisp.org/downloads/newlisp-10.4.3.tgz'
sha1 'cf5f5514a2a18dd317aa5e6f38907f0a8879156f'
url 'http://www.newlisp.org/downloads/newlisp-10.4.4.tgz'
sha1 'eb1121aa49e5ef208855bd1ffdc3204eab974169'

depends_on 'readline'

Expand All @@ -13,19 +13,16 @@ def install

system "./configure-alt", "--prefix=#{prefix}", "--mandir=#{man}"
system "make"

# Many .lsp files assume the interpreter will be installed in /usr/bin
Dir["**/*.lsp"].each 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
If you have brew in a custom prefix, the included examples
will need to be be pointed to your newlisp executable.
EOS
end

# Use the IDE to test a complete installation
def test
system "#{bin}/newlisp-edit"
Expand Down

0 comments on commit 8875d0b

Please sign in to comment.