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-20 04:36:32 +00:00
|
|
|
|
url "https://github.com/theZiz/aha/archive/0.4.10.3.tar.gz"
|
|
|
|
|
sha256 "135e18a6bd4568fc9e58a02dbd8b18a31a8bf598bdeaf24795d7d2492c4ad5be"
|
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-20 04:41:45 +00:00
|
|
|
|
sha256 "56cfd33659adb98e630ead8d9cff6b3345a7f0a0da484a0921827ff1dcacf9c2" => :sierra
|
|
|
|
|
sha256 "f553081042955aa96a1fa42fcd7572a17357a0986a8f8a9dfb1799fec0f489c1" => :el_capitan
|
|
|
|
|
sha256 "efb7f763bae069d24fdc77942c06cc2267f7b3775b2e6cdf2863ba230dd8350a" => :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
|