chafa 1.0.1 (new formula)
Closes #35813. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
parent
51bfe28bf1
commit
e6879e7c2f
1 changed files with 23 additions and 0 deletions
23
Formula/chafa.rb
Normal file
23
Formula/chafa.rb
Normal file
|
@ -0,0 +1,23 @@
|
|||
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"
|
||||
|
||||
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
|
Loading…
Reference in a new issue