aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/verilator.rb
blob: 35b33abcf7eb27e5422fe6df1f35c587ba8455f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require 'formula'

class Verilator < Formula
  homepage 'http://www.veripool.org/wiki/verilator'
  url 'http://www.veripool.org/ftp/verilator-3.855.tgz'
  sha1 '2c37c48cdcb10674b5c9583a0d2b4f241dbb6dc4'

  skip_clean 'bin' # Allows perl scripts to keep their executable flag

  # Needs a newer flex on Lion (and presumably below)
  # http://www.veripool.org/issues/720-Verilator-verilator-not-building-on-Mac-OS-X-Lion-10-7-
  depends_on "flex" if MacOS.version <= :lion

  def install
    system "./configure", "--prefix=#{prefix}"
    system "make"
    system "make install"
  end
end