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"
|
2017-02-21 12:49:47 +00:00
|
|
|
|
url "https://github.com/theZiz/aha/archive/0.4.10.5.tar.gz"
|
|
|
|
|
sha256 "b2cd7a1a0f7b3a70c37446d7157b4b58e2939535cdd71112a2228b2e78f7e620"
|
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
|
2017-02-21 12:52:33 +00:00
|
|
|
|
sha256 "1e6989b80fac995c3fb41edab81c3578daa96bbd8b264d6d76b2300c8e4bb1c7" => :sierra
|
|
|
|
|
sha256 "7b967f8817cc0e4de348aaa37f67f91a1a652256b0eca0cf349c4a746e669d0b" => :el_capitan
|
|
|
|
|
sha256 "edc535121189e9ba0deb86b0f3828b9478fcf52c7dbdaac7601499b07f9a43e2" => :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
|