aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorNelson Minar2014-04-24 07:30:49 -0700
committerMisty De Meo2014-04-24 08:30:00 -0700
commitdd3aff73c84279a8ad864570c24e7cda6ea71beb (patch)
treea0993a52e785ffef282f9a3f79e7de5942cdda38 /Library/Formula
parent2d0c339b8da337217062ed4d6bc4ffe844edccca (diff)
downloadhomebrew-dd3aff73c84279a8ad864570c24e7cda6ea71beb.tar.bz2
mg fix clens include path in GNUmakefile
mg includes both a GNUmakefile and a Makefile; the former is being picked up first. Closes #28670. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mg.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Formula/mg.rb b/Library/Formula/mg.rb
index 6f522c66e..5e8e74942 100644
--- a/Library/Formula/mg.rb
+++ b/Library/Formula/mg.rb
@@ -11,7 +11,8 @@ class Mg < Formula
# makefile hardcodes include path to clens; since it's a
# nonstandard path, Homebrew's standard include paths won't
# fix this for people with nonstandard prefixes.
- inreplace 'Makefile', '/usr/local', prefix
+ # Note mg also has a Makefile; but MacOS make uses GNUmakefile
+ inreplace "GNUmakefile", "$(includedir)/clens", "#{Formula['clens'].opt_include}/clens"
system "make"
bin.install "mg"