Please find attached an ebuild for commons-math 1.0, a member of Apache's Jakarta project. This is a very useful library which to quote the Apache website "... is a library of lightweight, self-contained mathematics and statistics components addressing the most common practical problems not immediately available in the Java programming language." This ebuild depends on dev-java/commons-discovery and dev-java/commons-logging. I would suggest placing this ebuild in dev-java/commons-math. Justin Clark
Created attachment 56927 [details] Ebuild for commons-math-1.0
Attached below is a fixed version of the ebuild (i'm new to ebuilds). I've modified the dependencies and the header.
Created attachment 57001 [details] Updated ebuild for commons-math 1.0
Created attachment 59626 [details] commons-math-1.0.ebuild Looks good for the most part, but I have a few changes. * src_compile and src_install start out in ${S}, so this should be defined as the source directory, which in this case is ${WORKDIR}/${P}. This is the default value, so it doesn't need to be defined explicitly. * added dev-java/ant-tasks as a dependency to junit?, so that junit tests will always run if junit is present in the use flags * changed src_install to use newjar. This is a new function which is similar to dojar, except it will install a jar to a particular filename.
This is currently living in SVN here: https://svn.gentooexperimental.org/svn/java/gentoo-java-experimental/dev-java/commons-math
Current url: https://overlays.gentoo.org/svn/proj/java/java-overlay/dev-java/commons-math
*commons-math-2.0 (02 Oct 2009) *commons-math-1.2 (02 Oct 2009) 02 Oct 2009; Andrey Kislyuk <weaver@gentoo.org> +metadata.xml, +commons-math-1.2.ebuild, +commons-math-2.0.ebuild: Import from Java overlay and rewrite