class Halibut < Formula homepage "http://www.chiark.greenend.org.uk/~sgtatham/halibut/" url "http://www.chiark.greenend.org.uk/~sgtatham/halibut/halibut-1.1.tar.gz" sha256 "b964950d11ed09d3af28ac095da539613f6e50d650f01fe72b4ae752724c80a0" head "git://git.tartarus.org/simon/halibut.git" bottle do cellar :any sha256 "db13c78d65619b0b602a83d9641afdbe4d603492bc33bab263ae2530630578f4" => :yosemite sha256 "eedcff72763e75094aadb2a05115614484a2e46561bb11a0466a98153d5dbcab" => :mavericks sha256 "acf6e1989f0f9f895f36b4076179bc8f30fb37be5537f02a1c2f5b0733b8e7a9" => :mountain_lion end def install bin.mkpath man1.mkpath system "make", "prefix=#{prefix}", "mandir=#{man}", "all" system "make", "-C", "doc", "prefix=#{prefix}", "mandir=#{man}" system "make", "prefix=#{prefix}", "mandir=#{man}", "install" end test do (testpath/"sample.but").write("Hello, world!") system "#{bin}/halibut", "--html=sample.html", "sample.but" assert_match("
\nHello, world!\n<\/p>", (testpath/"sample.html").read) end end