JaxMe 2 is an open source implementation of JAXB, the specification for Java/XML binding. update for jaxme-0.3.1-r2: - dependency to antlr added - changes of Jaxme's build system
Created attachment 93217 [details] new ebuild, based on jaxme-0.3.1-r2.ebuild
Created attachment 93218 [details, diff] fix bug in the build system reported upstream as https://issues.apache.org/jira/browse/JAXME-81 and already incorporated
You left the build*.xml rewriting from old version, while in this version the xml files are under ant/ so I suppose this would result in 1.5 bytecode jars with 1.5 jdk.
Created attachment 93223 [details] ebuild, based on jaxme-0.3.1-r2.ebuild fixed build rewriting, see comment #3 from Caster fixed names of installed jar files (no version number)
I tried to install it so I could get rid of all jvms but jdk-1.6 (old jaxme needs <=1.6), I had to add java flag to antlr and I still get these errors: JS.compile: [javac] Compiling 169 source files to /var/tmp/paludis/dev-java-jaxme-0.5.1/work/ws-jaxme-0.5.1/build/js/classes [javac] /var/tmp/paludis/dev-java-jaxme-0.5.1/work/ws-jaxme-0.5.1/src/js/org/apache/ws/jaxme/js/pattern/Ant.java:48: package org.apache.tools.ant does not exist [javac] import org.apache.tools.ant.AntClassLoader; [javac] ^ any ideas how to fix it?
Created attachment 187326 [details] updated ebuild Updated ebuild: * Bumped to 0.5.2 * Using EAPI=2 to depend on antlr[java] * Removed hsqldb patch as it's applied upstream * Added patch to fix marshaller's code, not sure if/why it's needed but it works, probably needs some review * Fixed SRC_URI * Used workaround from 0.3.1-r4 to use proper ant.jar Tested all packages in portage which depend on jaxme - dom4j, jsr173 and xsd2jibx and they all compile. The original ebuild was based on 0.3.1-r2 and some changes were made since then, I'm not sure if they're needed (for example, I could not get it to build without hsqldb), please tell me if I'm wrong :)
Created attachment 187327 [details, diff] patch to make un/marshaller's abstract
Created attachment 187336 [details] updated ebuild after review. Changes, which include result of review by Betelgeuse: * Use JAVA_PKG_IUSE * Use SLOT dep on java packages * Remove ant-core dependency * Use java_prepare instead of src_unpack * Use EANT_* for compile * Add || die for dodoc * Use java-pkg_dojavadoc for javadoc
Created attachment 187341 [details] updated ebuild after review. Messed up the jre/jdk deps and forgot to SLOT dep on hsqldb. Third time's the charm? :p
* The ebuild is attempting to use ant-core, without specifying --build-only, that * is not declared in RDEPEND or DEPEND. * The package will build without problems, but may fail to run * if you don't have ant-core installed, so please report * this to http://bugs.gentoo.org
Committed to gentoo-x86, hit mirrors in ~1hour various changes to ebuild to clean it up a bit. Thanks for your work.