aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorhq <hq@FreeBSD.org>2005-02-03 10:14:53 +0800
committerhq <hq@FreeBSD.org>2005-02-03 10:14:53 +0800
commit06628fa9f8cd99b674777dbd52044fe681b2be1d (patch)
treeb54e243157eb0f4b1675b09e3cbef8a776cb2995 /java
parent58f50d8f3f4fc47f15bbe058ac94f27219276132 (diff)
downloadfreebsd-ports-gnome-06628fa9f8cd99b674777dbd52044fe681b2be1d.tar.gz
freebsd-ports-gnome-06628fa9f8cd99b674777dbd52044fe681b2be1d.tar.zst
freebsd-ports-gnome-06628fa9f8cd99b674777dbd52044fe681b2be1d.zip
- Update to bsd.java.mk 2.0
- Add a new launcher shell script: 'jlex' - Update pkg-message accordingly and bump PORTREVISION
Diffstat (limited to 'java')
-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.