From 3fd8ca933d7c30ec01b6a2c2642c10df9f2220a5 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Tue, 29 Jun 2010 10:21:40 -0700 Subject: brew doctor - X11 check Tweak wording in X11 check and use the same X11 detection function as ENV.x11; also move that function into utils. --- Library/Homebrew/utils.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library/Homebrew/utils.rb') diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index a34e108de..52b85bd19 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -276,4 +276,8 @@ def dump_build_env env value = env[k] puts "#{k}: #{value}" if value end +end + +def x11_installed? + Pathname.new('/usr/X11/lib/libpng.dylib').exist? end \ No newline at end of file -- cgit v1.2.3