summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2006-05-11 03:50:02 +0000
committerminskim <minskim@pkgsrc.org>2006-05-11 03:50:02 +0000
commit78251a8cbc69193a7bb394f6239a7e05fd50b9d3 (patch)
treeffd41809f66487e2ed93bde257d76fad1e5e92d0 /devel
parent335c7c49a098ba3c528d7c0c959faf56aba09e0d (diff)
downloadpkgsrc-78251a8cbc69193a7bb394f6239a7e05fd50b9d3.tar.gz
Import javacc.
Java Compiler Compiler [tm] (JavaCC [tm]) is the most popular parser generator for use with Java [tm] 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, etc.
Diffstat (limited to 'devel')
-rw-r--r--devel/javacc/DESCR7
-rw-r--r--devel/javacc/Makefile41
-rw-r--r--devel/javacc/PLIST172
-rw-r--r--devel/javacc/distinfo5
4 files changed, 225 insertions, 0 deletions
diff --git a/devel/javacc/DESCR b/devel/javacc/DESCR
new file mode 100644
index 00000000000..a5c559f2f78
--- /dev/null
+++ b/devel/javacc/DESCR
@@ -0,0 +1,7 @@
+Java Compiler Compiler [tm] (JavaCC [tm]) is the most popular parser
+generator for use with Java [tm] 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, etc.
diff --git a/devel/javacc/Makefile b/devel/javacc/Makefile
new file mode 100644
index 00000000000..0dfd463ac33
--- /dev/null
+++ b/devel/javacc/Makefile
@@ -0,0 +1,41 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/05/11 03:50:02 minskim Exp $
+
+DISTNAME= javacc-4.0
+CATEGORIES= devel
+MASTER_SITES= https://javacc.dev.java.net/files/documents/17/26776/
+
+MAINTAINER= minskim@NetBSD.org
+HOMEPAGE= https://javacc.dev.java.net/
+COMMENT= Java Compiler Compiler [tm]
+
+NO_BUILD= yes
+USE_JAVA= run
+USE_JAVA2= yes
+
+SUBST_CLASSES+= paths
+SUBST_MESSAGE.paths= Fixing classpath.
+SUBST_STAGE.paths= pre-configure
+SUBST_FILES.paths= bin/javacc bin/jjdoc bin/jjtree
+SUBST_SED.paths= -e 's,`dirname \$$0`/lib,${PREFIX}/lib/java,g'
+
+.include "../../mk/java-vm.mk"
+
+INSTALLATION_DIRS+= bin
+
+do-install:
+.for f in javacc jjdoc jjtree
+ ${INSTALL_SCRIPT} ${WRKSRC}/bin/${f} ${PREFIX}/bin
+.endfor
+ ${INSTALL_DATA_DIR} ${PREFIX}/lib/java
+ ${INSTALL_DATA} ${WRKSRC}/bin/lib/javacc.jar ${PREFIX}/lib/java
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/javacc
+ ${INSTALL_DATA} ${WRKSRC}/LICENSE ${PREFIX}/share/doc/javacc
+ ${INSTALL_DATA} ${WRKSRC}/doc/* ${PREFIX}/share/doc/javacc
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/javacc
+ ${CP} -R ${WRKSRC}/examples/* ${PREFIX}/share/examples/javacc
+ ${FIND} ${PREFIX}/share/examples/javacc -type d -print \
+ | ${XARGS} ${CHMOD} ${PKGDIRMODE}
+ ${FIND} ${PREFIX}/share/examples/javacc -type f -print \
+ | ${XARGS} ${CHMOD} ${SHAREMODE}
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/javacc/PLIST b/devel/javacc/PLIST
new file mode 100644
index 00000000000..5a07f16d431
--- /dev/null
+++ b/devel/javacc/PLIST
@@ -0,0 +1,172 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/05/11 03:50:03 minskim Exp $
+bin/javacc
+bin/jjdoc
+bin/jjtree
+lib/java/javacc.jar
+share/doc/javacc/CharStream.html
+share/doc/javacc/JJDoc.html
+share/doc/javacc/JJTree.html
+share/doc/javacc/LICENSE
+share/doc/javacc/apiroutines.html
+share/doc/javacc/commandline.html
+share/doc/javacc/docindex.html
+share/doc/javacc/errorrecovery.html
+share/doc/javacc/features.html
+share/doc/javacc/index.html
+share/doc/javacc/installhelp.html
+share/doc/javacc/javaccgrm.html
+share/doc/javacc/javaccreleasenotes.html
+share/doc/javacc/jjdocreleasenotes.html
+share/doc/javacc/jjtreeREADME.html
+share/doc/javacc/jjtreeintro.html
+share/doc/javacc/jjtreereleasenotes.html
+share/doc/javacc/lexertips.html
+share/doc/javacc/lookahead.html
+share/doc/javacc/mailinglist.html
+share/doc/javacc/simpleREADME.html
+share/doc/javacc/support.html
+share/doc/javacc/tokenmanager.html
+share/examples/javacc/CORBA-IDL/IDL.jj
+share/examples/javacc/CORBA-IDL/README
+share/examples/javacc/GUIParsing/ParserVersion/CalcGUI.java
+share/examples/javacc/GUIParsing/ParserVersion/CalcInput.jj
+share/examples/javacc/GUIParsing/ParserVersion/Main.java
+share/examples/javacc/GUIParsing/ParserVersion/ProducerConsumer.java
+share/examples/javacc/GUIParsing/ParserVersion/README
+share/examples/javacc/GUIParsing/ParserVersion/TokenCollector.java
+share/examples/javacc/GUIParsing/README
+share/examples/javacc/GUIParsing/TokenMgrVersion/CalcGUI.java
+share/examples/javacc/GUIParsing/TokenMgrVersion/CalcInput.jj
+share/examples/javacc/GUIParsing/TokenMgrVersion/CharCollector.java
+share/examples/javacc/GUIParsing/TokenMgrVersion/Main.java
+share/examples/javacc/GUIParsing/TokenMgrVersion/MyLexer.java
+share/examples/javacc/GUIParsing/TokenMgrVersion/README
+share/examples/javacc/Interpreter/ASTAddNode.java
+share/examples/javacc/Interpreter/ASTAndNode.java
+share/examples/javacc/Interpreter/ASTAssignment.java
+share/examples/javacc/Interpreter/ASTBitwiseAndNode.java
+share/examples/javacc/Interpreter/ASTBitwiseComplNode.java
+share/examples/javacc/Interpreter/ASTBitwiseOrNode.java
+share/examples/javacc/Interpreter/ASTBitwiseXorNode.java
+share/examples/javacc/Interpreter/ASTBlock.java
+share/examples/javacc/Interpreter/ASTCompilationUnit.java
+share/examples/javacc/Interpreter/ASTDivNode.java
+share/examples/javacc/Interpreter/ASTEQNode.java
+share/examples/javacc/Interpreter/ASTFalseNode.java
+share/examples/javacc/Interpreter/ASTGENode.java
+share/examples/javacc/Interpreter/ASTGTNode.java
+share/examples/javacc/Interpreter/ASTId.java
+share/examples/javacc/Interpreter/ASTIfStatement.java
+share/examples/javacc/Interpreter/ASTIntConstNode.java
+share/examples/javacc/Interpreter/ASTLENode.java
+share/examples/javacc/Interpreter/ASTLTNode.java
+share/examples/javacc/Interpreter/ASTModNode.java
+share/examples/javacc/Interpreter/ASTMulNode.java
+share/examples/javacc/Interpreter/ASTNENode.java
+share/examples/javacc/Interpreter/ASTNotNode.java
+share/examples/javacc/Interpreter/ASTOrNode.java
+share/examples/javacc/Interpreter/ASTReadStatement.java
+share/examples/javacc/Interpreter/ASTStatementExpression.java
+share/examples/javacc/Interpreter/ASTSubtractNode.java
+share/examples/javacc/Interpreter/ASTTrueNode.java
+share/examples/javacc/Interpreter/ASTVarDeclaration.java
+share/examples/javacc/Interpreter/ASTWhileStatement.java
+share/examples/javacc/Interpreter/ASTWriteStatement.java
+share/examples/javacc/Interpreter/MyNode.java
+share/examples/javacc/Interpreter/Node.java
+share/examples/javacc/Interpreter/README
+share/examples/javacc/Interpreter/SPL.java
+share/examples/javacc/Interpreter/SPL.jjt
+share/examples/javacc/Interpreter/fact.spl
+share/examples/javacc/Interpreter/odd.spl
+share/examples/javacc/Interpreter/sqrt.spl
+share/examples/javacc/JJTreeExamples/ASTMyID.java
+share/examples/javacc/JJTreeExamples/ASTMyOtherID.java
+share/examples/javacc/JJTreeExamples/README
+share/examples/javacc/JJTreeExamples/build.xml
+share/examples/javacc/JJTreeExamples/eg1.jjt
+share/examples/javacc/JJTreeExamples/eg2.jjt
+share/examples/javacc/JJTreeExamples/eg3.jjt
+share/examples/javacc/JJTreeExamples/eg4.jjt
+share/examples/javacc/JJTreeExamples/eg4DumpVisitor.java
+share/examples/javacc/JavaCCGrammar/JavaCC.jj
+share/examples/javacc/JavaGrammars/1.5/Java1.5.jj
+share/examples/javacc/JavaGrammars/1.5/Main.java
+share/examples/javacc/JavaGrammars/1.5/README
+share/examples/javacc/JavaGrammars/1.5/Test.java
+share/examples/javacc/JavaGrammars/1.5/Token.java
+share/examples/javacc/JavaGrammars/1.5/build.xml
+share/examples/javacc/JavaGrammars/Java1.0.2.jj
+share/examples/javacc/JavaGrammars/Java1.0.2LS.jj
+share/examples/javacc/JavaGrammars/Java1.1.jj
+share/examples/javacc/JavaGrammars/Java1.1noLA.jj
+share/examples/javacc/JavaGrammars/OPTIMIZING
+share/examples/javacc/JavaGrammars/README
+share/examples/javacc/JavaGrammars/Test.java
+share/examples/javacc/Lookahead/Example1.jj
+share/examples/javacc/Lookahead/Example10.jj
+share/examples/javacc/Lookahead/Example2.jj
+share/examples/javacc/Lookahead/Example3.jj
+share/examples/javacc/Lookahead/Example4.jj
+share/examples/javacc/Lookahead/Example5.jj
+share/examples/javacc/Lookahead/Example6.jj
+share/examples/javacc/Lookahead/Example7.jj
+share/examples/javacc/Lookahead/Example8.jj
+share/examples/javacc/Lookahead/Example9.jj
+share/examples/javacc/Lookahead/README
+share/examples/javacc/MailProcessing/Digest.jj
+share/examples/javacc/MailProcessing/Faq.jj
+share/examples/javacc/MailProcessing/README
+share/examples/javacc/MailProcessing/sampleMailFile
+share/examples/javacc/Obfuscator/Globals.java
+share/examples/javacc/Obfuscator/IdsFile.jj
+share/examples/javacc/Obfuscator/Java1.1.jj
+share/examples/javacc/Obfuscator/Main.java
+share/examples/javacc/Obfuscator/MapFile.jj
+share/examples/javacc/Obfuscator/Obfuscator.java
+share/examples/javacc/Obfuscator/README
+share/examples/javacc/Obfuscator/input/package1/Main.java
+share/examples/javacc/Obfuscator/input/package2/Incr.java
+share/examples/javacc/Obfuscator/maps
+share/examples/javacc/Obfuscator/nochangeids
+share/examples/javacc/Obfuscator/useids
+share/examples/javacc/README
+share/examples/javacc/SimpleExamples/IdList.jj
+share/examples/javacc/SimpleExamples/NL_Xlator.jj
+share/examples/javacc/SimpleExamples/README
+share/examples/javacc/SimpleExamples/Simple1.jj
+share/examples/javacc/SimpleExamples/Simple2.jj
+share/examples/javacc/SimpleExamples/Simple3.jj
+share/examples/javacc/Transformer/ASTCompilationUnit.java
+share/examples/javacc/Transformer/ASTSpecialBlock.java
+share/examples/javacc/Transformer/README
+share/examples/javacc/Transformer/SimpleNode.java
+share/examples/javacc/Transformer/ToyJava.jjt
+share/examples/javacc/Transformer/divide.toy
+share/examples/javacc/VTransformer/AddAcceptVisitor.java
+share/examples/javacc/VTransformer/Java1.1.jjt
+share/examples/javacc/VTransformer/Main.java
+share/examples/javacc/VTransformer/README
+share/examples/javacc/VTransformer/SimpleNode.java
+share/examples/javacc/VTransformer/UnparseVisitor.java
+@dirrm share/examples/javacc/VTransformer
+@dirrm share/examples/javacc/Transformer
+@dirrm share/examples/javacc/SimpleExamples
+@dirrm share/examples/javacc/Obfuscator/input/package2
+@dirrm share/examples/javacc/Obfuscator/input/package1
+@dirrm share/examples/javacc/Obfuscator/input
+@dirrm share/examples/javacc/Obfuscator
+@dirrm share/examples/javacc/MailProcessing
+@dirrm share/examples/javacc/Lookahead
+@dirrm share/examples/javacc/JavaGrammars/1.5
+@dirrm share/examples/javacc/JavaGrammars
+@dirrm share/examples/javacc/JavaCCGrammar
+@dirrm share/examples/javacc/JJTreeExamples
+@dirrm share/examples/javacc/Interpreter
+@dirrm share/examples/javacc/GUIParsing/TokenMgrVersion
+@dirrm share/examples/javacc/GUIParsing/ParserVersion
+@dirrm share/examples/javacc/GUIParsing
+@dirrm share/examples/javacc/CORBA-IDL
+@dirrm share/examples/javacc
+@dirrm share/doc/javacc
+@unexec ${RMDIR} %D/lib/java 2>/dev/null || ${TRUE}
diff --git a/devel/javacc/distinfo b/devel/javacc/distinfo
new file mode 100644
index 00000000000..66d88e9ead4
--- /dev/null
+++ b/devel/javacc/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/05/11 03:50:02 minskim Exp $
+
+SHA1 (javacc-4.0.tar.gz) = 74b1daf2e10077f9f64225f2ac8d08075b40445d
+RMD160 (javacc-4.0.tar.gz) = e17b9d81aef094384ee7578432adc66f4ff816dd
+Size (javacc-4.0.tar.gz) = 422038 bytes