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

  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']
  end

  def caveats
    <<-EOS.undent
      It is recommended that you set the environment variable 'CSMITH_PATH' to
          #{include}/csmith-#{version}
    EOS
  end
end