2014-02-22 18:13:26 +00:00
|
|
|
|
class Aha < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
|
desc "ANSI HTML adapter"
|
2014-02-22 18:13:26 +00:00
|
|
|
|
homepage "https://github.com/theZiz/aha"
|
2016-11-15 19:06:49 +00:00
|
|
|
|
url "https://github.com/theZiz/aha/archive/0.4.10.2.tar.gz"
|
|
|
|
|
sha256 "11dcadd98da52fa0ede774162f2172e41cc75ff62b0354d7d98d08478897f417"
|
2015-06-14 07:01:42 +00:00
|
|
|
|
head "https://github.com/theZiz/aha.git"
|
2014-02-22 18:13:26 +00:00
|
|
|
|
|
2014-11-03 01:05:41 +00:00
|
|
|
|
bottle do
|
2016-02-23 11:31:58 +00:00
|
|
|
|
cellar :any_skip_relocation
|
2016-11-15 21:46:49 +00:00
|
|
|
|
sha256 "d5cada08a5d44ec9b8117c630093c6c0fcd9af9d6f00e18e90f49737ff2becdf" => :sierra
|
|
|
|
|
sha256 "284105b95fdba331bcedf225809c3d8d37d595c16bcdac2723453a0657699030" => :el_capitan
|
|
|
|
|
sha256 "dfad261666c610f17e852d93538e7c561abdc5db6eb6bda3c3f078f8b6a09553" => :yosemite
|
2014-11-03 01:05:41 +00:00
|
|
|
|
end
|
|
|
|
|
|
2014-02-22 18:13:26 +00:00
|
|
|
|
def install
|
2016-07-14 13:47:19 +00:00
|
|
|
|
system "make", "install", "PREFIX=#{prefix}", "MANDIR=#{man}"
|
2014-02-22 18:13:26 +00:00
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
test do
|
2014-05-04 19:12:41 +00:00
|
|
|
|
out = pipe_output(bin/"aha", "[35mrain[34mpill[00m")
|
2015-06-14 07:01:42 +00:00
|
|
|
|
assert_match(/color:purple;">rain.*color:blue;">pill/, out)
|
2014-02-22 18:13:26 +00:00
|
|
|
|
end
|
|
|
|
|
end
|