with USE="doc": /usr/share/doc/libdbi-drivers: c100.html c39.html f15.html specific.html x40.html c102.html c45.html f23.html x121.html x42.html c118.html c47.html f30.html x123.html x48.html c120.html c92.html index.html x129.html x50.html c126.html c94.html install-build.html x131.html x54.html c128.html copying-fdl.html install.html x195.html x56.html c26.html dbd_pgsql.pdf install-prereq.html x197.html x62.html c34.html dbd_sqlite3.pdf intro.html x203.html x64.html c37.html dbd_sqlite.pdf options.html x205.html /usr/share/doc/libdbi-drivers-0.8.3: AUTHORS.bz2 ChangeLog.bz2 NEWS.bz2 README.bz2 README.osx.bz2 TODO.bz2 adding --docdir and --htmldir to econf fixes this for me: econf $(use_enable doc docs) \ --docdir=/usr/share/doc/${PF} \ --htmldir=/usr/share/doc/${PF}/html \ ${myconf} || die "econf failed"