Skip to content

Commit

Permalink
Merge pull request #179966 from Homebrew/xdpyinfo-linkage
Browse files Browse the repository at this point in the history
xdpyinfo: declare indirect deps with linkage
  • Loading branch information
BrewTestBot authored Aug 4, 2024
2 parents 978e493 + aca9b39 commit 0db3e9f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Formula/x/xdpyinfo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,28 +18,27 @@ class Xdpyinfo < Formula
end

depends_on "pkg-config" => :build

depends_on "libx11"
depends_on "libxcb"
depends_on "libxext"
depends_on "libxi"
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 "./configure", *args, *std_configure_args.reject { |s| s["--disable-debug"] }
system "make", "install"
end

test do
# xdpyinfo: unable to open display "".
return if OS.linux? && ENV["HOMEBREW_GITHUB_ACTIONS"]

assert_match("xdpyinfo #{version}", shell_output("DISPLAY= xdpyinfo -version 2>&1"))
assert_match("xdpyinfo #{version}", shell_output("DISPLAY= xdpyinfo -version"))
end
end

0 comments on commit 0db3e9f

Please sign in to comment.