class Libraqm < Formula bottle do root_url "https://homebrew.hyprnet/bottles" sha256 cellar: :any, arm64_sequoia: "562eae89ec18a9e0fe45e3c3337e029802fe59263acf4fb4da8509c8a6986a43" sha256 cellar: :any, arm64_tahoe: "cc58087be4b56fc11117a57536b22de178c9349003baa4d2d46b1f650468bbbe" sha256 cellar: "/home/linuxbrew/.linuxbrew/Cellar", x86_64_linux: "fd5e6f285625d73d32d5869a0d364479c2251a7a7e53ecdbc477444631cf8603" end desc "Library for complex text layout" homepage "https://github.com/HOST-Oman/libraqm" url "https://github.com/HOST-Oman/libraqm/archive/refs/tags/v0.11.0.tar.gz" sha256 "2ba3521d3f24e9696185a67a16f1a9643429d6c897d89d83dfb2aad3a398732a" license "MIT" compatibility_version 1 depends_on "meson" => :build depends_on "ninja" => :build depends_on "pkgconf" => :build depends_on "freetype" depends_on "fribidi" depends_on "harfbuzz" def install system "meson", "setup", "build", *std_meson_args system "meson", "compile", "-C", "build", "--verbose" system "meson", "install", "-C", "build" end test do (testpath/"test.c").write <<~C #include int main() { return 0; } C system ENV.cc, "test.c", "-I#{include}", "-I#{Formula["freetype"].include/"freetype2"}", "-o", "test" system "./test" end end