2019-01-08 21:31:12 +00:00
|
|
|
class Chafa < Formula
|
|
|
|
desc "Versatile and fast Unicode/ASCII/ANSI graphics renderer"
|
|
|
|
homepage "https://hpjansson.org/chafa/"
|
|
|
|
url "https://hpjansson.org/chafa/releases/chafa-1.0.1.tar.xz"
|
|
|
|
sha256 "49d491a566a22daf56c51c043259f1373a1b1125d5c1c1fe321f7c25ca178e01"
|
2019-05-10 07:12:14 +00:00
|
|
|
revision 1
|
2019-01-08 21:31:12 +00:00
|
|
|
|
2019-01-11 10:01:15 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2019-06-18 00:21:32 +00:00
|
|
|
sha256 "aaa7a1a6515a936e426de959cd5e12912f8ad8a4c496faa4f66e4a91ed8d3e20" => :mojave
|
|
|
|
sha256 "0de874867a7fbb31bec2270bbb66ce09388287350a5ba047642ae0dfbfcd3b2e" => :high_sierra
|
|
|
|
sha256 "b03b539cfcce1e802639c4ba5770ea63eaeff7bb8724b2eede19ba1edeb814c6" => :sierra
|
2019-01-11 10:01:15 +00:00
|
|
|
end
|
|
|
|
|
2019-01-08 21:31:12 +00:00
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "glib"
|
|
|
|
depends_on "imagemagick"
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--disable-silent-rules",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
output = shell_output("#{bin}/chafa #{test_fixtures("test.png")}")
|
|
|
|
assert_equal 4, output.lines.count
|
|
|
|
end
|
|
|
|
end
|