aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/csmith.rb
blob: 7d0a952559f8c0ba8740fcc1b3c0dc8d79964d52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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