The net-nds/openldap-2.3.24-r1 has: if use minimal && built_with_use net-nds/openldap minimal ; then in pkg_setup(). This seems to check for USE flags of previous installations, however, this fails if openldap was not previously installed. Thank you, Lucas Chiesa
*** This bug has been marked as a duplicate of 143473 ***
.