2010-09-19 01:53:15 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Abnfgen < Formula
|
2010-09-19 01:53:15 +00:00
|
|
|
homepage 'http://www.quut.com/abnfgen/'
|
2013-01-26 22:01:15 +00:00
|
|
|
url 'http://www.quut.com/abnfgen/abnfgen-0.16.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '0ed2d09fc1601bb22bcd452000c2e4fd9b2bff81'
|
2010-09-19 01:53:15 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
2013-01-26 22:01:15 +00:00
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--mandir=#{man}"
|
2010-09-19 01:53:15 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
2014-12-12 07:47:08 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"grammar").write %(ring = 1*12("ding" SP) "dong" CRLF)
|
|
|
|
system "#{bin}/abnfgen", (testpath/"grammar")
|
|
|
|
end
|
2010-09-19 01:53:15 +00:00
|
|
|
end
|