aboutsummaryrefslogtreecommitdiff
path: root/java/jlex
diff options
context:
space:
mode:
authorTilman Keskinoz <arved@FreeBSD.org>2004-01-19 14:33:28 +0000
committerTilman Keskinoz <arved@FreeBSD.org>2004-01-19 14:33:28 +0000
commitd940a6aeb134740b83cf37bef32d40e17e28ce10 (patch)
tree7b20c166f73ddb576e41ca2c866344b15e996603 /java/jlex
parent6651ddd6e032acfdd4015b733632d5f36313e2f8 (diff)
downloadports-d940a6aeb134740b83cf37bef32d40e17e28ce10.tar.gz
ports-d940a6aeb134740b83cf37bef32d40e17e28ce10.zip
Notes
Diffstat (limited to 'java/jlex')
-rw-r--r--java/jlex/Makefile22
-rw-r--r--java/jlex/distinfo2
-rw-r--r--java/jlex/pkg-message4
-rw-r--r--java/jlex/pkg-plist22
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