Date: Thu, 9 May 2002 01:52:37 -0700 (PDT) From: Andrew Gerweck <andy@gerweck.dynup.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/37879: New port: JavaCC, the Java Compiler Compiler Message-ID: <200205090852.g498qbN71870@gerweck.dynup.net>
next in thread | raw e-mail | index | archive | help
>Number: 37879 >Category: ports >Synopsis: New port: JavaCC, the Java Compiler Compiler >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu May 09 02:00:03 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Andrew Gerweck >Release: FreeBSD 4.5-RELEASE-p3 i386 >Organization: >Environment: System: FreeBSD gerweck.dynup.net 4.5-RELEASE-p3 FreeBSD 4.5-RELEASE-p3 #9: Tue Apr 16 17:53:43 PDT 2002 andy@enrique.eville.:/usr/obj/usr/src/sys/ENRIQUE i386 >Description: Compiler Compiler for Java. It's loosely based on Java syntax and generates executable Java classes. JavaCC includes tools for building abstract syntax trees and documentation. >How-To-Repeat: >Fix: --- javacc.port begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # javacc # javacc/Makefile # javacc/distinfo # javacc/pkg-plist # javacc/pkg-comment # javacc/pkg-descr # echo c - javacc mkdir -p javacc > /dev/null 2>&1 echo x - javacc/Makefile sed 's/^X//' >javacc/Makefile << 'END-of-javacc/Makefile' X# Ports collection makefile for: JavaCC X# Date Created: 6 May 2002 X# Whom: Andy Gerweck <gerweck@yahoo.com> X# X# $FreeBSD$ X# X XPORTNAME= javacc XPORTVERSION= 2.1 XCATEGORIES= java devel XMASTER_SITES= # Must accept license agreement. :( XDISTNAME= JavaCC2_1 X XMAINTAINER= gerweck@yahoo.com X XUSE_ZIP= yes XUSE_JAVA= 1.1+ X XJAVA_CLASSDIR= ${PREFIX}/share/java/classes/ XDOC_DIR= ${PREFIX}/share/doc/javacc XEXAMPLES_DIR= ${PREFIX}/share/examples/javacc X XRESTRICTED= "Redistribution of distfiles prohibited." X X.if defined(BATCH) || defined (PACKAGE_BUILDING) XIGNORE= "JavaCC may not be redistributed." X.endif X XNO_BUILD= yes XNO_WRKSUBDIR= yes XDOWNLOAD_URL?= http://www.webgain.com/products/java_cc/ X X.include <bsd.port.pre.mk> X X.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) XIGNORE= You must manually fetch the JavaCC ${PORTVERSION} distribution \ X (${DISTNAME}${EXTRACT_SUFX}) from ${DOWNLOAD_URL}. Please place the \ X distribution file into ${DISTDIR} and then run make again. X.endif X Xpost-extract: X @echo X @echo '********************************************************' X @echo '** Running JavaCC Installer **' X @echo '** IMPORTANT DIRECTIONS **' X @echo '** **' X @echo '** You must accept the license and leave the **' X @echo '** installation directory as its default. This port **' X @echo '** will then place the distributed files into the **' X @echo '** standard FreeBSD file hierarchy. **' X @echo '********************************************************' X @echo X X cd ${WRKSRC} && ${JAVA} -cp . ${DISTNAME} -c X Xdo-install: X ${MKDIR} ${JAVA_CLASSDIR} X for f in javacc jjdoc jjtree; do \ X ${PERL} -pe 's(${WRKSRC}/javacc2.1/bin/lib/JavaCC.zip)(${JAVA_CLASSDIR}/JavaCC.jar)o' ${WRKSRC}/javacc2.1/bin/$$f > ${WRKSRC}/tmp; \ X ${INSTALL_SCRIPT} ${WRKSRC}/tmp ${PREFIX}/bin/$$f; \ X done X ${INSTALL_DATA} ${WRKSRC}/javacc2.1/bin/lib/JavaCC.zip \ X ${JAVA_CLASSDIR}/JavaCC.jar X.if !defined(NOPORTDOCS) X ${MKDIR} ${DOC_DIR} X ${INSTALL_DATA} ${WRKSRC}/javacc2.1/COPYRIGHT ${DOC_DIR} X ${CP} -r ${WRKSRC}/javacc2.1/doc ${DOC_DIR} X X ${MKDIR} ${EXAMPLES_DIR} X ${CP} -r ${WRKSRC}/javacc2.1/examples ${EXAMPLES_DIR} X.endif X X.include <bsd.port.post.mk> END-of-javacc/Makefile echo x - javacc/distinfo sed 's/^X//' >javacc/distinfo << 'END-of-javacc/distinfo' XMD5 (JavaCC2_1.zip) = 959179e08cff69e15bdcbe28cf48de6a END-of-javacc/distinfo echo x - javacc/pkg-plist sed 's/^X//' >javacc/pkg-plist << 'END-of-javacc/pkg-plist' Xbin/javacc Xbin/jjdoc Xbin/jjtree Xshare/doc/javacc/COPYRIGHT Xshare/doc/javacc/doc/jjtree.JJTREE-FIX Xshare/doc/javacc/doc/INSTALLATIONNOTES Xshare/doc/javacc/doc/javacc.RELEASENOTES Xshare/doc/javacc/doc/javacc.DETAILEDNOTES Xshare/doc/javacc/doc/jjdoc.RELEASENOTES Xshare/doc/javacc/doc/jjtree.RELEASENOTES Xshare/doc/javacc/doc/jjtree.INTRO Xshare/doc/javacc/doc/README Xshare/examples/javacc/examples/Lookahead/Example9.jj Xshare/examples/javacc/examples/Lookahead/Example10.jj Xshare/examples/javacc/examples/Lookahead/Example1.jj Xshare/examples/javacc/examples/Lookahead/Example2.jj Xshare/examples/javacc/examples/Lookahead/Example3.jj Xshare/examples/javacc/examples/Lookahead/Example4.jj Xshare/examples/javacc/examples/Lookahead/Example5.jj Xshare/examples/javacc/examples/Lookahead/Example6.jj Xshare/examples/javacc/examples/Lookahead/Example7.jj Xshare/examples/javacc/examples/Lookahead/Example8.jj Xshare/examples/javacc/examples/Lookahead/README Xshare/examples/javacc/examples/CPP/README Xshare/examples/javacc/examples/CPP/CPP.jj Xshare/examples/javacc/examples/CandCPLUSPLUS/C/README Xshare/examples/javacc/examples/CandCPLUSPLUS/C/C.jj Xshare/examples/javacc/examples/CandCPLUSPLUS/CPLUSPLUS/README Xshare/examples/javacc/examples/CandCPLUSPLUS/CPLUSPLUS/CPLUSPLUS.jj Xshare/examples/javacc/examples/CandCPLUSPLUS/CPLUSPLUS/ClassScope.java Xshare/examples/javacc/examples/CandCPLUSPLUS/CPLUSPLUS/Declaration.java Xshare/examples/javacc/examples/CandCPLUSPLUS/CPLUSPLUS/Scope.java Xshare/examples/javacc/examples/CandCPLUSPLUS/CPLUSPLUS/SymtabManager.java Xshare/examples/javacc/examples/CandCPLUSPLUS/README Xshare/examples/javacc/examples/DU/README Xshare/examples/javacc/examples/DU/du.jj Xshare/examples/javacc/examples/GUIParsing/ParserVersion/README Xshare/examples/javacc/examples/GUIParsing/ParserVersion/CalcInput.jj Xshare/examples/javacc/examples/GUIParsing/ParserVersion/CalcGUI.java Xshare/examples/javacc/examples/GUIParsing/ParserVersion/Main.java Xshare/examples/javacc/examples/GUIParsing/ParserVersion/ProducerConsumer.java Xshare/examples/javacc/examples/GUIParsing/ParserVersion/TokenCollector.java Xshare/examples/javacc/examples/GUIParsing/TokenMgrVersion/README Xshare/examples/javacc/examples/GUIParsing/TokenMgrVersion/CalcInput.jj Xshare/examples/javacc/examples/GUIParsing/TokenMgrVersion/CalcGUI.java Xshare/examples/javacc/examples/GUIParsing/TokenMgrVersion/CharCollector.java Xshare/examples/javacc/examples/GUIParsing/TokenMgrVersion/Main.java Xshare/examples/javacc/examples/GUIParsing/TokenMgrVersion/MyLexer.java Xshare/examples/javacc/examples/GUIParsing/README Xshare/examples/javacc/examples/HTMLGrammars/RobsHTML/README Xshare/examples/javacc/examples/HTMLGrammars/RobsHTML/README.html Xshare/examples/javacc/examples/HTMLGrammars/RobsHTML/html-3.2.jjt Xshare/examples/javacc/examples/HTMLGrammars/RobsHTML/NodeAttribute.java Xshare/examples/javacc/examples/HTMLGrammars/RobsHTML/NodePCDATA.java Xshare/examples/javacc/examples/HTMLGrammars/RobsHTML/html-3.2.dtd Xshare/examples/javacc/examples/HTMLGrammars/README Xshare/examples/javacc/examples/Interpreter/sqrt.spl Xshare/examples/javacc/examples/Interpreter/ASTAddNode.java Xshare/examples/javacc/examples/Interpreter/ASTAndNode.java Xshare/examples/javacc/examples/Interpreter/ASTAssignment.java Xshare/examples/javacc/examples/Interpreter/ASTBitwiseAndNode.java Xshare/examples/javacc/examples/Interpreter/ASTBitwiseComplNode.java Xshare/examples/javacc/examples/Interpreter/ASTBitwiseOrNode.java Xshare/examples/javacc/examples/Interpreter/ASTBitwiseXorNode.java Xshare/examples/javacc/examples/Interpreter/ASTBlock.java Xshare/examples/javacc/examples/Interpreter/ASTCompilationUnit.java Xshare/examples/javacc/examples/Interpreter/ASTDivNode.java Xshare/examples/javacc/examples/Interpreter/ASTEQNode.java Xshare/examples/javacc/examples/Interpreter/ASTFalseNode.java Xshare/examples/javacc/examples/Interpreter/ASTGENode.java Xshare/examples/javacc/examples/Interpreter/ASTGTNode.java Xshare/examples/javacc/examples/Interpreter/ASTId.java Xshare/examples/javacc/examples/Interpreter/ASTIfStatement.java Xshare/examples/javacc/examples/Interpreter/ASTIntConstNode.java Xshare/examples/javacc/examples/Interpreter/ASTLENode.java Xshare/examples/javacc/examples/Interpreter/ASTLTNode.java Xshare/examples/javacc/examples/Interpreter/ASTModNode.java Xshare/examples/javacc/examples/Interpreter/ASTMulNode.java Xshare/examples/javacc/examples/Interpreter/ASTNENode.java Xshare/examples/javacc/examples/Interpreter/ASTNotNode.java Xshare/examples/javacc/examples/Interpreter/ASTOrNode.java Xshare/examples/javacc/examples/Interpreter/ASTReadStatement.java Xshare/examples/javacc/examples/Interpreter/ASTStatementExpression.java Xshare/examples/javacc/examples/Interpreter/ASTSubtractNode.java Xshare/examples/javacc/examples/Interpreter/ASTTrueNode.java Xshare/examples/javacc/examples/Interpreter/ASTVarDeclaration.java Xshare/examples/javacc/examples/Interpreter/ASTWhileStatement.java Xshare/examples/javacc/examples/Interpreter/ASTWriteStatement.java Xshare/examples/javacc/examples/Interpreter/Node.java Xshare/examples/javacc/examples/Interpreter/SimpleNode.java Xshare/examples/javacc/examples/Interpreter/SPL.java Xshare/examples/javacc/examples/Interpreter/SPL.jjt Xshare/examples/javacc/examples/Interpreter/fact.spl Xshare/examples/javacc/examples/Interpreter/odd.spl Xshare/examples/javacc/examples/Interpreter/README Xshare/examples/javacc/examples/JJTreeExamples/eg4DumpVisitor.java Xshare/examples/javacc/examples/JJTreeExamples/eg1.jjt Xshare/examples/javacc/examples/JJTreeExamples/eg2.jjt Xshare/examples/javacc/examples/JJTreeExamples/eg3.jjt Xshare/examples/javacc/examples/JJTreeExamples/eg4.jjt Xshare/examples/javacc/examples/JJTreeExamples/ASTMyID.java Xshare/examples/javacc/examples/JJTreeExamples/ASTMyOtherID.java Xshare/examples/javacc/examples/JJTreeExamples/README Xshare/examples/javacc/examples/JavaGrammars/Java1.2-b.jjt Xshare/examples/javacc/examples/JavaGrammars/OPTIMIZING Xshare/examples/javacc/examples/JavaGrammars/billsJava1.0.2.jj Xshare/examples/javacc/examples/JavaGrammars/Java1.0.2.jj Xshare/examples/javacc/examples/JavaGrammars/Java1.0.2LS.jj Xshare/examples/javacc/examples/JavaGrammars/Java1.1.jj Xshare/examples/javacc/examples/JavaGrammars/Java1.1noLA.jj Xshare/examples/javacc/examples/JavaGrammars/Java1.2-a.jj Xshare/examples/javacc/examples/JavaGrammars/README Xshare/examples/javacc/examples/JavaCCGrammar/JavaCC.jj Xshare/examples/javacc/examples/CORBA-IDL/README Xshare/examples/javacc/examples/CORBA-IDL/IDL.jj Xshare/examples/javacc/examples/MailProcessing/README Xshare/examples/javacc/examples/MailProcessing/Digest.jj Xshare/examples/javacc/examples/MailProcessing/Faq.jj Xshare/examples/javacc/examples/MailProcessing/sampleMailFile Xshare/examples/javacc/examples/Obfuscator/input/package1/Main.java Xshare/examples/javacc/examples/Obfuscator/input/package2/Incr.java Xshare/examples/javacc/examples/Obfuscator/README Xshare/examples/javacc/examples/Obfuscator/IdsFile.jj Xshare/examples/javacc/examples/Obfuscator/Java1.1.jj Xshare/examples/javacc/examples/Obfuscator/MapFile.jj Xshare/examples/javacc/examples/Obfuscator/Globals.java Xshare/examples/javacc/examples/Obfuscator/Main.java Xshare/examples/javacc/examples/Obfuscator/Obfuscator.java Xshare/examples/javacc/examples/Obfuscator/maps Xshare/examples/javacc/examples/Obfuscator/nochangeids Xshare/examples/javacc/examples/Obfuscator/useids Xshare/examples/javacc/examples/SimpleCalculators/Calc2i.jj Xshare/examples/javacc/examples/SimpleCalculators/Calc1i.jj Xshare/examples/javacc/examples/SimpleCalculators/Calc1.jj Xshare/examples/javacc/examples/SimpleCalculators/README Xshare/examples/javacc/examples/SimpleCalculators/Calc2.jj Xshare/examples/javacc/examples/SimpleCalculators/Calc3i.jj Xshare/examples/javacc/examples/SimpleCalculators/Calc3.jj Xshare/examples/javacc/examples/SimpleExamples/README Xshare/examples/javacc/examples/SimpleExamples/IdList.jj Xshare/examples/javacc/examples/SimpleExamples/NL_Xlator.jj Xshare/examples/javacc/examples/SimpleExamples/Simple1.jj Xshare/examples/javacc/examples/SimpleExamples/Simple2.jj Xshare/examples/javacc/examples/SimpleExamples/Simple3.jj Xshare/examples/javacc/examples/Transformer/README Xshare/examples/javacc/examples/Transformer/ToyJava.jjt Xshare/examples/javacc/examples/Transformer/ASTCompilationUnit.java Xshare/examples/javacc/examples/Transformer/ASTSpecialBlock.java Xshare/examples/javacc/examples/Transformer/SimpleNode.java Xshare/examples/javacc/examples/Transformer/divide.toy Xshare/examples/javacc/examples/JavaScope/README Xshare/examples/javacc/examples/VHDL/Vhdl.zip Xshare/examples/javacc/examples/VHDL/README Xshare/examples/javacc/examples/VTransformer/README Xshare/examples/javacc/examples/VTransformer/Java1.1.jjt Xshare/examples/javacc/examples/VTransformer/AddAcceptVisitor.java Xshare/examples/javacc/examples/VTransformer/Main.java Xshare/examples/javacc/examples/VTransformer/SimpleNode.java Xshare/examples/javacc/examples/VTransformer/UnparseVisitor.java Xshare/examples/javacc/examples/README Xshare/java/classes/JavaCC.jar X@dirrm share/doc/javacc/doc X@dirrm share/doc/javacc X@dirrm share/doc X@dirrm share/examples/javacc/examples/Lookahead X@dirrm share/examples/javacc/examples/CPP X@dirrm share/examples/javacc/examples/CandCPLUSPLUS/C X@dirrm share/examples/javacc/examples/CandCPLUSPLUS/CPLUSPLUS X@dirrm share/examples/javacc/examples/CandCPLUSPLUS X@dirrm share/examples/javacc/examples/DU X@dirrm share/examples/javacc/examples/GUIParsing/ParserVersion X@dirrm share/examples/javacc/examples/GUIParsing/TokenMgrVersion X@dirrm share/examples/javacc/examples/GUIParsing X@dirrm share/examples/javacc/examples/HTMLGrammars/RobsHTML X@dirrm share/examples/javacc/examples/HTMLGrammars X@dirrm share/examples/javacc/examples/Interpreter X@dirrm share/examples/javacc/examples/JJTreeExamples X@dirrm share/examples/javacc/examples/JavaGrammars X@dirrm share/examples/javacc/examples/JavaCCGrammar X@dirrm share/examples/javacc/examples/CORBA-IDL X@dirrm share/examples/javacc/examples/MailProcessing X@dirrm share/examples/javacc/examples/Obfuscator/input/package1 X@dirrm share/examples/javacc/examples/Obfuscator/input/package2 X@dirrm share/examples/javacc/examples/Obfuscator/input X@dirrm share/examples/javacc/examples/Obfuscator X@dirrm share/examples/javacc/examples/SimpleCalculators X@dirrm share/examples/javacc/examples/SimpleExamples X@dirrm share/examples/javacc/examples/Transformer X@dirrm share/examples/javacc/examples/JavaScope X@dirrm share/examples/javacc/examples/VHDL X@dirrm share/examples/javacc/examples/VTransformer X@dirrm share/examples/javacc/examples X@dirrm share/examples/javacc X@dirrm share/examples X@dirrm share/java/classes X@dirrm share/java X@dirrm share END-of-javacc/pkg-plist echo x - javacc/pkg-comment sed 's/^X//' >javacc/pkg-comment << 'END-of-javacc/pkg-comment' XCompiler compiler for Java; includes tools for building syntax trees END-of-javacc/pkg-comment echo x - javacc/pkg-descr sed 's/^X//' >javacc/pkg-descr << 'END-of-javacc/pkg-descr' XJavaCC is a compiler compiler for Java. It is similar to lex/yacc. Your Xoutput is a set of Java classes that can parse data defined by your grammar. X XThis includes JJTree, a preprocessor that greatly simplifies the construction Xof abstract syntax trees. Also included is JJDoc, a tool that can generate Xdocumentation for your grammar. X XWWW: http://www.webgain.com/products/java_cc/ X X- Andy Gerweck Xgerweck@yahoo.com END-of-javacc/pkg-descr exit --- javacc.port ends here --- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205090852.g498qbN71870>