Mldonkey-3.1.2 has compile errors due to their changes in arguments
to the cpp command and because Apple sed and gnu-sed do not have
a `-o` option. The formula also has a failing inreplace.
Fix the failing inreplace by changing `-O6` to `-O3`.
Add a patch that uses the suggested change to `$(CPP)` from the
report on their website (url is in the formula comments).
Add a patch that changes `sed -o` to `sed >`.
Note in the comments the bug reports and how the patches are
not upstream as of 13 JUN 2012. According to the Homebrew issue
listed below, the user reports these patches work well.
FixesHomebrew/homebrew#12774ClosesHomebrew/homebrew#12825.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>