class Aha < Formula desc "ANSI HTML adapter" homepage "https://github.com/theZiz/aha" url "https://github.com/theZiz/aha/archive/0.4.8.tar.gz" sha256 "a1ebbbd5ebc37ccca74dc5f894e3066157e9e77fcdf158bf5587215b8968049c" head "https://github.com/theZiz/aha.git" bottle do cellar :any_skip_relocation sha256 "8eece3bfabca1cb0e2f10edab863510595185ee93a96cca84ec30b99a76ff094" => :el_capitan sha256 "f780f9cb0af36a42b38791bca79cef0cf1d24d9ba833fbb0e56f0a82edb21997" => :yosemite sha256 "42d625a5da619d93696d84ac01cd40c752bf56e0f72c71d2e500339691b1637f" => :mavericks sha256 "a64ce01547378269c54d0baeb39ec787e88bc9c161040586763f534a78bef5f6" => :mountain_lion end def install # install manpages under share/man/ inreplace "Makefile", "$(PREFIX)/man", "$(PREFIX)/share/man" system "make", "install", "PREFIX=#{prefix}" end test do out = pipe_output(bin/"aha", "rainpill") assert_match(/color:purple;">rain.*color:blue;">pill/, out) end end