Found the problem. In the pkg_setup() section of the ebuild, the
if ! built_with_use
statements should use fully qualified package names. ex. net-nds/openldap rather than just openldap.
I tried to upload the fixed ebuild as an attachment to this post, but it gave me an error message about not being able to access the attachment path.
Jason