Current stable version is at 3.4.6, unstable version is at 3.5.1. Reproducible: Always Steps to Reproduce:
Additional: it would be cool if the data directory/examples were world readable.
Working on that
I am done, this is complete rewrite, it fetches the source package directly, it properly compiles the source with ant (I have provided the general ant script created by java-devs), it understand "doc" USE properly and it fixes the data directory
Created attachment 72565 [details] the ebuild please test && commit
Created attachment 72566 [details] general ant script (to files/)
Created attachment 72567 [details] small die-fix fixes one unimportant issue, thnx to axxo
(In reply to comment #4) > Created an attachment (id=72565) [edit] > the ebuild > > please test && commit use doc && java-pkg_dohtml -r doc/* && dodoc *pdf Now if dohtml for some reason fails it will just silently not install the pdf files. VERSION_WEKA=$(replace_all_version_separators '-') Usually ebuilds use MY_PV for example. Thanks for the work so far.
Created attachment 72568 [details] all comments fixed
Created attachment 72569 [details] and next fixes from #gentoo-java
Created attachment 72688 [details] fix for generating javadocs and I masked ALL architectures as recommended on ICQ
skinkie@eshara ~ $ weka Warning, unable to load properties file from system resource (Utils.java) Uncaught error fetching image: java.lang.NullPointerException at sun.awt.image.URLImageSource.getConnection(URLImageSource.java:99) at sun.awt.image.URLImageSource.getDecoder(URLImageSource.java:108) at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:248) at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:172) at sun.awt.image.ImageFetcher.run(ImageFetcher.java:136) In combination with weka-3.4.6. Doesn't work as root too.
Created attachment 73857 [details] Fixed ebuild. Theres no need of build.xml file now! Tested, works well. If the package wont start under root, please check that java is avaiable under root (executing `java -version`).
(In reply to comment #12) > > If the package wont start under root, please check that java is avaiable under > root (executing `java -version`). You can use $(java-config --java) to not have to rely on $PATH to locate java.
(In reply to comment #13) > You can use $(java-config --java) to not have to rely on $PATH to locate java. Stefan can you test it? It works for me. Also here: http://www.ebuildexchange.org/eshow.php?id=10087
The ebuild is starting to look pretty good. These comments are nitpicks and/or stylistic comments * weka is in the SRC_URI. You should use ${PN} instead. * If you're going to use ${PN}-${MY_PV} more than once, you should define this MY_P, and then use it in the SRC_URI and S. * If you're distfile is a zip, you need to DEPEND on app-arch/unzip * Instead of using jar to extract, you might want instead to do: unzip -qq weka-src.jar -d src The q's make the output quit, and -d specifies where the extracted files should go. It'll make src_unpack a little cleaner. * As you don't need a build.xml anymore, you probably don't need to copy it in ${S} anymore * I would put jar up the classes/resources during src_compile, since it is part of the build process. It should also have || die "Failed to create jar" * If you only have one thing to do for an if statement, you can go like: use source && java-pkg_dosrc src/*
Created attachment 74098 [details] Fixes, final version Everything fixed and cleaned.
This morning I compiled the weka without problems.
I just tried building on amd64 with blackdown 1.4, and seem to be getting OutOfMemoryErrors. No idea why...
Added to CVS. Thanks for the contribution! Just a note, I made a few changes before committing: * Added virtual/x11 as an RDEPEND, since it is a GUI application. * Dropped ~sparc ~ia64 keywords because I wasn't able to test those archs, and the previous version lacked those keywords. If they do work on those platforms, please file a separate bug. * Removed mkdir src, since the unzip will make it if it doesn't exist. * Made the wrapper script do an 'exec', so that the shell will get the right return value when weka exits.
Thanks Josh! ps - OutOfMemory error - you need to raise the VM heap stack limit up