homebrew-core/Formula/aha.rb

25 lines
829 B
Ruby
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

class Aha < Formula
desc "ANSI HTML adapter"
homepage "https://github.com/theZiz/aha"
url "https://github.com/theZiz/aha/archive/0.5.1.tar.gz"
sha256 "6aea13487f6b5c3e453a447a67345f8095282f5acd97344466816b05ebd0b3b1"
license "LGPL-2.1"
head "https://github.com/theZiz/aha.git"
bottle do
cellar :any_skip_relocation
sha256 "bcd5f7ea0e30795e05719351823769f9a7ac434e57bf09cb738eeef50c0f0f85" => :catalina
sha256 "b8def8fe2809928ffbf3ae5746f1157bacfef12e720d0eef798b4d77902d8f4f" => :mojave
sha256 "9de609b23501a93b6fc39422bc51f4b79c31eba3c39272a06f2710aa7e2d6a3f" => :high_sierra
end
def install
system "make", "install", "PREFIX=#{prefix}"
end
test do
out = pipe_output(bin/"aha", "rainpill")
assert_match(/color:purple;">rain.*color:blue;">pill/, out)
end
end