aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/macos
diff options
context:
space:
mode:
authorJack Nagel2012-08-06 00:33:36 -0500
committerJack Nagel2012-08-06 00:39:06 -0500
commit7488b9844bc8cee2144767ff7939895b6a83de37 (patch)
tree0de7badd42143f418d3dd76aa993dd7354ba9d98 /Library/Homebrew/macos
parent3ea35f335128ebc2663f03f5da84a2c470660f1b (diff)
downloadbrew-7488b9844bc8cee2144767ff7939895b6a83de37.tar.bz2
Adjust XQuartz/X11 module naming scheme
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew/macos')
-rw-r--r--Library/Homebrew/macos/xquartz.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/Library/Homebrew/macos/xquartz.rb b/Library/Homebrew/macos/xquartz.rb
index d00c55680..cc7207d63 100644
--- a/Library/Homebrew/macos/xquartz.rb
+++ b/Library/Homebrew/macos/xquartz.rb
@@ -26,6 +26,16 @@ module MacOS::XQuartz extend self
def installed?
not prefix.nil?
end
+end
+
+module MacOS::X11 extend self
+ def prefix
+ MacOS::XQuartz.prefix
+ end
+
+ def installed?
+ MacOS::XQuartz.installed?
+ end
# If XQuartz and/or the CLT are installed, headers will be found under
# /opt/X11/include or /usr/X11/include. For Xcode-only systems, they are