Skip to content

Instantly share code, notes, and snippets.

@NelsonMinar
Created April 24, 2014 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NelsonMinar/11256339 to your computer and use it in GitHub Desktop.
Save NelsonMinar/11256339 to your computer and use it in GitHub Desktop.
mg patch for homebrew
diff --git a/Library/Formula/mg.rb b/Library/Formula/mg.rb
index 6f522c6..8e9ec35 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
+ inreplace 'Makefile', '/usr/local', HOMEBREW_PREFIX
+ inreplace 'GNUmakefile', '/usr/local', HOMEBREW_PREFIX
system "make"
bin.install "mg"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment