Attached are a new python-2.6.4 patch for IRIX and modifications to the python-2.6.4 ebuild needed to incorporate this and build the built-in ffi correctly.
Created attachment 209411 [details, diff] Patch for python-2.6.4.ebuild to allow compilation on IRIX A few small changes here - don't require virtual/libffi and keep Python ffi on IRIX, and correct readline patch (which, since IRIX system library directory is /usr/lib32 rather than /usr/lib, won't apply as supplied).
Created attachment 209412 [details, diff] IRIX Python patch updated for 2.6.4
Oh, and Python still needs the patch to flag-o-matic.eclass from Bug 254120, otherwise 'append-flags -L.' is rejected, because trying to compile /dev/null to /dev/null isn't accepted by the platform compiler, surprisingly enough...
irix libffi restored, irix patch updated, readline patch fixed and applied before libdir expansion