Index: head/textproc/javacc/Makefile =================================================================== --- head/textproc/javacc/Makefile (revision 162342) +++ head/textproc/javacc/Makefile (revision 162343) @@ -1,43 +1,46 @@ # Ports collection makefile for: JavaCC # Date Created: 6 May 2002 # Whom: Andy Gerweck # # $FreeBSD$ # PORTNAME= javacc -PORTVERSION= 3.2 -PORTREVISION= 1 +PORTVERSION= 4.0 CATEGORIES= textproc java devel -MASTER_SITES= https://javacc.dev.java.net/files/documents/17/685/ +MASTER_SITES= https://javacc.dev.java.net/files/documents/17/26783/ +DISTNAME= ${PORTNAME}-${PORTVERSION}src -MAINTAINER= ports@FreeBSD.org -COMMENT= Compiler compiler for Java; includes tools for building syntax trees +MAINTAINER= rainer.alves@gmail.com +COMMENT= Java parser generator and lexical analyzer FETCH_DEPENDS= ${LOCALBASE}/bin/wget:${PORTSDIR}/ftp/wget USE_JAVA= yes -FETCH_CMD= ${LOCALBASE}/bin/wget -NO_BUILD= yes +USE_ANT= yes DISABLE_SIZE= yes -#DOWNLOAD_URL?= https://javacc.dev.java.net/servlets/ProjectDocumentList?folderID=212 +FETCH_CMD= ${LOCALBASE}/bin/wget +FETCH_BEFORE_ARGS= --no-check-certificate +WRKSRC= ${WRKDIR}/${PORTNAME} -do-configure: - for f in "${WRKSRC}/bin/j*"; do \ +.include + +post-patch: + @for f in "${WRKSRC}/bin/j*"; do \ ${REINPLACE_CMD} -e 's:`dirname \$$0`/lib:${JAVAJARDIR}:' $$f; \ done do-install: - ${MKDIR} ${JAVAJARDIR} + @${MKDIR} ${JAVAJARDIR} ${INSTALL_DATA} ${WRKSRC}/bin/lib/javacc.jar ${JAVAJARDIR} - cd ${WRKSRC}/bin/ && ${INSTALL_SCRIPT} javacc jjdoc jjtree ${PREFIX}/bin/ + (cd ${WRKSRC}/bin/ && ${INSTALL_SCRIPT} javacc jjdoc jjtree ${PREFIX}/bin/) .if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR} + @${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/www/doc/*.html ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR} - ${MKDIR} ${EXAMPLESDIR} - cd ${WRKSRC}/examples && ${FIND} . \ - | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR} + @${MKDIR} ${EXAMPLESDIR} + (cd ${WRKSRC}/examples && ${FIND} . \ + | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}) .endif -.include +.include Property changes on: head/textproc/javacc/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.11 \ No newline at end of property +1.12 \ No newline at end of property Index: head/textproc/javacc/distinfo =================================================================== --- head/textproc/javacc/distinfo (revision 162342) +++ head/textproc/javacc/distinfo (revision 162343) @@ -1,3 +1,3 @@ -MD5 (javacc-3.2.tar.gz) = 88829881cd1a6ccc0ab308e48a1ccbaf -SHA256 (javacc-3.2.tar.gz) = 0a3f2e236774f2ad97fb07e412459282121f4d20f083645c1ff96b8a90d457f4 -SIZE (javacc-3.2.tar.gz) = 509819 +MD5 (javacc-4.0src.tar.gz) = bf91835dc1bb4821f4b26fd552b43c8d +SHA256 (javacc-4.0src.tar.gz) = 062a35b89cf1bb4260627c32f480d26e17bf4595024e4b4e472a46fe1b24655f +SIZE (javacc-4.0src.tar.gz) = 765150 Property changes on: head/textproc/javacc/distinfo ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.5 \ No newline at end of property +1.6 \ No newline at end of property Index: head/textproc/javacc/pkg-descr =================================================================== --- head/textproc/javacc/pkg-descr (revision 162342) +++ head/textproc/javacc/pkg-descr (revision 162343) @@ -1,12 +1,9 @@ -JavaCC is a compiler compiler for Java. It is similar to lex/yacc. -Your output is a set of Java classes that can parse data defined -by your grammar. +Java Compiler Compiler (JavaCC) is a parser generator for use with +Java applications. A parser generator is a tool that reads a grammar +specification and converts it to a Java program that can recognize +matches to the grammar. In addition to the parser generator itself, +JavaCC provides other standard capabilities related to parser +generation, such as tree building (via a tool called JJTree included +with JavaCC), actions, debugging, and more. -This includes JJTree, a preprocessor that greatly simplifies the -construction of abstract syntax trees. Also included is JJDoc, a -tool that can generate documentation for your grammar. - -WWW: https://javacc.dev.java.net/ - -- Andy Gerweck -gerweck@yahoo.com +WWW: http://javacc.dev.java.net Property changes on: head/textproc/javacc/pkg-descr ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.2 \ No newline at end of property +1.3 \ No newline at end of property Index: head/textproc/javacc/pkg-plist =================================================================== --- head/textproc/javacc/pkg-plist (revision 162342) +++ head/textproc/javacc/pkg-plist (revision 162343) @@ -1,162 +1,170 @@ bin/javacc bin/jjdoc bin/jjtree %%PORTDOCS%%%%DOCSDIR%%/CharStream.html %%PORTDOCS%%%%DOCSDIR%%/JJDoc.html %%PORTDOCS%%%%DOCSDIR%%/JJTree.html %%PORTDOCS%%%%DOCSDIR%%/LICENSE %%PORTDOCS%%%%DOCSDIR%%/apiroutines.html %%PORTDOCS%%%%DOCSDIR%%/commandline.html %%PORTDOCS%%%%DOCSDIR%%/docindex.html %%PORTDOCS%%%%DOCSDIR%%/errorrecovery.html %%PORTDOCS%%%%DOCSDIR%%/features.html -%%PORTDOCS%%%%DOCSDIR%%/getstarted.html %%PORTDOCS%%%%DOCSDIR%%/index.html %%PORTDOCS%%%%DOCSDIR%%/installhelp.html %%PORTDOCS%%%%DOCSDIR%%/javaccgrm.html %%PORTDOCS%%%%DOCSDIR%%/javaccreleasenotes.html %%PORTDOCS%%%%DOCSDIR%%/jjdocreleasenotes.html %%PORTDOCS%%%%DOCSDIR%%/jjtreeREADME.html %%PORTDOCS%%%%DOCSDIR%%/jjtreeintro.html %%PORTDOCS%%%%DOCSDIR%%/jjtreereleasenotes.html %%PORTDOCS%%%%DOCSDIR%%/lexertips.html %%PORTDOCS%%%%DOCSDIR%%/lookahead.html %%PORTDOCS%%%%DOCSDIR%%/mailinglist.html %%PORTDOCS%%%%DOCSDIR%%/simpleREADME.html %%PORTDOCS%%%%DOCSDIR%%/support.html %%PORTDOCS%%%%DOCSDIR%%/tokenmanager.html %%PORTDOCS%%%%EXAMPLESDIR%%/CORBA-IDL/IDL.jj %%PORTDOCS%%%%EXAMPLESDIR%%/CORBA-IDL/README %%PORTDOCS%%%%EXAMPLESDIR%%/GUIParsing/ParserVersion/CalcGUI.java %%PORTDOCS%%%%EXAMPLESDIR%%/GUIParsing/ParserVersion/CalcInput.jj %%PORTDOCS%%%%EXAMPLESDIR%%/GUIParsing/ParserVersion/Main.java %%PORTDOCS%%%%EXAMPLESDIR%%/GUIParsing/ParserVersion/ProducerConsumer.java %%PORTDOCS%%%%EXAMPLESDIR%%/GUIParsing/ParserVersion/README %%PORTDOCS%%%%EXAMPLESDIR%%/GUIParsing/ParserVersion/TokenCollector.java %%PORTDOCS%%%%EXAMPLESDIR%%/GUIParsing/README %%PORTDOCS%%%%EXAMPLESDIR%%/GUIParsing/TokenMgrVersion/CalcGUI.java %%PORTDOCS%%%%EXAMPLESDIR%%/GUIParsing/TokenMgrVersion/CalcInput.jj %%PORTDOCS%%%%EXAMPLESDIR%%/GUIParsing/TokenMgrVersion/CharCollector.java %%PORTDOCS%%%%EXAMPLESDIR%%/GUIParsing/TokenMgrVersion/Main.java %%PORTDOCS%%%%EXAMPLESDIR%%/GUIParsing/TokenMgrVersion/MyLexer.java %%PORTDOCS%%%%EXAMPLESDIR%%/GUIParsing/TokenMgrVersion/README %%PORTDOCS%%%%EXAMPLESDIR%%/Interpreter/ASTAddNode.java %%PORTDOCS%%%%EXAMPLESDIR%%/Interpreter/ASTAndNode.java %%PORTDOCS%%%%EXAMPLESDIR%%/Interpreter/ASTAssignment.java %%PORTDOCS%%%%EXAMPLESDIR%%/Interpreter/ASTBitwiseAndNode.java %%PORTDOCS%%%%EXAMPLESDIR%%/Interpreter/ASTBitwiseComplNode.java %%PORTDOCS%%%%EXAMPLESDIR%%/Interpreter/ASTBitwiseOrNode.java %%PORTDOCS%%%%EXAMPLESDIR%%/Interpreter/ASTBitwiseXorNode.java %%PORTDOCS%%%%EXAMPLESDIR%%/Interpreter/ASTBlock.java %%PORTDOCS%%%%EXAMPLESDIR%%/Interpreter/ASTCompilationUnit.java %%PORTDOCS%%%%EXAMPLESDIR%%/Interpreter/ASTDivNode.java %%PORTDOCS%%%%EXAMPLESDIR%%/Interpreter/ASTEQNode.java %%PORTDOCS%%%%EXAMPLESDIR%%/Interpreter/ASTFalseNode.java %%PORTDOCS%%%%EXAMPLESDIR%%/Interpreter/ASTGENode.java %%PORTDOCS%%%%EXAMPLESDIR%%/Interpreter/ASTGTNode.java %%PORTDOCS%%%%EXAMPLESDIR%%/Interpreter/ASTId.java %%PORTDOCS%%%%EXAMPLESDIR%%/Interpreter/ASTIfStatement.java %%PORTDOCS%%%%EXAMPLESDIR%%/Interpreter/ASTIntConstNode.java %%PORTDOCS%%%%EXAMPLESDIR%%/Interpreter/ASTLENode.java %%PORTDOCS%%%%EXAMPLESDIR%%/Interpreter/ASTLTNode.java %%PORTDOCS%%%%EXAMPLESDIR%%/Interpreter/ASTModNode.java %%PORTDOCS%%%%EXAMPLESDIR%%/Interpreter/ASTMulNode.java %%PORTDOCS%%%%EXAMPLESDIR%%/Interpreter/ASTNENode.java %%PORTDOCS%%%%EXAMPLESDIR%%/Interpreter/ASTNotNode.java %%PORTDOCS%%%%EXAMPLESDIR%%/Interpreter/ASTOrNode.java %%PORTDOCS%%%%EXAMPLESDIR%%/Interpreter/ASTReadStatement.java %%PORTDOCS%%%%EXAMPLESDIR%%/Interpreter/ASTStatementExpression.java %%PORTDOCS%%%%EXAMPLESDIR%%/Interpreter/ASTSubtractNode.java %%PORTDOCS%%%%EXAMPLESDIR%%/Interpreter/ASTTrueNode.java %%PORTDOCS%%%%EXAMPLESDIR%%/Interpreter/ASTVarDeclaration.java %%PORTDOCS%%%%EXAMPLESDIR%%/Interpreter/ASTWhileStatement.java %%PORTDOCS%%%%EXAMPLESDIR%%/Interpreter/ASTWriteStatement.java +%%PORTDOCS%%%%EXAMPLESDIR%%/Interpreter/MyNode.java %%PORTDOCS%%%%EXAMPLESDIR%%/Interpreter/Node.java %%PORTDOCS%%%%EXAMPLESDIR%%/Interpreter/README %%PORTDOCS%%%%EXAMPLESDIR%%/Interpreter/SPL.java %%PORTDOCS%%%%EXAMPLESDIR%%/Interpreter/SPL.jjt -%%PORTDOCS%%%%EXAMPLESDIR%%/Interpreter/SimpleNode.java %%PORTDOCS%%%%EXAMPLESDIR%%/Interpreter/fact.spl %%PORTDOCS%%%%EXAMPLESDIR%%/Interpreter/odd.spl %%PORTDOCS%%%%EXAMPLESDIR%%/Interpreter/sqrt.spl %%PORTDOCS%%%%EXAMPLESDIR%%/JJTreeExamples/ASTMyID.java %%PORTDOCS%%%%EXAMPLESDIR%%/JJTreeExamples/ASTMyOtherID.java %%PORTDOCS%%%%EXAMPLESDIR%%/JJTreeExamples/README +%%PORTDOCS%%%%EXAMPLESDIR%%/JJTreeExamples/build.xml %%PORTDOCS%%%%EXAMPLESDIR%%/JJTreeExamples/eg1.jjt %%PORTDOCS%%%%EXAMPLESDIR%%/JJTreeExamples/eg2.jjt %%PORTDOCS%%%%EXAMPLESDIR%%/JJTreeExamples/eg3.jjt %%PORTDOCS%%%%EXAMPLESDIR%%/JJTreeExamples/eg4.jjt %%PORTDOCS%%%%EXAMPLESDIR%%/JJTreeExamples/eg4DumpVisitor.java %%PORTDOCS%%%%EXAMPLESDIR%%/JavaCCGrammar/JavaCC.jj +%%PORTDOCS%%%%EXAMPLESDIR%%/JavaGrammars/1.5/Java1.5.jj +%%PORTDOCS%%%%EXAMPLESDIR%%/JavaGrammars/1.5/Main.java +%%PORTDOCS%%%%EXAMPLESDIR%%/JavaGrammars/1.5/README +%%PORTDOCS%%%%EXAMPLESDIR%%/JavaGrammars/1.5/Test.java +%%PORTDOCS%%%%EXAMPLESDIR%%/JavaGrammars/1.5/Token.java +%%PORTDOCS%%%%EXAMPLESDIR%%/JavaGrammars/1.5/build.xml %%PORTDOCS%%%%EXAMPLESDIR%%/JavaGrammars/Java1.0.2.jj %%PORTDOCS%%%%EXAMPLESDIR%%/JavaGrammars/Java1.0.2LS.jj %%PORTDOCS%%%%EXAMPLESDIR%%/JavaGrammars/Java1.1.jj %%PORTDOCS%%%%EXAMPLESDIR%%/JavaGrammars/Java1.1noLA.jj %%PORTDOCS%%%%EXAMPLESDIR%%/JavaGrammars/OPTIMIZING %%PORTDOCS%%%%EXAMPLESDIR%%/JavaGrammars/README +%%PORTDOCS%%%%EXAMPLESDIR%%/JavaGrammars/Test.java %%PORTDOCS%%%%EXAMPLESDIR%%/Lookahead/Example1.jj %%PORTDOCS%%%%EXAMPLESDIR%%/Lookahead/Example10.jj %%PORTDOCS%%%%EXAMPLESDIR%%/Lookahead/Example2.jj %%PORTDOCS%%%%EXAMPLESDIR%%/Lookahead/Example3.jj %%PORTDOCS%%%%EXAMPLESDIR%%/Lookahead/Example4.jj %%PORTDOCS%%%%EXAMPLESDIR%%/Lookahead/Example5.jj %%PORTDOCS%%%%EXAMPLESDIR%%/Lookahead/Example6.jj %%PORTDOCS%%%%EXAMPLESDIR%%/Lookahead/Example7.jj %%PORTDOCS%%%%EXAMPLESDIR%%/Lookahead/Example8.jj %%PORTDOCS%%%%EXAMPLESDIR%%/Lookahead/Example9.jj %%PORTDOCS%%%%EXAMPLESDIR%%/Lookahead/README %%PORTDOCS%%%%EXAMPLESDIR%%/MailProcessing/Digest.jj %%PORTDOCS%%%%EXAMPLESDIR%%/MailProcessing/Faq.jj %%PORTDOCS%%%%EXAMPLESDIR%%/MailProcessing/README %%PORTDOCS%%%%EXAMPLESDIR%%/MailProcessing/sampleMailFile %%PORTDOCS%%%%EXAMPLESDIR%%/Obfuscator/Globals.java %%PORTDOCS%%%%EXAMPLESDIR%%/Obfuscator/IdsFile.jj %%PORTDOCS%%%%EXAMPLESDIR%%/Obfuscator/Java1.1.jj %%PORTDOCS%%%%EXAMPLESDIR%%/Obfuscator/Main.java %%PORTDOCS%%%%EXAMPLESDIR%%/Obfuscator/MapFile.jj %%PORTDOCS%%%%EXAMPLESDIR%%/Obfuscator/Obfuscator.java %%PORTDOCS%%%%EXAMPLESDIR%%/Obfuscator/README %%PORTDOCS%%%%EXAMPLESDIR%%/Obfuscator/input/package1/Main.java %%PORTDOCS%%%%EXAMPLESDIR%%/Obfuscator/input/package2/Incr.java %%PORTDOCS%%%%EXAMPLESDIR%%/Obfuscator/maps %%PORTDOCS%%%%EXAMPLESDIR%%/Obfuscator/nochangeids %%PORTDOCS%%%%EXAMPLESDIR%%/Obfuscator/useids %%PORTDOCS%%%%EXAMPLESDIR%%/README %%PORTDOCS%%%%EXAMPLESDIR%%/SimpleExamples/IdList.jj %%PORTDOCS%%%%EXAMPLESDIR%%/SimpleExamples/NL_Xlator.jj %%PORTDOCS%%%%EXAMPLESDIR%%/SimpleExamples/README %%PORTDOCS%%%%EXAMPLESDIR%%/SimpleExamples/Simple1.jj %%PORTDOCS%%%%EXAMPLESDIR%%/SimpleExamples/Simple2.jj %%PORTDOCS%%%%EXAMPLESDIR%%/SimpleExamples/Simple3.jj %%PORTDOCS%%%%EXAMPLESDIR%%/Transformer/ASTCompilationUnit.java %%PORTDOCS%%%%EXAMPLESDIR%%/Transformer/ASTSpecialBlock.java %%PORTDOCS%%%%EXAMPLESDIR%%/Transformer/README %%PORTDOCS%%%%EXAMPLESDIR%%/Transformer/SimpleNode.java %%PORTDOCS%%%%EXAMPLESDIR%%/Transformer/ToyJava.jjt %%PORTDOCS%%%%EXAMPLESDIR%%/Transformer/divide.toy %%PORTDOCS%%%%EXAMPLESDIR%%/VTransformer/AddAcceptVisitor.java %%PORTDOCS%%%%EXAMPLESDIR%%/VTransformer/Java1.1.jjt %%PORTDOCS%%%%EXAMPLESDIR%%/VTransformer/Main.java %%PORTDOCS%%%%EXAMPLESDIR%%/VTransformer/README %%PORTDOCS%%%%EXAMPLESDIR%%/VTransformer/SimpleNode.java %%PORTDOCS%%%%EXAMPLESDIR%%/VTransformer/UnparseVisitor.java %%JAVAJARDIR%%/javacc.jar %%PORTDOCS%%@dirrm %%DOCSDIR%% %%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/VTransformer %%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/Transformer %%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/SimpleExamples %%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/Obfuscator/input/package2 %%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/Obfuscator/input/package1 %%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/Obfuscator/input %%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/Obfuscator %%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/MailProcessing %%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/Lookahead +%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/JavaGrammars/1.5 %%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/JavaGrammars %%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/JavaCCGrammar %%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/JJTreeExamples %%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/Interpreter %%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/GUIParsing/TokenMgrVersion %%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/GUIParsing/ParserVersion %%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/GUIParsing %%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/CORBA-IDL %%PORTDOCS%%@dirrm %%EXAMPLESDIR%% Property changes on: head/textproc/javacc/pkg-plist ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.5 \ No newline at end of property +1.6 \ No newline at end of property