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/"
|
2016-03-10 00:54:55 +00:00
|
|
|
url "http://www.quut.com/abnfgen/abnfgen-0.17.tar.gz"
|
|
|
|
sha256 "777a264d91a93bc9cf008d7520abb0470d7280fb38008c5f185cbf2d29640083"
|
2010-09-19 01:53:15 +00:00
|
|
|
|
2014-12-12 07:58:19 +00:00
|
|
|
bottle do
|
2016-02-16 00:23:41 +00:00
|
|
|
cellar :any_skip_relocation
|
2016-03-10 01:15:31 +00:00
|
|
|
sha256 "25aa694b994374b0194f65a01afdf1911ddd366d3195a6ac6451e81f87234768" => :el_capitan
|
|
|
|
sha256 "6020fe82950619f9ddf60265c80c2e8f2f68808618e87150d1634f5ec2c0eff8" => :yosemite
|
|
|
|
sha256 "004aa4f75ee0e51327a69a558cb3920b6859303b1d032e32e3caabe623dc35d4" => :mavericks
|
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
|