diff options
author | cpiazza <cpiazza@FreeBSD.org> | 1999-07-04 08:10:23 +0800 |
---|---|---|
committer | cpiazza <cpiazza@FreeBSD.org> | 1999-07-04 08:10:23 +0800 |
commit | 25fc0a04a86cba51ce7325757960072b4263e4e2 (patch) | |
tree | 661113b786f84ca183543400cbc29b2a59dd9494 /java/jlex | |
parent | 120b7d61bde3747bba53d1338a894f43677d73da (diff) | |
download | freebsd-ports-gnome-25fc0a04a86cba51ce7325757960072b4263e4e2.tar.gz freebsd-ports-gnome-25fc0a04a86cba51ce7325757960072b4263e4e2.tar.zst freebsd-ports-gnome-25fc0a04a86cba51ce7325757960072b4263e4e2.zip |
JLex: a uitility based upon the Lex lexical analyzer generator model.
It takes a specification file similar to that accepted by Lex and creates
a Java source file for the correspoding lexical analyzer.
PR: 12476
Submitted by: Jake Burkholder <jake@checker.org>
Diffstat (limited to 'java/jlex')
-rw-r--r-- | java/jlex/Makefile | 43 | ||||
-rw-r--r-- | java/jlex/distinfo | 1 | ||||
-rw-r--r-- | java/jlex/pkg-comment | 1 | ||||
-rw-r--r-- | java/jlex/pkg-descr | 8 | ||||
-rw-r--r-- | java/jlex/pkg-message | 4 | ||||
-rw-r--r-- | java/jlex/pkg-plist | 21 |
6 files changed, 78 insertions, 0 deletions
diff --git a/java/jlex/Makefile b/java/jlex/Makefile new file mode 100644 index 000000000000..6f5ae0357060 --- /dev/null +++ b/java/jlex/Makefile @@ -0,0 +1,43 @@ +# New ports collection makefile for: jlex +# Version required: 1.2.3 +# Date created: 1 June 1999 +# Whom: jake@checker.org +# +# $Id$ +# + +DISTNAME= Main +PKGNAME= jlex-1.2.3 +CATEGORIES= java +MASTER_SITES= http://www.cs.princeton.edu/~appel/modern/java/JLex/Archive/1.2.3/ +EXTRACT_SUFX= .java + +MAINTAINER= jake@checker.org + +BUILD_DEPENDS= ${LOCALBASE}/${JAVADIR}/bin/java:${PORTSDIR}/java/jdk + +EXTRACT_ONLY= + +JAVADIR= jdk1.1.8 +JAVAC= ${LOCALBASE}/${JAVADIR}/bin/javac + +NO_WRKSUBDIR= yes + +PLIST_SUB= JAVADIR=${JAVADIR} + +do-extract: + @${RM} -rf ${WRKDIR} + @${MKDIR} ${WRKDIR} + @${CP} ${DISTDIR}/Main.java ${WRKDIR} + +do-build: + @${JAVAC} ${WRKDIR}/Main.java + +do-install: + @${MKDIR} ${PREFIX}/${JAVADIR}/jlex + @${INSTALL_SCRIPT} ${WRKDIR}/*.class ${PREFIX}/${JAVADIR}/jlex + +post-install: + @${CAT} ${PKGMESSAGE} | ${SED} -e s:/usr/local:${PREFIX}: -e s:jdk1.1.8:${JAVADIR}: + +.include <bsd.port.mk> diff --git a/java/jlex/distinfo b/java/jlex/distinfo new file mode 100644 index 000000000000..9c1183c7cf60 --- /dev/null +++ b/java/jlex/distinfo @@ -0,0 +1 @@ +MD5 (Main.java) = 2845da1175e06a50fca26f62840caaa8 diff --git a/java/jlex/pkg-comment b/java/jlex/pkg-comment new file mode 100644 index 000000000000..bdb9f35f7957 --- /dev/null +++ b/java/jlex/pkg-comment @@ -0,0 +1 @@ +A lexical analyzer generator, written for Java, in Java diff --git a/java/jlex/pkg-descr b/java/jlex/pkg-descr new file mode 100644 index 000000000000..3e60ef181fc9 --- /dev/null +++ b/java/jlex/pkg-descr @@ -0,0 +1,8 @@ +The JLex utility is based upon the Lex lexical analyzer generator model. +JLex takes a specification file similar to that accepted by Lex, then +creates a Java source file for the corresponding lexical analyzer. + +WWW: http://www.cs.princeton.edu/~appel/modern/java/JLex/ + +- Jake +jake@checker.org diff --git a/java/jlex/pkg-message b/java/jlex/pkg-message new file mode 100644 index 000000000000..d24f12b63bd6 --- /dev/null +++ b/java/jlex/pkg-message @@ -0,0 +1,4 @@ + +JLex is installed into /usr/local/jdk1.1.8/jlex. +See http://www.cs.princeton.edu/~appel/modern/java/JLex. + diff --git a/java/jlex/pkg-plist b/java/jlex/pkg-plist new file mode 100644 index 000000000000..102404f707fb --- /dev/null +++ b/java/jlex/pkg-plist @@ -0,0 +1,21 @@ +%%JAVADIR%%/jlex/CAccept.class +%%JAVADIR%%/jlex/CAcceptAnchor.class +%%JAVADIR%%/jlex/CAlloc.class +%%JAVADIR%%/jlex/CBunch.class +%%JAVADIR%%/jlex/CDTrans.class +%%JAVADIR%%/jlex/CDfa.class +%%JAVADIR%%/jlex/CEmit.class +%%JAVADIR%%/jlex/CError.class +%%JAVADIR%%/jlex/CInput.class +%%JAVADIR%%/jlex/CLexGen.class +%%JAVADIR%%/jlex/CMakeNfa.class +%%JAVADIR%%/jlex/CMinimize.class +%%JAVADIR%%/jlex/CNfa.class +%%JAVADIR%%/jlex/CNfa2Dfa.class +%%JAVADIR%%/jlex/CNfaPair.class +%%JAVADIR%%/jlex/CSet.class +%%JAVADIR%%/jlex/CSpec.class +%%JAVADIR%%/jlex/CUtility.class +%%JAVADIR%%/jlex/JavaLexBitSet.class +%%JAVADIR%%/jlex/Main.class +@dirrm %%JAVADIR%%/jlex |