diff options
Diffstat (limited to 'java')
-rw-r--r-- | java/bsh/Makefile | 10 | ||||
-rw-r--r-- | java/bsh/files/bsh.sh.in | 5 |
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" "$@" |