As per summary, vanilla gjdoc fails when cp is not GNU cp as it uses cp -u that's not supported on *BSD cp. The attached patch (on this and that bug) checks for rsync presence and use that if cp does not support -u.
Created attachment 103504 [details, diff] gjdoc-0.7.7-gcp.patch
Your patch broke it for me on x86 (works without it): config.status: creating gjdoc.sh config.status: creating src/resources/version.properties config.status: creating Makefile config.status: creating docs/Makefile config.status: executing depfiles commands cd . && /bin/sh /var/tmp/portage/dev-java/gjdoc-0.7.7-r1/work/gjdoc-0.7.7/missing --run aclocal-1.9 /usr/share/aclocal/pth.m4:43: warning: underquoted definition of _AC_PTH_ERROR run info '(automake)Extending aclocal' or see http://sources.redhat.com/automake/automake.html#Extending-aclocal /usr/share/aclocal/pth.m4:55: warning: underquoted definition of _AC_PTH_VERBOSE /usr/share/aclocal/pth.m4:61: warning: underquoted definition of AC_CHECK_PTH /usr/share/aclocal/libxosd.m4:9: warning: underquoted definition of AM_PATH_LIBXOSD /usr/share/aclocal/ao.m4:9: warning: underquoted definition of XIPH_PATH_AO cd . && /bin/sh /var/tmp/portage/dev-java/gjdoc-0.7.7-r1/work/gjdoc-0.7.7/missing --run autoconf cd . && /bin/sh /var/tmp/portage/dev-java/gjdoc-0.7.7-r1/work/gjdoc-0.7.7/missing --run automake-1.9 --gnu configure.ac:40: error: possibly undefined macro: AC_PROG_JAR If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure.ac:41: error: possibly undefined macro: AC_CHECK_CLASSPATH configure.ac:42: error: possibly undefined macro: AC_PROG_JAVA configure.ac:43: error: possibly undefined macro: AC_PROG_JAVAC configure.ac:44: error: possibly undefined macro: AC_PROG_ANTLR configure.ac:75: error: possibly undefined macro: AC_CHECK_RQRD_CLASS make: *** [configure] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: dev-java/gjdoc-0.7.7-r1 failed. Call stack: ebuild.sh, line 1570: Called dyn_compile ebuild.sh, line 939: Called src_compile gjdoc-0.7.7-r1.ebuild, line 53: Called die !!! emake failed And I didn't see the cp -u check during configure.
I didn't attach the ebuild patch, it needs eautoreconf with AT_M4DIR, just a second.
Created attachment 103622 [details, diff] Ebuild patch
Fixed in CVS, thanks :) Next time please attach the ebuild.patch too, autostuff isn't really my cup of... java :)