2011-04-13 17:58:15 +00:00
|
|
|
class Csmith < Formula
|
2015-01-12 09:12:56 +00:00
|
|
|
homepage "http://embed.cs.utah.edu/csmith/"
|
|
|
|
url "http://embed.cs.utah.edu/csmith/csmith-2.2.0.tar.gz"
|
|
|
|
sha1 "3435ce22e645977e03cf6418da076ff3f7a1d4f0"
|
2011-04-13 17:58:15 +00:00
|
|
|
|
2015-01-12 09:27:32 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "148f6ff8f8bfbca55af569fa6db560e6917c6d98" => :yosemite
|
|
|
|
sha1 "98647f884d0e48cf487a47d627c9c66f01aef06e" => :mavericks
|
|
|
|
sha1 "551902d606958f2e504103a648b0fcca6edc5e69" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
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"
|
2015-01-12 09:12:56 +00:00
|
|
|
system "make", "install"
|
|
|
|
mv "#{bin}/compiler_test.in", share
|
|
|
|
(include/"csmith-#{version}/runtime").install Dir["runtime/*.h"]
|
2011-04-13 17:58:15 +00:00
|
|
|
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
|
2015-01-12 09:12:56 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/csmith", "-o", "test.c"
|
|
|
|
end
|
2011-04-13 17:58:15 +00:00
|
|
|
end
|