2010-09-23 13:57:17 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class IcarusVerilog < Formula
|
2012-02-21 04:28:51 +00:00
|
|
|
homepage 'http://iverilog.icarus.com/'
|
2013-09-30 08:25:10 +00:00
|
|
|
url 'ftp://icarus.com/pub/eda/verilog/v0.9/verilog-0.9.7.tar.gz'
|
|
|
|
sha1 '714c2a605779957490cca24e3dc01d096dbc1474'
|
|
|
|
|
2013-10-02 21:29:17 +00:00
|
|
|
head do
|
|
|
|
url 'https://github.com/steveicarus/iverilog.git'
|
2013-09-30 08:25:10 +00:00
|
|
|
depends_on 'autoconf' => :build
|
|
|
|
end
|
2012-07-10 16:36:42 +00:00
|
|
|
|
2010-09-23 13:57:17 +00:00
|
|
|
def install
|
2014-04-22 03:39:56 +00:00
|
|
|
system "autoconf" if build.head?
|
2012-02-21 04:28:51 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}"
|
2012-07-10 16:36:42 +00:00
|
|
|
# Separate steps, as install does not depend on compile properly
|
2012-08-12 16:33:24 +00:00
|
|
|
system 'make'
|
|
|
|
system 'make installdirs'
|
|
|
|
system 'make install'
|
2010-09-23 13:57:17 +00:00
|
|
|
end
|
|
|
|
end
|