2 desc "Versatile and fast Unicode/ASCII/ANSI graphics renderer"
3 homepage "https://hpjansson.org/chafa/"
4 url "https://hpjansson.org/chafa/releases/chafa-1.14.5.tar.xz"
5 sha256 "7b5b384d5fb76a641d00af0626ed2115fb255ea371d9bef11f8500286a7b09e5"
6 license "LGPL-3.0-or-later"
9 url "https://hpjansson.org/chafa/releases/?C=M&O=D"
10 regex(/href=.*?chafa[._-]v?(\d+(?:\.\d+)+)\.t/i)
14 sha256 cellar: :any, arm64_sequoia: "ea6049848cb7fd6d0f094877c2a451f3c04abc24fc32c1e6cf9fe4b9dc1381e7"
15 sha256 cellar: :any, arm64_sonoma: "718bad199de13187fdff368cb98f7163162bf76d57c0a6ba1cb2c151ec98a4df"
16 sha256 cellar: :any, arm64_ventura: "5af1c494a1b7daceb2e8d10cc895fe6e59fa3f10fbd493150cdc24cee1ee1150"
17 sha256 cellar: :any, sonoma: "e83b7e5f17bcb3b0698797f5b50f952a5ca09cf9f0489bb4842ae21d0d066b12"
18 sha256 cellar: :any, ventura: "b36b0aa9e21626083a0e6e86d33e3a96f935f7c47640292f202823b3c8fc402b"
19 sha256 cellar: :any_skip_relocation, x86_64_linux: "7bc49d8207b352f3adf9b570363b0a40986addfc14deedab6181c55594e6d18a"
22 depends_on "pkgconf" => :build
26 depends_on "jpeg-turbo"
34 depends_on "gdk-pixbuf"
39 system "./configure", "--disable-silent-rules", *std_configure_args
40 system "make", "install"
41 man1.install "docs/chafa.1"
45 output = shell_output("#{bin}/chafa #{test_fixtures("test.png")}")
46 assert_equal 3, output.lines.count
47 output = shell_output("#{bin}/chafa --version")
48 assert_match(/Loaders:.* AVIF.* JPEG.* JXL.* SVG.* TIFF.* WebP/, output)