homebrew-core/Formula/shen.rb

33 lines
846 B
Ruby
Raw Normal View History

require 'formula'
2012-02-08 05:48:05 +00:00
class Shen < Formula
2012-02-08 05:16:32 +00:00
homepage 'http://www.shenlanguage.org/'
url 'http://www.shenlanguage.org/download/Shen3.1.zip'
2012-03-06 15:06:31 +00:00
md5 'ecc1ed39c499417b9408157982559319'
2012-02-08 05:16:32 +00:00
if ARGV.include? "--sbcl"
depends_on 'sbcl'
else
depends_on 'clisp'
end
def options
[["--sbcl", "Build SBCL version."]]
end
def install
2012-03-06 15:06:31 +00:00
if 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"
2012-02-08 05:16:32 +00:00
bin.install 'shen'
end
end