The ebuild patches configure.ac to add an AS_IF test around the AM_PATH_CPPUNIT macro and later deletes the AM_PATH_CPPUNIT line completely unless the test useflag is set. This results in an if statement without a body causing configure to fail. A possible workaround for this is to add something like /bin/true together with the AS_IF inside the patch. Next Problem is that AT_M4DIR=m4 is only set for use=test which results in a missing define of RELEASE_DATE in config.h, moving the export statement out of the if statement so that it is always exported before running eautoreconf fixes this
Thank you for the bug report, these issues have both been fixed in the tree.