1 class Xwininfo < Formula
2 desc "Print information about windows on an X server"
3 homepage "https://gitlab.freedesktop.org/xorg/app/xwininfo"
4 url "https://www.x.org/archive/individual/app/xwininfo-1.1.6.tar.xz"
5 sha256 "3518897c17448df9ba99ad6d9bb1ca0f17bc0ed7c0fd61281b34ceed29a9253f"
9 sha256 cellar: :any, arm64_sequoia: "de81136f2da87e8553dbabd1ef911279447842a5d9a03cdf9b05830ed464fca0"
10 sha256 cellar: :any, arm64_sonoma: "c990cacb2c672ffeef97ce1e9e6bf07a62de68b31e0c844a374c6ea4330caddc"
11 sha256 cellar: :any, arm64_ventura: "16c77dd94be1ff317276e082156a1e9d28456e832c30aa41c0320ea320d51e85"
12 sha256 cellar: :any, sonoma: "1d472ba18ecda4f5179eb264dd065876d1db5671c7b400302394e2014e70105a"
13 sha256 cellar: :any, ventura: "5573df075228169227184182f804a0991056d0e517c5cba11916554b1bf44f1b"
14 sha256 cellar: :any_skip_relocation, x86_64_linux: "0eec07b0f162130654bb10cfa0911bd34c3e7f32a92b35454a1ffbf70a41c0d1"
17 depends_on "pkgconf" => :build
22 system "./configure", "--disable-silent-rules", *std_configure_args
23 system "make", "install"
27 output = shell_output("#{bin}/xwininfo -display :100 2>&1", 1)
28 assert_match "xwininfo: error: unable to open display", output