pkgsrc/devel/javacc/patches/patch-bin_javacc
ryoon ecfa390cb9 Update to 5.0
* Set LICENSE.
* Update HOMEPAGE and MASTER_SITES.
* Set java commands path.

Changelog:
unknown.
2013-06-30 12:31:42 +00:00

16 lines
411 B
Text

$NetBSD: patch-bin_javacc,v 1.1 2013/06/30 12:31:42 ryoon Exp $
--- bin/javacc.orig 2009-08-31 22:27:03.000000000 +0000
+++ bin/javacc
@@ -1,9 +1,9 @@
#!/bin/sh
-JAR="`dirname $0`/lib/javacc.jar"
+JAR="@PREFIX@/lib/java/javacc.jar"
case "`uname`" in
CYGWIN*) JAR="`cygpath --windows -- "$JAR"`" ;;
esac
-java -classpath "$JAR" javacc "$@"
+@PKG_JAVA_HOME@/bin/java -classpath "$JAR" javacc "$@"