The attached patch applied over the current ebuild, with the other file put in ${FILESDIR} cleans up some problems with app-test/djvu ebuild. At the moment the ebuild mark libjpeg dependency as mandatory, but it can be disable at ./configure, with also tiff dependency. It also misses some flags like threads, debug, pic and nls. The ebuild also adds a nsplugin useflag which enable/disable the build of the plugin for netscape-compatible browsers (I haven't called it mozilla as it could be used also by opera and konqueror, calling it mozilla it's an error imho). And to close, the other file is used to bypass the autocheck for kde/gnome data directories, hardsetting the ones used by Gentoo (/usr/share/applications for desktop file, and mime-data which is used by gnome and other environment), with a kde flag to enable/disable the installation of mimelnk, needed until KDE4 doesn't show up. This make djvu not install files in KDE's prefix (as it shouldn't) and removes the icon in /usr/share/pixmaps which is not needed. HTH, Diego
Created attachment 52125 [details, diff] Patch over current ebuild.
Created attachment 52126 [details] Gentoo specific acdesktop.m4
Thanks for the patch. Added as dvju-3.5.14-r1.ebuild.