diff options
author | arved <arved@FreeBSD.org> | 2004-01-19 22:33:28 +0800 |
---|---|---|
committer | arved <arved@FreeBSD.org> | 2004-01-19 22:33:28 +0800 |
commit | 28ea4bd7f0ef87a8a997b15d8d824a331564f5a4 (patch) | |
tree | f88d759f2ee611038aac711baa7bd26ba5d67f1a | |
parent | 707c1563e6f7879c1e5e7c77968098e21baebf54 (diff) | |
download | freebsd-ports-gnome-28ea4bd7f0ef87a8a997b15d8d824a331564f5a4.tar.gz freebsd-ports-gnome-28ea4bd7f0ef87a8a997b15d8d824a331564f5a4.tar.zst freebsd-ports-gnome-28ea4bd7f0ef87a8a997b15d8d824a331564f5a4.zip |
Update to 1.2.6
PR: 61225
Submitted by: Conor McDermottroe <mcdermc@tcd.ie>
-rw-r--r-- | java/jlex/Makefile | 22 | ||||
-rw-r--r-- | java/jlex/distinfo | 2 | ||||
-rw-r--r-- | java/jlex/pkg-message | 4 | ||||
-rw-r--r-- | java/jlex/pkg-plist | 22 |
4 files changed, 13 insertions, 37 deletions
diff --git a/java/jlex/Makefile b/java/jlex/Makefile index 9663108a14f3..bb58bf40a154 100644 --- a/java/jlex/Makefile +++ b/java/jlex/Makefile @@ -6,9 +6,9 @@ # PORTNAME= jlex -PORTVERSION= 1.2.3 +PORTVERSION= 1.2.6 CATEGORIES= java -MASTER_SITES= http://www.cs.princeton.edu/~appel/modern/java/JLex/Archive/1.2.3/ +MASTER_SITES= http://www.cs.princeton.edu/~appel/modern/java/JLex/Archive/1.2.6/ DISTNAME= Main EXTRACT_SUFX= .java EXTRACT_ONLY= # @@ -16,14 +16,11 @@ EXTRACT_ONLY= # MAINTAINER= ports@FreeBSD.org COMMENT= A lexical analyzer generator, written for Java, in Java -BUILD_DEPENDS= ${LOCALBASE}/${JAVADIR}/bin/java:${PORTSDIR}/java/jdk11 - -JAVADIR= jdk1.1.8 -JAVAC= ${LOCALBASE}/${JAVADIR}/bin/javac - +USE_JAVA= 1.1+ +NEED_JAVAC= yes NO_WRKSUBDIR= yes -PLIST_SUB= JAVADIR=${JAVADIR} +PLIST_SUB= JAVAJARDIR=${JAVAJARDIR:S|^${PREFIX}/||} do-extract: @${RM} -rf ${WRKDIR} @@ -31,13 +28,14 @@ do-extract: @${CP} ${DISTDIR}/Main.java ${WRKDIR} do-build: - @${JAVAC} ${WRKDIR}/Main.java + @cd ${WRKDIR} && \ + ${JAVAC} -d . Main.java && \ + ${JAR} cf ${PORTNAME}.jar JLex/*.class do-install: - @${MKDIR} ${PREFIX}/${JAVADIR}/jlex - @${INSTALL_SCRIPT} ${WRKDIR}/*.class ${PREFIX}/${JAVADIR}/jlex + @${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.jar ${JAVAJARDIR} post-install: - @${CAT} ${PKGMESSAGE} | ${SED} -e s:/usr/local:${PREFIX}: -e s:jdk1.1.8:${JAVADIR}: + @${SED} s:JAVAJARDIR:${JAVAJARDIR}: < ${PKGMESSAGE} .include <bsd.port.mk> diff --git a/java/jlex/distinfo b/java/jlex/distinfo index 9c1183c7cf60..ec4ba68973d9 100644 --- a/java/jlex/distinfo +++ b/java/jlex/distinfo @@ -1 +1 @@ -MD5 (Main.java) = 2845da1175e06a50fca26f62840caaa8 +MD5 (Main.java) = fe0cff5db3e2f0f5d67a153cf6c783af diff --git a/java/jlex/pkg-message b/java/jlex/pkg-message index d24f12b63bd6..81856d141897 100644 --- a/java/jlex/pkg-message +++ b/java/jlex/pkg-message @@ -1,4 +1,2 @@ - -JLex is installed into /usr/local/jdk1.1.8/jlex. +JLex is installed into JAVAJARDIR. See http://www.cs.princeton.edu/~appel/modern/java/JLex. - diff --git a/java/jlex/pkg-plist b/java/jlex/pkg-plist index 102404f707fb..273e22eb4abe 100644 --- a/java/jlex/pkg-plist +++ b/java/jlex/pkg-plist @@ -1,21 +1 @@ -%%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 +%%JAVAJARDIR%%/jlex.jar |