afaik the -doc should stop documentation from being installed however it would appear that it's not being done in the dodoc command and rather the ebuild maintainers must do a use doc && dodoc ... can this be changed so that portage checks if the user wants documentation to be installed in the dodoc command? Reproducible: Always Steps to Reproduce: 1. 2. 3.
adding if [ "${USE}" != "${USE%-doc%}" ] ; then around the content seems to work great :)
AFAIK the doc use flag should only be used when there is _extra_ documentation that can be installed (i.e. HTML docs). Basic docs (README, TODO, ChangeLog, etc.) should always be installed.
doc is for documentation ABOVE AND BEYOND the normal amount what you want is FEATURES=nodoc, see `man make.conf`
I consider man pages to be documentation.. and anything else to be extra (README, TODO, ChangeLog, etc.)
it really doesnt matter what you think USE=doc should mean, we're not going to change