-
-
Save mrb/5835604 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class IcarusVerilog < Formula | |
homepage 'http://iverilog.icarus.com/' | |
url 'http://hivelocity.dl.sourceforge.net/project/iverilog/iverilog/0.9.6/verilog-0.9.6.tar.gz' | |
sha1 'd81f586b801a2d897ba8c35971d660b960220ed4' | |
head 'https://github.com/steveicarus/iverilog.git' | |
if build.head? | |
depends_on :autoconf | |
end | |
def install | |
system "sh ./autoconf.sh" if build.head? | |
# Fixes an assertion when XCode-4.4 tries to link with clang or llvm-gcc. | |
ENV['LD'] = MacOS.locate("ld") | |
system "./configure", "--prefix=#{prefix}" | |
# Separate steps, as install does not depend on compile properly | |
system 'make' | |
system 'make installdirs' | |
system 'make install' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment