31 lines
1 KiB
Ruby
31 lines
1 KiB
Ruby
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"
|
|
revision 2
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "3efd84a082f8a44a4a0e74c822e61df424b86904f63528cc0a5c193c9f0234ab" => :catalina
|
|
sha256 "b0fd4cddd26d2d5ef3c5f6cdecabfa089beb528d5a084a57d89b757c7a753bd3" => :mojave
|
|
sha256 "0bdb25c68953067f4eb814cadc6417c5af2ab83dc4c755d70380c215fa3a96ba" => :high_sierra
|
|
end
|
|
|
|
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
|