25 lines
955 B
Ruby
25 lines
955 B
Ruby
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.16.tar.gz"
|
|
sha256 "c256712a97415c86e1aa1847e2eac00019ca724d56b8ee921d21b258090d333a"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "270beb4ef879e95db6fb923779cc33952bc669df60a1ecb35060c987ec5a5b06" => :el_capitan
|
|
sha256 "abf32ccd9622fbcde577f80b7202ff2c75cb59475db560861dfd59bcdd867ed4" => :yosemite
|
|
sha256 "d056030b0bdd266ab43fdbe91bd898af763f5be1a04170cd8db900134c50c7da" => :mavericks
|
|
end
|
|
|
|
def install
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
"--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
|