Since the folder in /usr/share/doc is created using ${PF}, if the ebuild contains a revision number, the location given during the postinst phase is wrong. A simple patch that fixes the issue is attached
Created attachment 220049 [details, diff] patch proposal
Thanks for the patch. It is fixed.