homebrew-core/Formula/sisc-scheme.rb
benmills 93012982cb New Formula: SISC-Scheme
Closes Homebrew/homebrew#7652.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2011-09-23 19:34:16 -07:00

22 lines
507 B
Ruby

require 'formula'
class SiscScheme < Formula
url 'http://sourceforge.net/projects/sisc/files/SISC-Lite-zip/1.9.8/sisc-lite-1.9.8.zip'
md5 'c1b75ecf26af0d733415d36dcdb1d614'
homepage 'http://sourceforge.net/projects/sisc'
def script; <<-EOS.undent
#!/bin/sh
SISC_HOME=#{prefix}
EOS
end
def install
file = File.open("sisc", "rb")
contents = file.read
run_script = script
run_script += contents
prefix.install Dir['*']
(bin+'sisc').write run_script
end
end