Updating ebuild to use generation 2 java tool chain.
Created attachment 93813 [details] jgroups-2.2.7-r2.ebuild Adding ebuild.
Created attachment 93814 [details] jgroups-2.2.7-r2.diff
Created attachment 93815 [details] files/jgroups-2.2.7-build.patch
Created attachment 93816 [details] jgroups-2.2.7-r2.diff
This ebuild has been tested against sun-jdk-{1.4,1.5} and {jikes,ecj-3.1}.
Could you please explain what the patch is doing and what its purpose is?
No problem, this patch splits out the compilation of classfiles needed for unit testing into three new targets: compile-test compile-test-1.4 compile-test-1.5 from the targets: compile compile-1.4 compile-1.5 respectively. This is done to remove the compile time dependency on the library junit.jar, both because its good to minimize the number of required libraries, and because of the lack of a java-pkg_jar-from equivalent that does not add a the jar to the DEPEND line in package.env.
That is a good practice in general. You should try to submit the patch upstream.
I've submitted this patch to the JGroups project. http://jira.jboss.com/jira/secure/ManageAttachments.jspa?id=12328309
For now jgroups-2.2.7-r2 is migrated, but without the patch.