homebrew-core/Formula/aha.rb

28 lines
1,012 B
Ruby
Raw Normal View History

class Aha < Formula
desc "ANSI HTML adapter"
homepage "https://github.com/theZiz/aha"
url "https://github.com/theZiz/aha/archive/0.4.8.tar.gz"
sha256 "a1ebbbd5ebc37ccca74dc5f894e3066157e9e77fcdf158bf5587215b8968049c"
head "https://github.com/theZiz/aha.git"
2014-11-03 01:05:41 +00:00
bottle do
2016-02-23 11:31:58 +00:00
cellar :any_skip_relocation
sha256 "8eece3bfabca1cb0e2f10edab863510595185ee93a96cca84ec30b99a76ff094" => :el_capitan
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
def install
# install manpages under share/man/
inreplace "Makefile", "$(PREFIX)/man", "$(PREFIX)/share/man"
system "make", "install", "PREFIX=#{prefix}"
end
test do
2014-05-04 19:12:41 +00:00
out = pipe_output(bin/"aha", "rainpill")
assert_match(/color:purple;">rain.*color:blue;">pill/, out)
end
end