When trying to install, cocoon-2.1.11 with the 'doc' USE flag, it fails with the message 'build/webapp/api does not exist, or isn't a directory!'. At first, since the Ant build task died with an OutOfMemory error, I thought perhaps that was the root cause. However, modifying the build process to raise the maximum memory failed to fix the problem (though the documentation now was successfully built). It turns out the ebuild is looking for the documentation in 'build/webapp/api' when it is actually put into 'build/cocoon/javadocs'. I will attach a patch to the ebuild that should address both of these issues.
Created attachment 170355 [details, diff] Proposed patch to fix build errors This patch makes two changes: 1. Changes the XML file used as a template when building the Javadoc documentation to allow Javadoc to use 384m of memory instead of 192m. I had tried 256m, but that was still too small. 2. Change the directory for the dojavadoc command.
Created attachment 170374 [details, diff] Updated patch to fix API installation path Incidentally, the ordering of the various statements in the src_install() function was causing the API documentation to be installed in the 'legal' directory instead of 'html'. I have reordered the statements to avoid this.
(In reply to comment #2) > Created an attachment (id=170374) [edit] > Updated patch to fix API installation path > > Incidentally, the ordering of the various statements in the src_install() > function was causing the API documentation to be installed in the 'legal' > directory instead of 'html'. I have reordered the statements to avoid this. > Thanks. Patch applied. Sorry about the delay.