freebsd-ports/java/jode/files/patch-bin-jode
Mikhail Teterin 9851c6325c Either linimon@ in 2011 or hq@ in 2006 broke the wrapper-script -- the
%%JAVA_VERSION%% inserted into it was never expanded...

Now that we aren't using JDK-1.{3,4} anyway, the setting of JAVA_VERSION
is, probably, redundant. Remove it and bump PORTREVISION.

While here, declare the port as unsafe for parallel building. Unfortunately.
2012-06-12 20:00:27 +00:00

17 lines
504 B
Text

--- bin/jode.in Mon Oct 2 09:08:36 2000
+++ bin/jode.in Tue Jun 24 16:13:17 2003
@@ -1,4 +1,3 @@
#!@SHELL@
-prefix=@prefix@
case $1 in
@@ -9,6 +8,6 @@
esac
+# This will only set CP if CLASSPATH is non-empty:
+CP=`echo $CLASSPATH | sed -e 's/:/,/g' -e 's/..*/--classpath &/'`
-CP=`echo $CLASSPATH | sed s/:/,/`
-CLASSPATH=@datadir@/jode-@VERSION@.jar:@CLASSPATH@ \
-@JAVA@ $CLAZZ --classpath $CP $*
+exec @prefix@/bin/java -cp @datadir@/jode-@VERSION@.jar:@datadir@/getopt.jar $CLAZZ $CP "$@"