class Fribidi < Formula desc "Implementation of the Unicode BiDi algorithm" homepage "https://github.com/fribidi/fribidi" url "https://github.com/fribidi/fribidi/releases/download/v1.0.16/fribidi-1.0.16.tar.xz" sha256 "1b1cde5b235d40479e91be2f0e88a309e3214c8ab470ec8a2744d82a5a9ea05c" license all_of: ["GPL-2.0-or-later", "LGPL-2.1-or-later"] def install system "./configure", "--disable-debug", "--disable-dependency-tracking", "--disable-silent-rules", "--prefix=#{prefix}", "--enable-static" system "make", "install" end test do (testpath/"test.input").write <<~EOS a _lsimple _RteST_o th_oat EOS assert_match "a simple TSet that", shell_output("#{bin}/fribidi --charset=CapRTL --test test.input") end end