diff options
| author | Jack Nagel | 2012-07-25 15:04:46 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-08-01 00:31:38 -0500 |
| commit | 68b5fe1ca5a43234fa68a70ec707a77dd6d11cd4 (patch) | |
| tree | a0d9877f9ae9ef49e245a28a668299ced7ed928a /Library/Homebrew/compat | |
| parent | cd77baf2e2f75b4ae141414bf8ff6d5c732e2b9a (diff) | |
| download | homebrew-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/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 |
