2010-02-06 13:41:01 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Newlisp < Formula
|
2010-02-06 13:41:01 +00:00
|
|
|
homepage 'http://www.newlisp.org/'
|
2013-05-31 15:47:54 +00:00
|
|
|
url 'http://www.newlisp.org/downloads/newlisp-10.5.0.tgz'
|
|
|
|
sha1 '647aa86af6edce30402da260fe7f3ea7d03a91f1'
|
2010-02-06 13:41:01 +00:00
|
|
|
|
2012-11-11 03:12:26 +00:00
|
|
|
depends_on 'readline'
|
2010-02-06 13:41:01 +00:00
|
|
|
|
|
|
|
def install
|
2010-10-05 06:20:45 +00:00
|
|
|
# Required to use our configuration
|
|
|
|
ENV.append_to_cflags "-DNEWCONFIG -c"
|
|
|
|
|
|
|
|
system "./configure-alt", "--prefix=#{prefix}", "--mandir=#{man}"
|
2010-02-06 13:41:01 +00:00
|
|
|
system "make"
|
2010-10-05 06:20:45 +00:00
|
|
|
system "make check"
|
|
|
|
system "make install"
|
2010-02-06 13:41:01 +00:00
|
|
|
end
|
|
|
|
|
2012-10-10 18:25:26 +00:00
|
|
|
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
|
|
|
|
|
2013-05-16 04:18:03 +00:00
|
|
|
def patches
|
|
|
|
DATA
|
|
|
|
end
|
|
|
|
|
2010-10-05 06:20:45 +00:00
|
|
|
# Use the IDE to test a complete installation
|
|
|
|
def test
|
2012-05-05 22:12:31 +00:00
|
|
|
system "#{bin}/newlisp-edit"
|
2010-02-06 13:41:01 +00:00
|
|
|
end
|
|
|
|
end
|
2012-12-06 18:13:48 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
|
|
|
|
--- a/guiserver/newlisp-edit.lsp
|
|
|
|
+++ b/Users/gordy/tmp/newlisp-edit
|
|
|
|
@@ -1,4 +1,4 @@
|
|
|
|
-#!/usr/bin/newlisp
|
|
|
|
+#!/usr/bin/env newlisp
|
2013-05-16 04:18:03 +00:00
|
|
|
|
2012-12-06 18:13:48 +00:00
|
|
|
; newlisp-edit.lsp - multiple tab LISP editor and support for running code from the editor
|
|
|
|
; needs 9.9.2 version minimum to run
|
|
|
|
@@ -155,7 +155,7 @@
|
2013-05-16 04:18:03 +00:00
|
|
|
(write-file file (base64-dec text)))
|
|
|
|
(if (= ostype "Win32")
|
|
|
|
(catch (exec (string {newlisp.exe "} currentScriptFile {" } file " > " (string file "out"))) 'result)
|
2012-12-06 18:13:48 +00:00
|
|
|
- (catch (exec (string "/usr/bin/newlisp " currentScriptFile " " file)) 'result)
|
2013-05-16 04:18:03 +00:00
|
|
|
+ (catch (exec (string "/usr/local/bin/newlisp " currentScriptFile " " file)) 'result)
|
|
|
|
)
|
|
|
|
(if (list? result)
|
|
|
|
(begin
|
2012-12-06 18:13:48 +00:00
|
|
|
@@ -223,7 +223,7 @@
|
2013-05-16 04:18:03 +00:00
|
|
|
(gs:run-shell 'OutputArea
|
|
|
|
(string newlispDir "/newlisp.exe " currentExtension " -C -w \"" $HOME "\""))
|
|
|
|
(gs:run-shell 'OutputArea
|
2012-12-06 18:13:48 +00:00
|
|
|
- (string "/usr/bin/newlisp " currentExtension " -C -w " $HOME))
|
2013-05-16 04:18:03 +00:00
|
|
|
+ (string "/usr/local/bin/newlisp " currentExtension " -C -w " $HOME))
|
|
|
|
)
|
2012-12-06 18:13:48 +00:00
|
|
|
)
|
2013-05-16 04:18:03 +00:00
|
|
|
|