aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJoshua B. Griffith2011-09-24 17:46:55 -0500
committerCharlie Sharpsteen2011-09-24 22:55:55 -0700
commitd172eb9e8cc41f6556c0d5127c373d8563b09fd2 (patch)
tree54e11c910487d324b0eb5a53902d43a5abcc6357 /Library
parent95f8e58e3e5234bcf16ac4e1bd02b43b8f4065bd (diff)
downloadhomebrew-d172eb9e8cc41f6556c0d5127c373d8563b09fd2.tar.bz2
New Formula: Qi
Qi is a functional programming language with a Turing-complete type system based on the sequent calculus. See: http://en.wikipedia.org/wiki/Qi_(programming_language) Closes #7806. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/qi.rb31
1 files changed, 31 insertions, 0 deletions
diff --git a/Library/Formula/qi.rb b/Library/Formula/qi.rb
new file mode 100644
index 000000000..0a92a94c5
--- /dev/null
+++ b/Library/Formula/qi.rb
@@ -0,0 +1,31 @@
+require 'formula'
+
+class Qi < Formula
+ url 'http://www.lambdassociates.org/Download/QiII1.07.zip'
+ homepage 'http://www.lambdassociates.org/'
+ md5 '3a0b5c56d0f107f80f5bca11b82a4d59'
+
+ def options
+ [['--SBCL', 'Use SBCL instead of CLISP']]
+ end
+
+ if ARGV.include? '--SBCL'
+ depends_on 'sbcl'
+ else
+ depends_on 'clisp'
+ end
+
+ def install
+ if ARGV.include? '--SBCL'
+ system "cd Lisp; sbcl --load 'install.lsp'"
+ system "echo \"#!/bin/bash\nsbcl --core #{prefix}/Qi.core $*\" > qi"
+ prefix.install ['Lisp/Qi.core']
+ else
+ system "cd Lisp; clisp install.lsp"
+ system "echo \"#!/bin/bash\nclisp -M #{prefix}/Qi.mem $*\" > qi"
+ prefix.install ['Lisp/Qi.mem']
+ end
+ system "chmod 755 qi"
+ bin.install ['qi']
+ end
+end