bsdmake: better workaround for nil X11 path

Silences an inreplace warning when X11 path exists and the fallback
replacment then fails.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2012-09-06 18:06:55 -05:00
parent 473828a1d1
commit 70dac62f3e

View file

@ -22,7 +22,7 @@ class Bsdmake < Formula
# Replace @PREFIX@ inserted by MacPorts patches
# Use 'prefix' since this is sometimes a keg-only brew
# But first replace the X11 path if X11 is installed
inreplace 'mk/sys.mk', '@PREFIX@', MacOS::X11.prefix if MacOS::X11.installed?
inreplace 'mk/sys.mk', '@PREFIX@', MacOS::X11.prefix || prefix
inreplace %W[mk/bsd.README
mk/bsd.cpu.mk
mk/bsd.doc.mk
@ -30,7 +30,6 @@ class Bsdmake < Formula
mk/bsd.own.mk
mk/bsd.port.mk
mk/bsd.port.subdir.mk
mk/sys.mk
pathnames.h],
'@PREFIX@', prefix