Created
April 24, 2014 14:21
-
-
Save NelsonMinar/11256339 to your computer and use it in GitHub Desktop.
mg patch for homebrew
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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