Show real path to x11 in --config output
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
		
							parent
							
								
									6f762ea2a8
								
							
						
					
					
						commit
						f74e616724
					
				@ -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}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user