2009-12-09 22:34:42 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Xspin < Formula
|
2009-12-09 22:34:42 +00:00
|
|
|
homepage 'http://spinroot.com/spin/Src/index.html'
|
2013-01-27 23:23:53 +00:00
|
|
|
url 'http://spinroot.com/spin/Src/xspin525.tcl'
|
2010-10-07 09:46:14 +00:00
|
|
|
version '5.2.5'
|
2013-01-27 23:23:53 +00:00
|
|
|
sha1 '8166ccc6830f052e31162bec618c17452a988b5d'
|
2009-12-09 22:34:42 +00:00
|
|
|
|
|
|
|
depends_on 'spin'
|
|
|
|
|
|
|
|
def patches
|
|
|
|
DATA
|
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
2010-10-07 09:46:14 +00:00
|
|
|
inreplace "xspin525.tcl", "CELLAR", prefix
|
|
|
|
bin.install "xspin525.tcl" => "xspin"
|
2009-12-09 22:34:42 +00:00
|
|
|
end
|
|
|
|
end
|
2010-01-23 10:53:41 +00:00
|
|
|
|
|
|
|
# manual patching is required by the spin install process
|
2009-12-09 22:34:42 +00:00
|
|
|
__END__
|
2010-10-07 09:46:14 +00:00
|
|
|
diff --git a/xspin525.tcl b/xspin525.tcl
|
2009-12-09 22:34:42 +00:00
|
|
|
old mode 100644
|
|
|
|
new mode 100755
|
|
|
|
index 73fc6bf..444b0ad
|
2010-10-07 09:46:14 +00:00
|
|
|
--- a/xspin525.tcl
|
|
|
|
+++ b/xspin525.tcl
|
2009-12-09 22:34:42 +00:00
|
|
|
@@ -1,8 +1,9 @@
|
|
|
|
-#!/bin/sh
|
|
|
|
+#!/usr/bin/wish -f
|
|
|
|
# the next line restarts using wish \
|
|
|
|
-exec wish c:/cygwin/bin/xspin -- $*
|
|
|
|
+exec wish CELLAR/bin/xspin -- $*
|
|
|
|
+
|
|
|
|
+ cd ;# enable to cd to home directory by default
|
|
|
|
|
|
|
|
-# cd ;# enable to cd to home directory by default
|
|
|
|
|
|
|
|
# on PCs:
|
|
|
|
# adjust the first argument to wish above with the name and
|