2011-03-10 05:11:03 +00:00
|
|
|
class Abnfgen < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Quickly generate random documents that match an ABFN grammar"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "http://www.quut.com/abnfgen/"
|
|
|
|
url "http://www.quut.com/abnfgen/abnfgen-0.16.tar.gz"
|
|
|
|
sha256 "c256712a97415c86e1aa1847e2eac00019ca724d56b8ee921d21b258090d333a"
|
2010-09-19 01:53:15 +00:00
|
|
|
|
2014-12-12 07:58:19 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-11-19 15:45:31 +00:00
|
|
|
sha256 "dbeb98b3292f61f3fcb2dab6ff49c676a71a102deae81c5de2d94c6bd1e2760d" => :yosemite
|
|
|
|
sha256 "a6ee5ffd408c8359664f46817718dc41fb287cb61968659a4e7637a094160025" => :mavericks
|
|
|
|
sha256 "cfd7d1f79d6b8ea5fb333405043e45b7f9b403de59420bcb3dba3770cea444b7" => :mountain_lion
|
2014-12-12 07:58:19 +00:00
|
|
|
end
|
|
|
|
|
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}"
|
2015-08-03 12:55:31 +00:00
|
|
|
system "make", "install"
|
2010-09-19 01:53:15 +00:00
|
|
|
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
|