diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/csmith.rb | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/Library/Formula/csmith.rb b/Library/Formula/csmith.rb index d2f29fd96..ffa033ccf 100644 --- a/Library/Formula/csmith.rb +++ b/Library/Formula/csmith.rb @@ -1,18 +1,15 @@ -require 'formula' - class Csmith < Formula - homepage 'http://embed.cs.utah.edu/csmith/' - url 'http://embed.cs.utah.edu/csmith/csmith-2.1.0.tar.gz' - sha1 '2c3c1f5f5e4283af4c835c48dbdaf9431623c45c' + homepage "http://embed.cs.utah.edu/csmith/" + url "http://embed.cs.utah.edu/csmith/csmith-2.2.0.tar.gz" + sha1 "3435ce22e645977e03cf6418da076ff3f7a1d4f0" def install system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}" system "make" - ENV.j1 # 2.1.0 fails install without this - system "make install" - runtime = include+"csmith-#{version}/runtime" - runtime.install Dir['runtime/*.h'] + system "make", "install" + mv "#{bin}/compiler_test.in", share + (include/"csmith-#{version}/runtime").install Dir["runtime/*.h"] end def caveats; <<-EOS.undent @@ -20,4 +17,8 @@ class Csmith < Formula #{include}/csmith-#{version} EOS end + + test do + system "#{bin}/csmith", "-o", "test.c" + end end |
