diff options
| author | Jack Nagel | 2012-07-25 15:04:46 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-08-01 00:31:38 -0500 |
| commit | 148617bc1164c919eda86403ce2df197b913cdde (patch) | |
| tree | cefbb21cf8a59dc6cee5996e9db9d7ec3c8121bd /Library/Homebrew/compat | |
| parent | 1a48dbc967bdfb03c78240637233c9f9553678fc (diff) | |
| download | brew-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/compat')
| -rw-r--r-- | Library/Homebrew/compat/compatibility.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Library/Homebrew/compat/compatibility.rb b/Library/Homebrew/compat/compatibility.rb index e14909496..a06978398 100644 --- a/Library/Homebrew/compat/compatibility.rb +++ b/Library/Homebrew/compat/compatibility.rb @@ -34,7 +34,7 @@ def llvm_build end def x11_installed? - MacOS.x11_installed? + MacOS::XQuartz.installed? end def macports_or_fink_installed? @@ -189,4 +189,12 @@ module MacOS extend self def clt_version? CLT.version end + + def x11_installed? + XQuartz.installed? + end + + def x11_prefix + XQuartz.prefix + end end |
