blob: 1367ad9cf1bf395a9dc3fee992506cccfa342b0a (
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
25
26
27
|
require 'formula'
class IcarusVerilog < Formula
homepage 'http://iverilog.icarus.com/'
head 'git://github.com/steveicarus/iverilog.git'
url 'ftp://icarus.com/pub/eda/verilog/v0.9/verilog-0.9.7.tar.gz'
sha1 '714c2a605779957490cca24e3dc01d096dbc1474'
if build.head?
depends_on 'autoconf' => :build
end
def install
# Fixes an assertion when XCode-4.4 tries to link with clang or llvm-gcc.
ENV['LD'] = MacOS.locate("ld")
# Generate configure for head build
if build.head?
system "autoconf"
end
# Configure
system "./configure", "--prefix=#{prefix}"
# Separate steps, as install does not depend on compile properly
system 'make'
system 'make installdirs'
system 'make install'
end
end
|