diff options
| author | Adam Vandenberg | 2013-06-13 09:08:34 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-06-13 09:11:05 -0700 |
| commit | 867f7a4d7e739e3f55f8fd304a9571ab2aba1504 (patch) | |
| tree | 36b35e195015ec48f73090588a6e6b9b81b7a716 /Library/Formula | |
| parent | 481c3b2791752af5a922eba91d001105f4ecbfc3 (diff) | |
| download | homebrew-867f7a4d7e739e3f55f8fd304a9571ab2aba1504.tar.bz2 | |
sisc-scheme: style updates
* Use a better homepage
* Install to libexec instead of prefix
* Write a sisc wrapper instead of appending to existing one
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/sisc-scheme.rb | 21 |
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 |
