net-libs/courierauthlib can be compiled without C++, but you lose two tests (one for the bdb module and one for the gdbm module). Since people might want to run those tests I added a `nocxx' use flag which specifically disables them. There are two attached patches: one is against the ebuild and the other modifies the automake files to remove the test targets requiring C++.
Created attachment 125185 [details, diff] Adds nocxx use flag to ebuild
Created attachment 125186 [details, diff] Removes test targets requiring C++ from automake
no* USE flags are strongly discouraged, so adding nocxx is a bad idea.
I'd prefer not to add this to the ebuild. If you want this, please ask upstream to make the tests optional and preferrably automatically disable them when c++ is not available.