aboutsummaryrefslogtreecommitdiff
path: root/java/jlex
diff options
context:
space:
mode:
authorHerve Quiroz <hq@FreeBSD.org>2005-02-03 02:14:53 +0000
committerHerve Quiroz <hq@FreeBSD.org>2005-02-03 02:14:53 +0000
commit3e69e5a6b7eb03491cf124906e54311e5f28a523 (patch)
tree59b37608d778db8d9f1d3a085befae33a8107080 /java/jlex
parent9729dd908e319e4098882127711a2511ac5ffdb9 (diff)
downloadports-3e69e5a6b7eb03491cf124906e54311e5f28a523.tar.gz
ports-3e69e5a6b7eb03491cf124906e54311e5f28a523.zip
Notes
Diffstat (limited to 'java/jlex')
-rw-r--r--java/jlex/Makefile8
-rw-r--r--java/jlex/files/jlex.sh.in5
-rw-r--r--java/jlex/pkg-message3
3 files changed, 13 insertions, 3 deletions
diff --git a/java/jlex/Makefile b/java/jlex/Makefile
index 5c0ea4f57014..785918200602 100644
--- a/java/jlex/Makefile
+++ b/java/jlex/Makefile
@@ -7,6 +7,7 @@
PORTNAME= jlex
PORTVERSION= 1.2.6
+PORTREVISION= 1
CATEGORIES= java devel
MASTER_SITES= http://www.cs.princeton.edu/~appel/modern/java/JLex/Archive/1.2.6/
DISTNAME= Main
@@ -16,12 +17,12 @@ EXTRACT_ONLY= #
MAINTAINER= ports@FreeBSD.org
COMMENT= A lexical analyzer generator, written for Java, in Java
-PLIST_FILES= %%JAVAJARDIR%%/jlex.jar
-USE_JAVA= 1.1+
-NEED_JAVAC= yes
+PLIST_FILES= %%JAVAJARDIR%%/jlex.jar bin/jlex
+USE_JAVA= yes
NO_WRKSUBDIR= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
+SUB_FILES= jlex.sh
do-extract:
@${RM} -rf ${WRKDIR}
@@ -35,6 +36,7 @@ do-build:
do-install:
@${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.jar ${JAVAJARDIR}
+ @${INSTALL_SCRIPT} ${WRKDIR}/jlex.sh ${PREFIX}/bin/jlex
@${SED} s:%%JAVAJARDIR%%:${JAVAJARDIR}: < ${PKGDIR}/pkg-message \
> ${PKGMESSAGE}
diff --git a/java/jlex/files/jlex.sh.in b/java/jlex/files/jlex.sh.in
new file mode 100644
index 000000000000..52fd9651f93b
--- /dev/null
+++ b/java/jlex/files/jlex.sh.in
@@ -0,0 +1,5 @@
+#!/bin/sh
+#
+# $FreeBSD$
+
+"%%LOCALBASE%%/bin/java" -cp "%%JAVAJARDIR%%/jlex.jar" JLex.Main "$@"
diff --git a/java/jlex/pkg-message b/java/jlex/pkg-message
index 02a60b2089f5..4f883c6413e3 100644
--- a/java/jlex/pkg-message
+++ b/java/jlex/pkg-message
@@ -1,2 +1,5 @@
JLex is installed into %%JAVAJARDIR%%.
+
+Run with 'jlex'
+
See http://www.cs.princeton.edu/~appel/modern/java/JLex.