diff options
| author | Baptiste Fontaine | 2015-01-12 10:12:56 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2015-01-12 13:33:45 +0000 |
| commit | dd27dbc48f0e084f32cb4ac6e9fa7afee8e1cacc (patch) | |
| tree | fad7c20d167fe99b1f2e1ffcb763e249fbf27cce /Library/Formula | |
| parent | 80414ea7fec5a7c66b1fff7b35d6634e5c254a8b (diff) | |
| download | homebrew-dd27dbc48f0e084f32cb4ac6e9fa7afee8e1cacc.tar.bz2 | |
csmith 2.2.0
Closes #35771.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
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 |
