To have as-needed functional the linking order has to be Linker LDFALGS -o BIN OBJ LIBS but multitail does $(CC) -Wall -W $(OBJS) $(LDFLAGS) -o multitail where LDFLAGS include both the LDFLAGS and the LIBS.
Created attachment 196403 [details, diff] Makefile.patch
Created attachment 196405 [details, diff] multitail-5.2.2.ebuild.diff
Created attachment 203872 [details, diff] another multitail-5.2.2.ebuild.diff I made a small change to your patch in order to get following structure : /usr/share/doc/multitail-5.2.2 |-- Changes.bz2 |-- examples | |-- colors-example.pl.bz2 | |-- colors-example.sh.bz2 | |-- convert-geoip.pl.bz2 | `-- convert-simple.pl.bz2 |-- html | `-- manual.html |-- readme.txt.bz2 `-- thanks.txt.bz2 I swapped html and examples blockcode (otherwise, manual.html would be ins'ed into examples/). Everything else is Nice-And-Clean with USE="debug examples html". (This behavior is weird, as dev-manual specifies : "dohtml Installs HTML document files into /usr/share/doc/${PF}/html" docinto seems to alter expected behavior. ).
> (This behavior is weird, as dev-manual specifies : > "dohtml Installs HTML document files into /usr/share/doc/${PF}/html" > docinto seems to alter expected behavior. > ). zmedico and tanderson clarified it : this is expected, and covered my PMS specs (http://dev.gentoo.org/~tanderson/pms/head/html/pms.html).
I would avoid using -g with debug USE flag; that's something for users to choose.