diff options
| author | Björn B. Brandenburg | 2010-10-12 19:54:20 -0400 |
|---|---|---|
| committer | Adam Vandenberg | 2010-10-12 17:09:38 -0700 |
| commit | 295b88950b40104f2fdb5c4c932eb3e15466d237 (patch) | |
| tree | 1c0e7a8327ac4b6e9e08ccdae917f89eb1e66558 /Library | |
| parent | 0ef24a16dd4253e3bcbd05cf53a190fc8f6a14aa (diff) | |
| download | homebrew-295b88950b40104f2fdb5c4c932eb3e15466d237.tar.bz2 | |
fix installation of mg
The formula for mg currently does not work for non /usr/local prefixes.
This patch fixes two issues:
- the Makefile checks for PREFIX, not prefix; and
- the bin dir must exist, otherwise install renames mg to bin.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/mg.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/Formula/mg.rb b/Library/Formula/mg.rb index 3a1ee3dc6..7c71b5871 100644 --- a/Library/Formula/mg.rb +++ b/Library/Formula/mg.rb @@ -6,7 +6,8 @@ class Mg < Formula md5 '5cdd46b226586306bde2dd5d47920d66' def install - system "make prefix=#{prefix}" - system "make install prefix=#{prefix}" + system "make PREFIX=#{prefix}" + bin.mkpath # otherwise install copies 'mg' to 'bin' + system "make install PREFIX=#{prefix}" end end |
