bsdmake: only fix X11 prefix if X11 is installed

Fixes Homebrew/homebrew#14014.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2012-08-07 00:08:15 -05:00
parent fc4f5f4339
commit a92674251b

View file

@ -32,7 +32,7 @@ class Bsdmake < Formula
'@PREFIX@', prefix
# X11 path shouldn't be munged
inreplace 'mk/sys.mk', '@PREFIX@', MacOS::X11.prefix
inreplace 'mk/sys.mk', '@PREFIX@', MacOS::X11.prefix if MacOS::X11.installed?
inreplace 'mk/bsd.own.mk' do |s|
s.gsub! '@INSTALL_USER@', `id -un`.chomp