aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/python3.rb
diff options
context:
space:
mode:
authorSamuel John2013-08-08 14:47:39 +0200
committerSamuel John2013-08-08 14:47:39 +0200
commit4624fa0feb66268ea179393021d888597c214bcb (patch)
treebaa2447089d6be6ec023d5c43eac926c4a5a9c4e /Library/Formula/python3.rb
parent6c5f51a7455f0bc148d9b55d70376e1722805d2b (diff)
downloadhomebrew-4624fa0feb66268ea179393021d888597c214bcb.tar.bz2
python3: --with-brewed-tk needs :x11 if --with-x11
When tcl-tk was installed `--with-x11`, python needs to `depends_on :x11`, otherwise tcl-tk ships an included versions of X11.
Diffstat (limited to 'Library/Formula/python3.rb')
-rw-r--r--Library/Formula/python3.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Formula/python3.rb b/Library/Formula/python3.rb
index b8e526531..cde69dad5 100644
--- a/Library/Formula/python3.rb
+++ b/Library/Formula/python3.rb
@@ -35,6 +35,7 @@ class Python3 < Formula
depends_on 'openssl' if build.with? 'brewed-openssl'
depends_on 'xz' => :recommended # for the lzma module added in 3.3
depends_on 'homebrew/dupes/tcl-tk' if build.with? 'brewed-tk'
+ depends_on :x11 if build.with? 'brewed-tk' and Tab.for_name('tcl-tk').used_options.include?('with-x11')
def patches
DATA if build.with? 'brewed-tk'