aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMark L. Chang2010-09-14 21:12:46 -0400
committerAdam Vandenberg2010-09-15 10:35:11 -0700
commit2ac53e72977d6a4e554781b8fe8a6de0f758bad0 (patch)
tree8aab0ce5030da2d5a2902a00176a840da931ef07 /Library
parentacbeb82adaa407fd08a30bdda0a9a5fb10510495 (diff)
downloadhomebrew-2ac53e72977d6a4e554781b8fe8a6de0f758bad0.tar.bz2
new formla: gplcver
gplcver is a Verilog simulator Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/gplcver.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/Library/Formula/gplcver.rb b/Library/Formula/gplcver.rb
new file mode 100644
index 000000000..6bada7c87
--- /dev/null
+++ b/Library/Formula/gplcver.rb
@@ -0,0 +1,17 @@
+require 'formula'
+
+class Gplcver <Formula
+ url 'http://sourceforge.net/projects/gplcver/files/gplcver/2.12a/gplcver-2.12a.src.tar.bz2'
+ homepage 'http://gplcver.sourceforge.net/'
+ md5 '857a15a9ebc8ef63ece01502509cbeb7'
+
+ def install
+ inreplace 'src/makefile.osx' do |s|
+ s.gsub! '-mcpu=powerpc', ''
+ s.change_make_var! 'CFLAGS', "$(INCS) $(OPTFLGS) #{ENV.cflags}"
+ end
+
+ system "cd src ; make -f makefile.osx ; cd .."
+ bin.install 'bin/cver'
+ end
+end