UFRaw 0.17 has lots of automagic dependencies. An in-tree patch fixes the cfitsio dependency, but nothing else. The current ufraw-0.17.ebuild also has incorrect dependencies for lcms, exiv2 and gtkimageview. It also misses dependencies for glib (checked with pkg-config) and perl (required for pod2man). The gconf schema installation does not work (see bug 295083 for details). MANIFEST is missing from dodoc. The mime type registration is not required with shared-mime-info >= 0.21 (only versions which satisfy the dependency are in portage). metadata.xml also needs an update.
Attaching new automagics patch and diffs to in-tree ebuild that fix all the above problems, tested on amd64 and x86 (keywording only lensfun and ufraw).
Created attachment 226359 [details, diff]
remove automagic dependencies
Created attachment 226361 [details, diff]
Created attachment 226363 [details, diff]
Created attachment 226671 [details, diff]
fix metadata patch
Add missing </flag> to metadata patch.
Created attachment 241919 [details, diff]
correct automagic patch
The old automagic patch did not use defines to mark found libraries, fixed in this version.
Created attachment 341044 [details, diff]
no 0.19 automagics
Updated patch for 0.19, only briefly tested.
Did you try submitting your patch upstream?