nasm 0.98.31 does not emerge. It requires ps2pdf which is provided by Ghostscript.
I added the new nasm, so I'll check this...
OK, I'm committing a new revision that only builds ps etc. docs if USE doc is on, and depends on ghostscript in that case.
*** Bug 2839 has been marked as a duplicate of this bug. ***