2011-04-13 17:58:15 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Csmith < Formula
|
|
|
|
homepage 'http://embed.cs.utah.edu/csmith/'
|
2012-02-13 06:10:16 +00:00
|
|
|
url 'http://embed.cs.utah.edu/csmith/csmith-2.1.0.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '2c3c1f5f5e4283af4c835c48dbdaf9431623c45c'
|
2011-04-13 17:58:15 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
2012-02-13 06:10:16 +00:00
|
|
|
system "make"
|
|
|
|
ENV.j1 # 2.1.0 fails install without this
|
2011-04-13 17:58:15 +00:00
|
|
|
system "make install"
|
|
|
|
runtime = include+"csmith-#{version}/runtime"
|
|
|
|
runtime.install Dir['runtime/*.h']
|
|
|
|
end
|
|
|
|
|
2012-11-25 19:42:57 +00:00
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
It is recommended that you set the environment variable 'CSMITH_PATH' to
|
|
|
|
#{include}/csmith-#{version}
|
2011-04-13 17:58:15 +00:00
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|