Fix for ticket 18502

This is the pull request to fix the issue:

https://github.com/mxcl/homebrew/issues/18502

Very simple it just incorporates the macports patch.