pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/cad/diylc There are two common ways to select the "jav...
details: https://anonhg.NetBSD.org/pkgsrc/rev/cad6b4dbdcf4
branches: trunk
changeset: 428206:cad6b4dbdcf4
user: dsainty <dsainty%pkgsrc.org@localhost>
date: Sun Apr 26 01:05:15 2020 +0000
description:
There are two common ways to select the "java" executable in Pkgsrc.
One is via "${JAVA_BINPREFIX}-java", and one is via
"${PKG_JAVA_HOME}/bin/java".
The "${JAVA_BINPREFIX}-java" way relies on an appropriately named
executable being present in the built-in JRE if you are using the
built-in - something with a "-java" suffix. That just doesn't exist
in either the MacOS Oracle JRE install or the JDK install. So switch
to "${PKG_JAVA_HOME}/bin/java" instead, which works (but does require
careful quoting to allow for spaces under MacOS).
Bump PKGREVISION.
diffstat:
cad/diylc/Makefile | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 6e31ff73fa4f -r cad6b4dbdcf4 cad/diylc/Makefile
--- a/cad/diylc/Makefile Sun Apr 26 00:21:21 2020 +0000
+++ b/cad/diylc/Makefile Sun Apr 26 01:05:15 2020 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.3 2017/09/11 07:51:44 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2020/04/26 01:05:15 dsainty Exp $
DISTNAME= diylc-3.28.0
+PKGREVISION= 1
CATEGORIES= cad java
MASTER_SITES= http://diy-layout-creator.googlecode.com/files/
EXTRACT_SUFX= .zip
@@ -23,7 +24,7 @@
for jar in diylc.jar main.jar *.jar; do \
cp="$${cp}$${cp+:}${PREFIX}/lib/java/diylc/$${jar}"; \
done; \
- ${ECHO} "#!${SH}"; ${ECHO} "exec ${JAVA_BINPREFIX}-java -Xms512m -Xmx2048m -Dorg.diylc.scriptRun=true -cp \"$${cp}\" org.diylc.DIYLCStarter \"\$$@\"" \
+ ${ECHO} "#!${SH}"; ${ECHO} "exec "${PKG_JAVA_HOME:Q:Q}"/bin/java -Xms512m -Xmx2048m -Dorg.diylc.scriptRun=true -cp \"$${cp}\" org.diylc.DIYLCStarter \"\$$@\"" \
) > ${WRKSRC}/diylc.sh
do-install:
Home |
Main Index |
Thread Index |
Old Index