2009-12-09 19:14:23 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Spin < Formula
|
2009-12-09 19:14:23 +00:00
|
|
|
homepage 'http://spinroot.com/spin/whatispin.html'
|
2012-07-29 23:39:44 +00:00
|
|
|
url 'http://spinroot.com/spin/Src/spin622.tar.gz'
|
|
|
|
version '6.2.2'
|
|
|
|
sha1 'f402048864761d0fceefa61e8f03a9ee33a16a4c'
|
2009-12-09 19:14:23 +00:00
|
|
|
|
2012-03-18 20:33:24 +00:00
|
|
|
fails_with :llvm do
|
|
|
|
build 2334
|
|
|
|
end
|
2011-03-21 21:24:22 +00:00
|
|
|
|
2012-03-10 03:01:35 +00:00
|
|
|
# replace -DPC with -DMAC in makefile CFLAGS
|
2009-12-09 19:14:23 +00:00
|
|
|
def patches
|
|
|
|
DATA
|
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
ENV.deparallelize
|
|
|
|
|
2010-04-07 05:58:35 +00:00
|
|
|
cd("Src#{version}") do
|
2009-12-09 19:14:23 +00:00
|
|
|
system "make"
|
|
|
|
bin.install "spin"
|
|
|
|
end
|
|
|
|
|
2010-03-07 07:18:33 +00:00
|
|
|
man1.install "Man/spin.1"
|
2009-12-09 19:14:23 +00:00
|
|
|
end
|
|
|
|
end
|
2010-01-23 10:53:41 +00:00
|
|
|
|
|
|
|
# manual patching is required by the spin install process
|
2009-12-09 19:14:23 +00:00
|
|
|
__END__
|
2012-07-29 23:39:44 +00:00
|
|
|
diff --git a/Src6.2.2/makefile b/Src6.2.2/makefile
|
|
|
|
index 02d2a02..7687e0a 100644
|
|
|
|
--- a/Src6.2.2/makefile
|
|
|
|
+++ b/Src6.2.2/makefile
|
|
|
|
@@ -13,12 +13,12 @@
|
|
|
|
|
2012-02-02 22:23:33 +00:00
|
|
|
# see also ./make_pc for a simpler script, not requiring make
|
2009-12-09 19:14:23 +00:00
|
|
|
|
2012-07-29 23:39:44 +00:00
|
|
|
-CC=gcc
|
|
|
|
-CFLAGS=-O2 -DNXT # on some systems add: -I/usr/include
|
|
|
|
+#CC=gcc
|
|
|
|
+#CFLAGS=-O2 -DNXT # on some systems add: -I/usr/include
|
2009-12-09 19:14:23 +00:00
|
|
|
|
2012-07-29 23:39:44 +00:00
|
|
|
# CC=gcc -m32 # 32bit compilation on a 64bit system
|
2012-02-02 22:23:33 +00:00
|
|
|
# for a more picky compilation use gcc-4 and:
|
|
|
|
-# CFLAGS=-std=c99 -Wstrict-prototypes -pedantic -fno-strength-reduce -fno-builtin -W -Wshadow -Wpointer-arith -Wcast-qual -Winline -Wall -g -DNXT -DPC
|
|
|
|
+CFLAGS=-std=c99 -Wstrict-prototypes -pedantic -fno-strength-reduce -fno-builtin -W -Wshadow -Wpointer-arith -Wcast-qual -Winline -Wall -g -DNXT -DMAC
|
2009-12-09 19:14:23 +00:00
|
|
|
|
2012-02-02 22:23:33 +00:00
|
|
|
# on OS2: spin -Picc -E/Pd+ -E/Q+
|
|
|
|
# for Visual C++: spin -PCL -E/E
|