diff options
| author | Michael Dippery | 2011-04-13 13:58:15 -0400 |
|---|---|---|
| committer | Adam Vandenberg | 2011-04-14 09:32:00 -0700 |
| commit | fec0ee1886c54b0302c0de105ca5b118adb2be30 (patch) | |
| tree | b110a6b594b37ad0e29578efec268bb4bd3664df /Library | |
| parent | 130484798d4206b553ac837e49fe04d6b922371f (diff) | |
| download | homebrew-fec0ee1886c54b0302c0de105ca5b118adb2be30.tar.bz2 | |
csmith 2.0.0
Csmith is a tool that can generate random C programs that statically and
dynamically conform to the C99 standard. Thus, it is useful for stress-testing
compilers, static analyzers, and other tools that process C code.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/csmith.rb | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Library/Formula/csmith.rb b/Library/Formula/csmith.rb new file mode 100644 index 000000000..7d0a95255 --- /dev/null +++ b/Library/Formula/csmith.rb @@ -0,0 +1,23 @@ +require 'formula' + +class Csmith < Formula + url 'http://embed.cs.utah.edu/csmith/csmith-2.0.0.tar.gz' + homepage 'http://embed.cs.utah.edu/csmith/' + md5 'ab0bee5da4d1c2b55c32789b716846cb' + + def install + system "./configure", "--disable-dependency-tracking", + "--prefix=#{prefix}" + system "make install" + runtime = include+"csmith-#{version}/runtime" + runtime.mkdir + runtime.install Dir['runtime/*.h'] + end + + def caveats + <<-EOS.undent + It is recommended that you set the environment variable 'CSMITH_PATH' to + #{include}/csmith-#{version} + EOS + end +end |
