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-07-14 13:47:19 +00:00
|
|
|
|
url "https://github.com/theZiz/aha/archive/0.4.9.tar.gz"
|
|
|
|
|
sha256 "9aefb7d7838e2061672813482d062ac4c32c932f7f8f0928766ba0152fec3d77"
|
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-07-14 15:49:33 +00:00
|
|
|
|
sha256 "9f72f7009a073e6aa06ff9ea24535ab0e3230142b7d76a55c7dee633e9d2ddbf" => :el_capitan
|
|
|
|
|
sha256 "88c6950fd5667f3f4df808dd77aa85aa8af353594ab051c50345a31bf33340ca" => :yosemite
|
|
|
|
|
sha256 "07a3cdeb8869ec4aecef71b83ccca863e626a05cf3ed9cb614acb1a007c1a365" => :mavericks
|
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
|