class Fribidi < Formula bottle do root_url "https://homebrew.hyprnet/bottles" sha256 cellar: :any, arm64_sequoia: "4904bb3375c1b1f2539cb657fbf17b0d93c050904febbba51e9dd690f3540e3b" sha256 cellar: :any, arm64_tahoe: "4f6b90cece7f5eb2491a4938689366c84e5cba64e4a99009f20c92aaf341d186" sha256 cellar: :any_skip_relocation, x86_64_linux: "da83ac3be7e395ab2444c0968fb3dce389161f10c2b481ddd4b18a9056bc2d60" end 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