aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorJack Nagel2012-07-25 15:04:46 -0500
committerJack Nagel2012-08-01 00:31:38 -0500
commit148617bc1164c919eda86403ce2df197b913cdde (patch)
treecefbb21cf8a59dc6cee5996e9db9d7ec3c8121bd /Library/Homebrew/cmd
parent1a48dbc967bdfb03c78240637233c9f9553678fc (diff)
downloadbrew-148617bc1164c919eda86403ce2df197b913cdde.tar.bz2
Move X11 machinery into MacOS::XQuartz namespace
In order to better support Xcode-only systems, where X11 libs and executables live under /usr/X11 but headers live in the SDK, move the x11_* helper methods into a new module. This allows us to keep some of the CLT/Xcode-only and Apple X11/XQuartz logic hidden from outside code, like ENV.x11. Since Apple's X11 is actually XQuartz, name the module "MacOS::XQuartz".
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/--config.rb4
-rw-r--r--Library/Homebrew/cmd/doctor.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/--config.rb b/Library/Homebrew/cmd/--config.rb
index 3b749c5ab..d70af5f99 100644
--- a/Library/Homebrew/cmd/--config.rb
+++ b/Library/Homebrew/cmd/--config.rb
@@ -59,8 +59,8 @@ module Homebrew extend self
end
def describe_x11
- return "N/A" unless MacOS.x11_installed?
- return "#{MacOS.xquartz_version} @ " + describe_path(MacOS.x11_prefix)
+ return "N/A" unless MacOS::XQuartz.installed?
+ return "#{MacOS::XQuartz.version} @ " + describe_path(MacOS::XQuartz.prefix)
end
def describe_perl
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index 922c9ca70..1b723daaf 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -168,7 +168,7 @@ def check_for_stray_las
end
def check_for_x11
- unless MacOS.x11_installed? then <<-EOS.undent
+ unless MacOS::XQuartz.installed? then <<-EOS.undent
X11 is not installed.
You don't have X11 installed as part of your OS X installation.
This is not required for all formulae, but is expected by some.