You're getting this bug because the package in summary installs its documentation (or at least part of it) outside the usual /usr/share/doc/${PF} directory. First, please keep in mind that this bug might not be noticeable for -r0 ebuilds, but it might be for -r1 and later, since if the ebuild has same name and version of the package, for -r0 it might correspond properly. To fix this, if the package uses autotools, recent version (autoconf 2.61+) have two ./configure switches: --docdir and --htmldir to decide where to put the documentation. Older versions might require you override docdir/htmldir or other custom variables during make install. For non-autotooled build systems, good luck, since I cannot tell you how to achieve the proper results, the same holds true with totally broken buildsystems even when based on autotools. Thanks, Diego
Created attachment 227319 [details] squirrel-2.2.4-r1.ebuild Suggested echangelog "Fixes bug 314497 by using the --docdir ./configure option. Support EAPI=3 (prefix reviewd by ABCD). Actually support advertised useflags by expanding autotools patch. Enable removal of static archive and libtool archives on USE=-static-libs." The autotools fix is in the autotools patch I'll attach next.
Created attachment 227321 [details] files/squirrel-2.2.4-autotools.patch Add --disable-example and --disable-doc options
fixed Thank you Nathan for your patches