pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/cgoban-java Don't use the java executable direct...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/aa183de124c0
branches:  trunk
changeset: 529111:aa183de124c0
user:      rh <rh%pkgsrc.org@localhost>
date:      Fri May 25 02:41:25 2007 +0000

description:
Don't use the java executable directly in the cgoban-java script.  Use the
corresponding wrapper script instead to make sure environment variables
and limits are set correctly.  Fixes PR pkg/33373 by jfranz at bsdprojects
dot net.
Bump PKGREVISION.

diffstat:

 games/cgoban-java/Makefile |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 33add5e73a44 -r aa183de124c0 games/cgoban-java/Makefile
--- a/games/cgoban-java/Makefile        Fri May 25 02:04:15 2007 +0000
+++ b/games/cgoban-java/Makefile        Fri May 25 02:41:25 2007 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.38 2007/05/04 07:48:50 rh Exp $
+# $NetBSD: Makefile,v 1.39 2007/05/25 02:41:25 rh Exp $
 #
 
 DISTNAME=      cgoban-java-3.3.17
+PKGREVISION=   1
 CATEGORIES=    games java
 MASTER_SITES=  ${MASTER_SITE_LOCAL}
 # Mirrored from http://files.gokgs.com/javaBin/cgoban.jar
@@ -19,7 +20,14 @@
 INSTALLATION_DIRS=     bin lib/java
 
 do-build:
-       printf "#! ${SH}\\nexec ${PKG_JAVA_HOME}/bin/java -jar ${PREFIX}/lib/java/${DISTNAME}.jar \"\$$@\"\\n" > ${WRKSRC}/cgoban-java.sh
+       printf "#! ${SH}\\nexec `${ECHO} '${PKG_JAVA_HOME}'-java |      \
+               ${SED}  -e 's/java/bin/'                                \
+                       -e 's/-6/6/'                                    \
+                       -e 's/-1.5/15/'                                 \
+                       -e 's/-1.4/14/'                                 \
+                       -e 's/-1.3.[0-9]/13/'`                          \
+               -jar ${PREFIX}/lib/java/${DISTNAME}.jar \"\$$@\"\\n"    \
+                       > ${WRKSRC}/cgoban-java.sh
 
 do-install:
        ${INSTALL_SCRIPT} ${WRKSRC}/cgoban-java.sh ${PREFIX}/bin/cgoban-java



Home | Main Index | Thread Index | Old Index