2009-12-09 19:14:23 +00:00
require 'formula'
class Spin < Formula
2010-10-07 09:44:10 +00:00
url 'http://spinroot.com/spin/Src/spin525.tar.gz'
2009-12-09 19:14:23 +00:00
homepage 'http://spinroot.com/spin/whatispin.html'
2010-10-07 09:44:10 +00:00
md5 '03345f9713e7b4f82d2d8ec319802b9c'
version '5.2.5'
2009-12-09 19:14:23 +00:00
def patches
DATA
end
def install
2010-06-16 18:50:36 +00:00
fails_with_llvm
2009-12-09 19:14:23 +00:00
ENV . deparallelize
# Compile and install the binary.
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
# Copy the man page.
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__
2010-10-07 09:44:10 +00:00
diff - - git a / Src5 . 2 . 5 / makefile b / Src5 . 2 . 5 / makefile
2009-12-09 19:14:23 +00:00
index 67 f22aa .. 596 c893 100755
2010-10-07 09:44:10 +00:00
- - - a / Src5 . 2 . 5 / makefile
+ + + b / Src5 . 2 . 5 / makefile
2009-12-09 19:14:23 +00:00
@ @ - 12 , 10 + 12 , 10 @ @
CC = gcc - DNXT # -DNXT enables the X operator in LTL
# CC=cc -m32 -DNXT # for 32bit compilation on a 64bit system
- CFLAGS = - ansi - D_POSIX_SOURCE - Wno - format - security # on some systems add: -I/usr/include
+ #CFLAGS=-ansi -D_POSIX_SOURCE -Wno-format-security # on some systems add: -I/usr/include
- # for a more picky compilation:
- # CFLAGS=-std=c99 -Wstrict-prototypes -pedantic -fno-strength-reduce -fno-builtin -W -Wshadow -Wpointer-arith -Wcast-qual -Winline -Wall -g
+ # for a more picky compilation:
+ CFLAGS = - std = c99 - Wstrict - prototypes - pedantic - fno - strength - reduce - fno - builtin - W - Wshadow - Wpointer - arith - Wcast - qual - Winline - Wall - g - DMAC - DCPP = " \" gcc -E -x c -xassembler-with-cpp \" "
# on PC: add -DPC to CFLAGS above
# on Solaris: add -DSOLARIS