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
commit68b5fe1ca5a43234fa68a70ec707a77dd6d11cd4 (patch)
treea0d9877f9ae9ef49e245a28a668299ced7ed928a /Library/Homebrew/cmd
parentcd77baf2e2f75b4ae141414bf8ff6d5c732e2b9a (diff)
downloadhomebrew-68b5fe1ca5a43234fa68a70ec707a77dd6d11cd4.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.