summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-02-22 08:24:44 +0000
committerrillig <rillig@pkgsrc.org>2007-02-22 08:24:44 +0000
commit5fe555d87f268dfa379186aa1b1671ca50afe583 (patch)
treec48dcbc258577eea0aa8cf53387233f74208c4e2 /devel
parenta1b259a0910570a1a64b7364de4c7cc4bbc4fc35 (diff)
downloadpkgsrc-5fe555d87f268dfa379186aa1b1671ca50afe583.tar.gz
Imported jflex.
JFlex is a lexical analyzer generator for Java written in Java. It is also a rewrite of the very useful tool JLex which was developed by Elliot Berk at Princeton University. As Vern Paxson states for his C/C++ tool flex: They do not share any code though.
Diffstat (limited to 'devel')
-rw-r--r--devel/jflex/DESCR4
-rw-r--r--devel/jflex/Makefile27
-rw-r--r--devel/jflex/PLIST84
-rw-r--r--devel/jflex/distinfo5
4 files changed, 120 insertions, 0 deletions
diff --git a/devel/jflex/DESCR b/devel/jflex/DESCR
new file mode 100644
index 00000000000..f155704add9
--- /dev/null
+++ b/devel/jflex/DESCR
@@ -0,0 +1,4 @@
+JFlex is a lexical analyzer generator for Java written in Java. It is
+also a rewrite of the very useful tool JLex which was developed by
+Elliot Berk at Princeton University. As Vern Paxson states for his C/C++
+tool flex: They do not share any code though.
diff --git a/devel/jflex/Makefile b/devel/jflex/Makefile
new file mode 100644
index 00000000000..a4b38d12d5f
--- /dev/null
+++ b/devel/jflex/Makefile
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/02/22 08:24:44 rillig Exp $
+#
+
+DISTNAME= jflex-1.4.1
+CATEGORIES= devel
+MASTER_SITES= http://jflex.de/
+
+MAINTAINER= rillig@NetBSD.org
+HOMEPAGE= http://jflex.de/
+COMMENT= Fast lexical analyzer generator for Java
+
+USE_LANGUAGES= # none
+USE_JAVA= run
+
+INSTALLATION_DIRS= bin lib/java share/doc/jflex share/examples/jflex
+
+do-build:
+ printf "#! ${SH}\\nexec ${PKG_JAVA_HOME}/bin/java -jar ${PREFIX}/lib/java/JFlex.jar \"\$$@\"\\n" > ${WRKSRC}/jflex.sh
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/jflex.sh ${PREFIX}/bin/jflex
+ ${INSTALL_DATA} ${WRKSRC}/lib/JFlex.jar ${PREFIX}/lib/java/
+ cd ${WRKSRC}/doc && pax -wr -pm * ${PREFIX}/share/doc/jflex
+ cd ${WRKSRC}/examples && pax -wr -pm * ${PREFIX}/share/examples/jflex
+
+.include "../../mk/java-vm.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/jflex/PLIST b/devel/jflex/PLIST
new file mode 100644
index 00000000000..f618bcd69b4
--- /dev/null
+++ b/devel/jflex/PLIST
@@ -0,0 +1,84 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2007/02/22 08:24:44 rillig Exp $
+bin/jflex
+lib/java/JFlex.jar
+share/doc/jflex/COPYRIGHT
+share/doc/jflex/crossref.png
+share/doc/jflex/footnote.png
+share/doc/jflex/jflex_anttask.html
+share/doc/jflex/logo.gif
+share/doc/jflex/manual.css
+share/doc/jflex/manual.html
+share/doc/jflex/manual.pdf
+share/doc/jflex/manual.ps.gz
+share/examples/jflex/binary/Makefile
+share/examples/jflex/binary/README
+share/examples/jflex/binary/StraightStreamReader.java
+share/examples/jflex/binary/binary.flex
+share/examples/jflex/byaccj/Makefile
+share/examples/jflex/byaccj/README
+share/examples/jflex/byaccj/calc.flex
+share/examples/jflex/byaccj/calc.y
+share/examples/jflex/cup/Main.java
+share/examples/jflex/cup/Makefile
+share/examples/jflex/cup/README
+share/examples/jflex/cup/lcalc.flex
+share/examples/jflex/cup/output.good
+share/examples/jflex/cup/test.txt
+share/examples/jflex/cup/ycalc.cup
+share/examples/jflex/interpreter/AST.java
+share/examples/jflex/interpreter/Main.java
+share/examples/jflex/interpreter/Makefile
+share/examples/jflex/interpreter/README
+share/examples/jflex/interpreter/STEfun.java
+share/examples/jflex/interpreter/STEvar.java
+share/examples/jflex/interpreter/SymTab.java
+share/examples/jflex/interpreter/SymtabEntry.java
+share/examples/jflex/interpreter/Tboolexp.java
+share/examples/jflex/interpreter/Tdekl.java
+share/examples/jflex/interpreter/Tdekllist.java
+share/examples/jflex/interpreter/Texp.java
+share/examples/jflex/interpreter/Texpinfix.java
+share/examples/jflex/interpreter/Texplist.java
+share/examples/jflex/interpreter/Tfun.java
+share/examples/jflex/interpreter/Tident.java
+share/examples/jflex/interpreter/Tifthenelse.java
+share/examples/jflex/interpreter/Tnumber.java
+share/examples/jflex/interpreter/Tparlist.java
+share/examples/jflex/interpreter/Tprogram.java
+share/examples/jflex/interpreter/Tuminus.java
+share/examples/jflex/interpreter/build.xml
+share/examples/jflex/interpreter/example.as
+share/examples/jflex/interpreter/parser.cup
+share/examples/jflex/interpreter/scanner.flex
+share/examples/jflex/java/JavaParser.java
+share/examples/jflex/java/JavaSymbol.java
+share/examples/jflex/java/Makefile
+share/examples/jflex/java/README
+share/examples/jflex/java/TestLexer.java
+share/examples/jflex/java/build.xml
+share/examples/jflex/java/java.flex
+share/examples/jflex/java/java12.cup
+share/examples/jflex/java/lexer-output.good
+share/examples/jflex/java/unicode.flex
+share/examples/jflex/simple/Makefile
+share/examples/jflex/simple/README
+share/examples/jflex/simple/Utility.java
+share/examples/jflex/simple/Yytoken.java
+share/examples/jflex/simple/output.good
+share/examples/jflex/simple/simple.flex
+share/examples/jflex/simple/test.txt
+share/examples/jflex/standalone/Makefile
+share/examples/jflex/standalone/README
+share/examples/jflex/standalone/build.xml
+share/examples/jflex/standalone/sample.inp
+share/examples/jflex/standalone/standalone.flex
+@dirrm share/examples/jflex/standalone
+@dirrm share/examples/jflex/simple
+@dirrm share/examples/jflex/java
+@dirrm share/examples/jflex/interpreter
+@dirrm share/examples/jflex/cup
+@dirrm share/examples/jflex/byaccj
+@dirrm share/examples/jflex/binary
+@dirrm share/examples/jflex
+@dirrm share/doc/jflex
+@dirrm lib/java
diff --git a/devel/jflex/distinfo b/devel/jflex/distinfo
new file mode 100644
index 00000000000..c1f1c982602
--- /dev/null
+++ b/devel/jflex/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2007/02/22 08:24:44 rillig Exp $
+
+SHA1 (jflex-1.4.1.tar.gz) = 274ced17ce5e9709cdc177ea4e5096c697fee1e5
+RMD160 (jflex-1.4.1.tar.gz) = 043a78f092e2c89253e4c53c6cd8c37aafaf05ed
+Size (jflex-1.4.1.tar.gz) = 986546 bytes