pkgsrc/devel/javadeps/patches/patch-aa

25 lines
786 B
Text

$NetBSD: patch-aa,v 1.2 2002/10/18 21:10:04 jlam Exp $
--- jdeps.orig Sun May 17 00:49:57 1998
+++ jdeps
@@ -5,12 +5,15 @@
# use *forward* slashes in the pathnames below (for jarFile and java) -- even
# if you are using win95.
-# Change the value after the equals sign to the full path of the jar file.
-jarFile=jdeps.jar
+# The full path of the jar file.
+jarFile=@PREFIX@/share/jdeps/jdeps.jar
-# Change the value after the equals sign to the full pathname of your java
-# binary, if it is not on your PATH.
-java=java
+# Check if java is in the user's PATH.
+if type java 1>/dev/null 2>&1; then
+ java=java
+else
+ java=@JAVA_HOME@/bin/java
+fi
# For win95, all kinds of weird things happen with make & bash if
# the directory separator is *not* a double-backslash.