2010-05-21 16:31:42 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Stp < Formula
|
2010-08-15 14:35:04 +00:00
|
|
|
head 'http://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp', :revision => '986'
|
2010-05-21 16:31:42 +00:00
|
|
|
homepage 'http://sites.google.com/site/stpfastprover/'
|
|
|
|
|
|
|
|
def options
|
2010-04-07 05:58:35 +00:00
|
|
|
[["--32-bit", "Force 32-bit."]]
|
2010-05-21 16:31:42 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
unless ARGV.include? "--32-bit"
|
|
|
|
inreplace "./scripts/Makefile.common" do |s|
|
2010-04-07 05:58:35 +00:00
|
|
|
s.remove_make_var! "CFLAGS_M32"
|
2010-05-21 16:31:42 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
system "./clean-install.sh", "--with-prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|