aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/--config.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/--config.rb b/Library/Homebrew/cmd/--config.rb
index 9b6fec110..98b943b19 100644
--- a/Library/Homebrew/cmd/--config.rb
+++ b/Library/Homebrew/cmd/--config.rb
@@ -36,6 +36,14 @@ module Homebrew extend self
if sha.empty? then "(none)" else sha end
end
+ def describe_x11
+ return "N/A" unless x11_installed?
+ return case x11_path = Pathname.new("/usr/x11").realpath.to_s
+ when "/usr/x11" then "/usr/x11"
+ else "/usr/x11 => #{x11_path}"
+ end
+ end
+
def describe_perl
perl = `which perl`.chomp
return "N/A" if perl.empty?
@@ -82,7 +90,7 @@ module Homebrew extend self
LLVM: #{llvm ? "build #{llvm}" : "N/A"}
Clang: #{clang ? "#{clang} build #{clang_build}" : "N/A"}
MacPorts or Fink? #{macports_or_fink_installed?}
- X11 installed? #{x11_installed?}
+ X11: #{describe_x11}
System Ruby: #{RUBY_VERSION}-#{RUBY_PATCHLEVEL}
/usr/bin/ruby => #{real_path("/usr/bin/ruby")}
Which Perl: #{describe_perl}