Skip to content

Commit

Permalink
libxcb: use Python requirement only on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
carlocab committed Jan 27, 2021
1 parent f45b9c1 commit 92538d9
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Formula/libxcb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,20 @@ class Libxcb < Formula
end

depends_on "pkg-config" => :build
# Use existing Python 3, to avoid a cyclic dependency on Linux:
# python3 -> tcl-tk -> libx11 -> libxcb -> python3
depends_on Python3Requirement => :build
depends_on "xcb-proto" => :build
depends_on "libpthread-stubs"
depends_on "libxau"
depends_on "libxdmcp"

on_macos do
depends_on "python@3.9" => :build
end
on_linux do
# Use an existing Python 3, to avoid a cyclic dependency on Linux:
# python3 -> tcl-tk -> libx11 -> libxcb -> python3
depends_on Python3Requirement => :build
end

def install
args = %W[
--prefix=#{prefix}
Expand Down

0 comments on commit 92538d9

Please sign in to comment.