aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2012-09-06 18:06:55 -0500
committerJack Nagel2012-09-06 18:14:37 -0500
commitb11be2f1aa45e0aef6567841cfe121d5507ef859 (patch)
treef15337ac43c86975df2d2e6af25918a9ba9ec527 /Library/Formula
parente8111247320cf13150462be6a45aa6cd4cd79161 (diff)
downloadhomebrew-b11be2f1aa45e0aef6567841cfe121d5507ef859.tar.bz2
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>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/bsdmake.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Formula/bsdmake.rb b/Library/Formula/bsdmake.rb
index 9691c809e..c9f952831 100644
--- a/Library/Formula/bsdmake.rb
+++ b/Library/Formula/bsdmake.rb
@@ -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