From 867f7a4d7e739e3f55f8fd304a9571ab2aba1504 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Thu, 13 Jun 2013 09:08:34 -0700 Subject: sisc-scheme: style updates * Use a better homepage * Install to libexec instead of prefix * Write a sisc wrapper instead of appending to existing one --- Library/Formula/sisc-scheme.rb | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) (limited to 'Library') 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 -- cgit v1.2.3