The attached ebuild adds support for USE="doc" to the chktex ebuild.
Created attachment 102034 [details] ebuild for chktex with USE="doc" support
*** Bug 155309 has been marked as a duplicate of this bug. ***
Err, shouldn't this has $(use_enable doc) or whatever similar? The flag is not much useful as it is, unless I've missed something.
Yes, it misses a "make html", but all it does is recreate a version of the doc that is already bundled in the html dir (diff only shows very minor changes). Anyway, I just commited 1.6.3-r1 with the requested change. @Gioele: in the future, please provide a diff of the existing ebuilds, it's far easier for us to check. Thanks.