aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorhq <hq@FreeBSD.org>2005-02-03 09:53:24 +0800
committerhq <hq@FreeBSD.org>2005-02-03 09:53:24 +0800
commit5cf9077d7e24eecd385f1cdbb6393ccd6f4baf9e (patch)
tree3b0d54e01d58189e852ff275aa1c970af00b9407 /java
parent0737689c684f5cdb4e7bd9725bb71ccb300d6818 (diff)
downloadfreebsd-ports-gnome-5cf9077d7e24eecd385f1cdbb6393ccd6f4baf9e.tar.gz
freebsd-ports-gnome-5cf9077d7e24eecd385f1cdbb6393ccd6f4baf9e.tar.zst
freebsd-ports-gnome-5cf9077d7e24eecd385f1cdbb6393ccd6f4baf9e.zip
- Update to bsd.java.mk 2.0
- Use JAVAJARDIR - Add a launcher shell script: 'bsh'
Diffstat (limited to 'java')
-rw-r--r--java/bsh/Makefile10
-rw-r--r--java/bsh/files/bsh.sh.in5
2 files changed, 10 insertions, 5 deletions
diff --git a/java/bsh/Makefile b/java/bsh/Makefile
index d28fe2030bac..efe0cb332f70 100644
--- a/java/bsh/Makefile
+++ b/java/bsh/Makefile
@@ -16,14 +16,14 @@ EXTRACT_ONLY=
MAINTAINER= ports@FreeBSD.org
COMMENT= A Java scripting environment
-PLIST_FILES= share/java/classes/bsh.jar
-USE_JAVA= 1.1+
+PLIST_FILES= %%JAVAJARDIR%%/bsh.jar bin/bsh
+USE_JAVA= yes
NO_BUILD= yes
-
-JAVALIBDIR= ${PREFIX}/share/java/classes
+SUB_FILES= bsh.sh
do-install:
${MKDIR} ${JAVALIBDIR}
- ${INSTALL_DATA} ${DISTDIR}/${DISTFILES} ${JAVALIBDIR}/bsh.jar
+ ${INSTALL_DATA} ${DISTDIR}/${DISTFILES} ${JAVAJARDIR}/bsh.jar
+ ${INSTALL_SCRIPT} ${WRKDIR}/bsh.sh ${PREFIX}/bin/bsh
.include <bsd.port.mk>
diff --git a/java/bsh/files/bsh.sh.in b/java/bsh/files/bsh.sh.in
new file mode 100644
index 000000000000..0f882dd9f135
--- /dev/null
+++ b/java/bsh/files/bsh.sh.in
@@ -0,0 +1,5 @@
+#!/bin/sh
+#
+# $FreeBSD$
+
+"%%LOCALBASE%%/bin/java" -jar "%%JAVAJARDIR%%/bsh.jar" "$@"