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/'
|
|
|
|
url 'ftp://icarus.com/pub/eda/verilog/v0.9/verilog-0.9.5.tar.gz'
|
2012-07-10 16:36:42 +00:00
|
|
|
sha1 '3a69cb935ab562882a07a52904f3cba74aed2229'
|
|
|
|
|
|
|
|
devel do
|
|
|
|
url 'ftp://ftp.icarus.com/pub/eda/verilog/snapshots/verilog-20120501.tar.gz'
|
|
|
|
sha1 '313ab0f5dc4d198bd4687daaf2e54749c67558b3'
|
|
|
|
end
|
|
|
|
|
|
|
|
# Yes indeed, this software fails to compile out of the box with both
|
|
|
|
# LLVM and Clang.
|
|
|
|
|
|
|
|
fails_with :llvm do
|
|
|
|
build '2336'
|
|
|
|
cause <<-EOS.undent
|
|
|
|
ld: warning: unexpected dylib (/usr/lib/libSystem.dylib) on link line
|
|
|
|
Assertion failed: (_machoSection != 0), function machoSection, file /SourceCache/ld64/ld64-128.2/src/ld/ld.hpp, line 565.
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
|
|
|
fails_with :clang do
|
|
|
|
build '318'
|
|
|
|
cause <<-EOS.undent
|
|
|
|
ld: warning: unexpected dylib (/usr/lib/libSystem.dylib) on link line
|
|
|
|
Assertion failed: (_machoSection != 0), function machoSection, file /SourceCache/ld64/ld64-128.2/src/ld/ld.hpp, line 565.
|
|
|
|
EOS
|
|
|
|
end
|
2010-09-23 13:57:17 +00:00
|
|
|
|
|
|
|
def install
|
2012-02-21 04:28:51 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}"
|
2012-07-10 16:36:42 +00:00
|
|
|
system "make"
|
|
|
|
# Separate steps, as install does not depend on compile properly
|
2010-09-23 13:57:17 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|