aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Formula/sisc-scheme.rb21
1 files changed, 8 insertions, 13 deletions
diff --git a/Library/Formula/sisc-scheme.rb b/Library/Formula/sisc-scheme.rb
index 02d7b7653..c8cca03ba 100644
--- a/Library/Formula/sisc-scheme.rb
+++ b/Library/Formula/sisc-scheme.rb
@@ -1,22 +1,17 @@
require 'formula'
class SiscScheme < Formula
- homepage 'http://sourceforge.net/projects/sisc'
+ homepage 'http://sisc-scheme.org/'
url 'http://sourceforge.net/projects/sisc/files/SISC%20Lite/1.16.6/sisc-lite-1.16.6.tar.gz'
sha1 '4572dc584f2a8e82e1a47c49ea5b9d8cf151775d'
- 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
+ prefix.install_metafiles
+ libexec.install Dir['*']
+ (bin/'sisc').write <<-EOS.undent
+ #!/bin/sh
+ SISC_HOME=#{libexec}
+ exec #{libexec}/sisc "$@"
+ EOS
end
end