homebrew-core/Formula/newlisp.rb
Libor Wagner 998c1c0edc newLisp: Upgrade to 10.3.3
Closes Homebrew/homebrew#7996.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2011-10-11 10:09:30 -07:00

33 lines
812 B
Ruby

require 'formula'
class Newlisp < Formula
url 'http://www.newlisp.org/downloads/newlisp-10.3.3.tgz'
homepage 'http://www.newlisp.org/'
md5 '9f997690d09b96dca9c3843784b13702'
depends_on 'readline'
def install
# Required to use our configuration
ENV.append_to_cflags "-DNEWCONFIG -c"
system "./configure-alt", "--prefix=#{prefix}", "--mandir=#{man}"
system "make"
# 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
# Use the IDE to test a complete installation
def test
system "newlisp-edit"
end
end