homebrew-core/Formula/xdpyinfo.rb

39 lines
1.1 KiB
Ruby

class Xdpyinfo < Formula
desc "X.Org: Utility for displaying information about an X server"
homepage "https://www.x.org/"
url "https://www.x.org/archive/individual/app/xdpyinfo-1.3.2.tar.bz2"
sha256 "30238ed915619e06ceb41721e5f747d67320555cc38d459e954839c189ccaf51"
license "MIT"
bottle do
cellar :any
rebuild 1
sha256 "128f9ce7c4fad4a7bdc313c02c7c2324fa311845cc6ccaf9e19cc835bbef83e6" => :big_sur
sha256 "dfb295a0259be51cd1ec75a16bda4582608569ad098a37ad257818616f70b81e" => :catalina
sha256 "2f9c704633a4a7d7df952f4874a16bae0cc8890e6ba1fdf7cd1654bb4cad01c7" => :mojave
end
depends_on "pkg-config" => :build
depends_on "libx11"
depends_on "libxcb"
depends_on "libxext"
depends_on "libxtst"
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("xdpyinfo #{version}", shell_output("DISPLAY= xdpyinfo -version 2>&1"))
end
end