class XcbUtil < Formula desc "Additional extensions to the XCB library" homepage "https://xcb.freedesktop.org" url "https://xcb.freedesktop.org/dist/xcb-util-0.4.1.tar.xz" sha256 "5abe3bbbd8e54f0fa3ec945291b7e8fa8cfd3cccc43718f8758430f94126e512" license "MIT" bottle do sha256 cellar: :any, arm64_ventura: "9ccd3441ee24d90d2f4d8d62cf74d6d8bb0879b60d7b56b325b72ae0854459ee" sha256 cellar: :any, arm64_monterey: "215d383f16158649c221e28f4c4d3c1ceac50c38ec36acad63dcb95a8ae76373" sha256 cellar: :any, arm64_big_sur: "8052d4df2e15613046722b788d9e4665a9886974e9fc4cc20a6c740ff8e2d08f" sha256 cellar: :any, ventura: "d075d423178430bc500bf16be08e20b20a06ae6a24ba581cd105a3b078af6d18" sha256 cellar: :any, monterey: "57035a7c42a40246ea3d5ac12906e2832a4ea0aded7000b977a9d6b581e8b5b0" sha256 cellar: :any, big_sur: "f42650c534ec07d5c17e612ae9f738c46ddf9fba07623eacbf28865a93eb65df" sha256 cellar: :any_skip_relocation, x86_64_linux: "2808f955e6ac8cb3d1262e4a01b589c5148b125eec6c57a6ccf02902cf01b182" end depends_on "pkg-config" => [:build, :test] depends_on "libxcb" def install args = %W[ --prefix=#{prefix} --sysconfdir=#{etc} --localstatedir=#{var} --disable-dependency-tracking --disable-silent-rules ] system "./configure", *args system "make" system "make", "install" end test do assert_match "-I#{include}", shell_output("pkg-config --cflags xcb-util").chomp end end