homebrew-core/Formula/abnfgen.rb

26 lines
955 B
Ruby
Raw Normal View History

2011-03-10 05:11:03 +00:00
class Abnfgen < Formula
desc "Quickly generate random documents that match an ABFN grammar"
homepage "http://www.quut.com/abnfgen/"
url "http://www.quut.com/abnfgen/abnfgen-0.17.tar.gz"
sha256 "777a264d91a93bc9cf008d7520abb0470d7280fb38008c5f185cbf2d29640083"
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
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
2013-01-26 22:01:15 +00:00
"--prefix=#{prefix}",
"--mandir=#{man}"
system "make", "install"
end
test do
(testpath/"grammar").write %(ring = 1*12("ding" SP) "dong" CRLF)
system "#{bin}/abnfgen", (testpath/"grammar")
end
end