This is an ebuild for jflex version 1.4.1 I've tested with sucess with jdk 1.4 and 1.5. there's a litle bash script wich replaces the original because it's more simple. Any improvements are welcome!
Created attachment 73622 [details] the ebuild
Created attachment 73623 [details] jflex launcher
Created attachment 88564 [details, diff] now installs into /usr/share/jflex and not /usr/share/jflex- I think setting SLOT removes the dash. Sorry if I'm totally off the ball here, but this is the first time I've tried editing an ebuild.
Created attachment 88565 [details] suggested script using java-config It seems that using java-config would be a safer way to do this, but would this add a runtime dependency that's not already handled?
Created attachment 105026 [details] Updated ebuild file I rewrote this ebuild using the newer standards, as well as providing an option to add to the vim syntax files. I am willing to help maintain this package.
Created attachment 111734 [details] jflex-1.4.1.ebuild A modified ebuild, changes: + fetching deps during fetch, not compile + source use flag will install sources + java-ant-2 will rewrite the build.xml and set ant dep for us Notable problems are reliance on 2 binary distributed jars to build: 1) JFlex.jar - This is a bootstrapping issue that *could* be fixed by splitting the build.xml into 2 files. The first would build the jar and not depend on it. 2) java_cup.jar - This is a problem b/c the version includes a cup ant task not included in the portage version of javacup. A newer version could be added to portage, but to build it there appears to be a dep on jflex - so we have a nasty circular dep.
Created attachment 119890 [details] Updated ebuild This is a working ebuild that will install JFlex. It uses a special JFlex library to bootstrap, and depend on javacup-0.11a_beta20060608.
Created attachment 119892 [details, diff] This patch is needed to build JFlex 1.4.1
Created attachment 119995 [details] Better ebuild (builds with JAVA_PKG_STRICT)
Closing as added to cvs.