From 8b32fdb1c9729aa75875c6960032278df5629d5b Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 22 Jun 2012 01:37:10 -0400 Subject: dev-java/hdf-java-2.8: fix hdfview script (quotes and sh-bang) Add a sh-bang to the beginning of the script, because the user may not be using a POSIX shell. Remove redundant, escaped quotes around the java.library.path command substitution. With the quotes, the process uses a garbled Java path, and you see errors like: java.lang.UnsatisfiedLinkError: no jhdf5 in java.library.path --- dev-java/hdf-java/hdf-java-2.8.ebuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dev-java') diff --git a/dev-java/hdf-java/hdf-java-2.8.ebuild b/dev-java/hdf-java/hdf-java-2.8.ebuild index e81ff3a65..98c9248f2 100644 --- a/dev-java/hdf-java/hdf-java-2.8.ebuild +++ b/dev-java/hdf-java/hdf-java-2.8.ebuild @@ -100,10 +100,11 @@ src_install() { java-pkg_dojar lib/ext/fitsobj.jar java-pkg_dojar lib/jhdfview.jar cat <<-EOF > hdfview + #!/bin/sh export CLASSPATH=\$(java-config --classpath hdf-java) \$(java-config --java) \ -Xmx1000m \ - -Djava.library.path=\"\$(java-config --library hdf-java)\" \ + -Djava.library.path=\$(java-config --library hdf-java) \ ncsa.hdf.view.HDFView \ -root "${EROOT}" \$* EOF -- cgit v1.2.3-65-gdbad