aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartial2011-11-10 14:22:41 +0100
committerCharlie Sharpsteen2011-11-11 15:28:21 -0800
commit57aa3f4b7504684f80faa13c4d469791f1be41eb (patch)
tree80e1a821debc1e291f41e90d3139c96a4905c857
parent39e702f2d72ba1e0de0ff0fba31a2ffdca704c12 (diff)
downloadhomebrew-57aa3f4b7504684f80faa13c4d469791f1be41eb.tar.bz2
shen 2.0
Closes #8540. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
-rw-r--r--Library/Formula/shen.rb35
1 files changed, 25 insertions, 10 deletions
diff --git a/Library/Formula/shen.rb b/Library/Formula/shen.rb
index a1bab5387..9725c3ae6 100644
--- a/Library/Formula/shen.rb
+++ b/Library/Formula/shen.rb
@@ -1,19 +1,34 @@
require 'formula'
-
class Shen < Formula
- url 'http://www.shenlanguage.org/Download/Shen1.9sources.zip'
+ url 'http://www.shenlanguage.org/download/Shen2.0.zip'
homepage 'http://www.lambdassociates.org/'
- md5 'bf161cf83dc1ae3fc23454ad6aff02f7'
- version '1.9'
+ version '2.0'
+ md5 '70770fe417e9d1a104f952a6acafb9ee'
+
+ case
+ when ARGV.include?("--sbcl") then
+ depends_on 'sbcl'
+ else
+ depends_on 'clisp'
+ end
- depends_on 'clisp'
+ def options
+ [["--sbcl", "Build SBCL version."]]
+ end
def install
- system "cp K\\ Lambda/* Platforms/CLisp"
- safe_system "cd Platforms/CLisp; clisp -i install.lsp"
- system "echo \"#!/bin/bash\nclisp -M #{prefix}/Shen.mem $*\" > shen"
- prefix.install ['Platforms/CLisp/Shen.mem']
+ case
+ when ARGV.include?("--sbcl") then
+ system "cp K\\ Lambda/* Platforms/SBCL"
+ safe_system "cd Platforms/SBCL; sbcl --load install.lsp"
+ system "mv Platforms/SBCL/Shen.exe shen"
+ else
+ system "cp K\\ Lambda/* Platforms/CLisp"
+ safe_system "cd Platforms/CLisp; clisp -i install.lsp"
+ system "echo \"#!/bin/bash\nclisp -M #{prefix}/Shen.mem $*\" > shen"
+ prefix.install ['Platforms/CLisp/Shen.mem']
+ end
system "chmod 755 shen"
bin.install ['shen']
end
-end
+end \ No newline at end of file