The build of JFlex needs to be bootstrapped with a pre-built version of JFlex. The previous method of handling this in the port didn't actually work, unfortunately, since I had a previous install of JFlex when I tested it I didn't notice. The patch below should remedy this situation.
Responsible Changed From-To: freebsd-ports-bugs->hq I'll handle this.
State Changed From-To: open->feedback Looks like junit.jar is still needed: [javac] /tmp/jflex/work/jflex-1.4.1/src/JFlex/tests/AllTests.java:23: package junit.framework does not exist [javac] import junit.framework.Test; [javac] ^
D'Oh! Mental note: always unset CLASSPATH before testing Java patches. :-) My apologies. The following patch should work: diff -ruN jflex.orig/Makefile jflex/Makefile --- jflex.orig/Makefile Mon Aug 14 13:59:15 2006 +++ jflex/Makefile Mon Aug 14 14:00:12 2006 @@ -24,13 +24,18 @@ USE_ANT= yes BUILD_WRKSRC= ${WRKSRC}/src ALL_TARGET= jar -MAKE_ENV+= CLASSPATH="${DISTDIR}/JFlex.jar:${DISTDIR}/java_cup.jar:${JAVALIBDIR}/junit.jar" +MAKE_ENV+= CLASSPATH="${JAVALIBDIR}/junit.jar" .if !defined(NOPORTDOCS) PORTDOCS= * .endif SUB_FILES= jflex.sh + +post-extract: + ${MKDIR} ${WRKSRC}/tools + ${CP} ${DISTDIR}/JFlex.jar ${WRKSRC}/tools/ + ${CP} ${DISTDIR}/java_cup.jar ${WRKSRC}/tools/ do-install: ${INSTALL_SCRIPT} ${WRKDIR}/jflex.sh ${PREFIX}/bin/jflex
State Changed From-To: feedback->open Feedback received: new patch submitted.
State Changed From-To: open->closed Patch commited. Thanks for your contribution!