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"
|
2015-01-26 23:32:22 +00:00
|
|
|
|
url "https://github.com/theZiz/aha/archive/0.4.8.tar.gz"
|
2015-06-14 07:01:42 +00:00
|
|
|
|
sha256 "a1ebbbd5ebc37ccca74dc5f894e3066157e9e77fcdf158bf5587215b8968049c"
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
cellar :any
|
2015-11-19 15:45:31 +00:00
|
|
|
|
sha256 "f780f9cb0af36a42b38791bca79cef0cf1d24d9ba833fbb0e56f0a82edb21997" => :yosemite
|
|
|
|
|
sha256 "42d625a5da619d93696d84ac01cd40c752bf56e0f72c71d2e500339691b1637f" => :mavericks
|
|
|
|
|
sha256 "a64ce01547378269c54d0baeb39ec787e88bc9c161040586763f534a78bef5f6" => :mountain_lion
|
2014-11-03 01:05:41 +00:00
|
|
|
|
end
|
|
|
|
|
|
2014-02-22 18:13:26 +00:00
|
|
|
|
def install
|
2015-06-14 07:01:42 +00:00
|
|
|
|
# install manpages under share/man/
|
|
|
|
|
inreplace "Makefile", "$(PREFIX)/man", "$(PREFIX)/share/man"
|
|
|
|
|
system "make", "install", "PREFIX=#{prefix}"
|
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
|