jpgraph-2.3.ebuild installs docs into: /usr/share/doc/${CATEGORY}/${PF} instead of: /usr/share/doc/${PF} replacing: insinto /usr/share/doc/${CATEGORY}/${PF} doins -r docs/* with: dohtml -r docs/* changes this and you automatically get the /usr/share/doc/html/dev-php5/jpgraph symlink.
That's an intended location for all PHP ebuilds and is required due to PHP slotting.
Fair enough. Still no symlink though, how about adding: dodir /usr/share/doc/html/${CATEGORY} dosym /usr/share/doc/${CATEGORY}/${PF} /usr/share/doc/html/${CATEGORY}/${PN}
I really don't get the purpose of these symlinks, TBH.