aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2012-02-27 23:43:19 -0600
committerJack Nagel2012-02-27 23:43:56 -0600
commitf74e616724c51001d832bb19f7acdc7f5349d8f6 (patch)
tree5b57d1bfc8cffad13e44280efa69e55360682c56 /Library
parent6f762ea2a8d45b95b222b45cb9f92c8001b8a037 (diff)
downloadbrew-f74e616724c51001d832bb19f7acdc7f5349d8f6.tar.bz2
Show real path to x11 in --config output
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-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}