summaryrefslogtreecommitdiffstats
path: root/java/javavmwrapper
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2004-04-01 13:40:14 +0000
committerdes <des@FreeBSD.org>2004-04-01 13:40:14 +0000
commitff2c05693db64185aba0417703387571c6e34ad1 (patch)
treed23c4952f1f774b30c335f6ffcc6b230630460e4 /java/javavmwrapper
parent81970aa0322618808b3ba45d421206443b53ab84 (diff)
downloadFreeBSD-ports-ff2c05693db64185aba0417703387571c6e34ad1.zip
FreeBSD-ports-ff2c05693db64185aba0417703387571c6e34ad1.tar.gz
Add a classpath script.
Diffstat (limited to 'java/javavmwrapper')
-rw-r--r--java/javavmwrapper/Makefile14
-rw-r--r--java/javavmwrapper/pkg-plist1
-rw-r--r--java/javavmwrapper/src/classpath.sh11
3 files changed, 23 insertions, 3 deletions
diff --git a/java/javavmwrapper/Makefile b/java/javavmwrapper/Makefile
index a308a9c..32bb8dc 100644
--- a/java/javavmwrapper/Makefile
+++ b/java/javavmwrapper/Makefile
@@ -8,7 +8,7 @@
#
PORTNAME= javavmwrapper
-PORTVERSION= 1.4
+PORTVERSION= 1.5
CATEGORIES= java
MASTER_SITES= # none
DISTFILES= # none
@@ -20,15 +20,23 @@ NO_BUILD= yes
NO_WRKSUBDIR= yes
SRC= ${.CURDIR}/src
+SCRIPTS= classpath javavmwrapper
+# This is normally defined by bsd.java.mk when USE_JAVA is defined, but
+# we can't do that here since it would result in a circular dependency
+JAVAJARDIR= ${PREFIX}/share/java/classes
do-fetch:
@${DO_NADA}
do-configure:
- ${SED} 's|%%PREFIX%%|${PREFIX}|' \
- < ${SRC}/javavmwrapper.sh > ${WRKDIR}/javavmwrapper.sh
+.for _script in ${SCRIPTS}
+ ${SED} -e 's|%%PREFIX%%|${PREFIX}|;' \
+ -e 's|%%JAVAJARDIR%%|${JAVAJARDIR}|;' \
+ <${SRC}/${_script}.sh >${WRKDIR}/${_script}.sh
+.endfor
do-install:
+ ${INSTALL_SCRIPT} ${WRKDIR}/classpath.sh ${PREFIX}/bin/classpath
${INSTALL_SCRIPT} ${WRKDIR}/javavmwrapper.sh ${PREFIX}/bin/javavm
${LN} -sf ${PREFIX}/bin/javavm ${PREFIX}/bin/registervm
${LN} -sf ${PREFIX}/bin/javavm ${PREFIX}/bin/unregistervm
diff --git a/java/javavmwrapper/pkg-plist b/java/javavmwrapper/pkg-plist
index 00e0e07..dfb0744 100644
--- a/java/javavmwrapper/pkg-plist
+++ b/java/javavmwrapper/pkg-plist
@@ -1,3 +1,4 @@
+bin/classpath
bin/javavm
bin/registervm
bin/unregistervm
diff --git a/java/javavmwrapper/src/classpath.sh b/java/javavmwrapper/src/classpath.sh
new file mode 100644
index 0000000..04d714c
--- /dev/null
+++ b/java/javavmwrapper/src/classpath.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+JAVAJARDIR=%%JAVAJARDIR%%
+
+echo -n .
+find -s ${JAVAJARDIR} -name '*.jar' | while read jar ; do
+ echo -n ":${jar}"
+done
OpenPOWER on IntegriCloud