These patches makes html2text work on ppc-macos. The patches shouldn't interfere or have any influence on other platforms. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 67304 [details, diff] html2text-1.3.2.ebuild.patch Enables the patching for 1.3.2a if gcc has version 3.3 and higher OR 4 and higher.
Created attachment 67305 [details, diff] html2text-osx.patch This patch fixes compilation errors.
the -e is purely cosmetic (upstream should have used echo -n IMHO), so I dropped it. Made rest of the patch unconditional, as it seems not to harm x86. Tested it with html2text http://www.gentoo.org/ and html2text http://monetdb.cwi.nl/ : worked fine Marked ~ppc-macos in CVS
This patch broke things in the outer world, please have a look at #105051, we need advice on what you need
I believe the line: epatch ${FILESDIR}/${P}-darwin.patch should be changed to (as I had in my submitted patch): use ppc-macos && epatch ${FILESDIR}/${P}-darwin.patch since this is a patch that only applies to OS X. I'll add a new patch that solves this problem. Should I reopen this bug?
Created attachment 70787 [details, diff] Ebuild patch, patch only for OS X This patch applies to the current 1.3.2 ebuild in portage, and it will only patch for OS X. There shouldn't be any reason to patch for non-OS X.
see other bug for the solution. We don't want conditional patches, they are bad and hard to maintain.