aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/mg.rb
diff options
context:
space:
mode:
authorMisty De Meo2014-04-23 23:07:21 -0700
committerMisty De Meo2014-04-23 23:07:21 -0700
commit248f3d5f73cb3ddee70b47d0465e81cce56aeafc (patch)
tree6b9510e049fb20360494cc28c1997b68c79e2a4c /Library/Formula/mg.rb
parentcf06ec220dfa77974a3127ca2ee4643f9f3d911b (diff)
downloadhomebrew-248f3d5f73cb3ddee70b47d0465e81cce56aeafc.tar.bz2
mg: fix clens include path for nonstandard prefix
Fixes #28641.
Diffstat (limited to 'Library/Formula/mg.rb')
-rw-r--r--Library/Formula/mg.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Formula/mg.rb b/Library/Formula/mg.rb
index 43881f4b2..6f522c66e 100644
--- a/Library/Formula/mg.rb
+++ b/Library/Formula/mg.rb
@@ -8,6 +8,11 @@ class Mg < Formula
depends_on 'clens'
def install
+ # 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
+
system "make"
bin.install "mg"
doc.install "tutorial"