aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorEd Robinson2012-09-09 01:04:42 +0100
committerAdam Vandenberg2012-09-09 11:05:30 -0700
commit266b63f532c157e340078f33fb655b576ed5ecf3 (patch)
tree4d22ad24c5d58da8d3acfd9f4d1eaa859ae93f03 /Library
parent08a770699b0c1299e263e74b9c522796e9304995 (diff)
downloadhomebrew-266b63f532c157e340078f33fb655b576ed5ecf3.tar.bz2
Ruby: make Tcl/Tk support optional.
Tcl/Tk support requires X11, which is optional on Mountain Lion. Rather than requiring X11 for Ruby, make these components opt-in. Fixes #14770. Closes #14814. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/ruby.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Formula/ruby.rb b/Library/Formula/ruby.rb
index 0962b4202..c2a04d9be 100644
--- a/Library/Formula/ruby.rb
+++ b/Library/Formula/ruby.rb
@@ -12,10 +12,12 @@ class Ruby < Formula
depends_on 'readline'
depends_on 'gdbm'
depends_on 'libyaml'
+ depends_on :x11 if build.include? 'with-tcltk'
option :universal
option 'with-suffix', 'Suffix commands with "19"'
option 'with-doc', 'Install documentation'
+ option 'with-tcltk' 'Install with Tcl/Tk support'
fails_with :llvm do
build 2326
@@ -32,6 +34,7 @@ class Ruby < Formula
args << "--program-suffix=19" if build.include? "with-suffix"
args << "--with-arch=x86_64,i386" if build.universal?
+ args << "--disable-tcltk-framework" << "--with-out-ext=tcl" << "--with-out-ext=tk" unless build.include? "with-tcltk"
# Put gem, site and vendor folders in the HOMEBREW_PREFIX
ruby_lib = HOMEBREW_PREFIX/"lib/ruby"