science/jmol: Add the executable jmoldata for headless operation

This commit is contained in:
Yuri Victorovich 2019-02-13 10:21:20 +00:00
parent 9f5811e94c
commit 8add977886
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=492843
2 changed files with 12 additions and 5 deletions

View File

@ -3,9 +3,10 @@
PORTNAME= Jmol
DISTVERSION= 14.29.31
PORTREVISION= 1
CATEGORIES= science java
MASTER_SITES= SF/${PORTNAME:tl}/${PORTNAME}/Version%20${DISTVERSION:R}/Jmol%20${DISTVERSION}/:src \
http://jmol.svn.sourceforge.net/viewvc/jmol/trunk/Jmol/selfSignedCertificate/:cert
MASTER_SITES= SF/${PORTNAME:tl}/${PORTNAME}/Version%20${DISTVERSION:R}/${PORTNAME}%20${DISTVERSION}/:src \
http://${PORTNAME:tl}.svn.sourceforge.net/viewvc/${PORTNAME:tl}/trunk/${PORTNAME}/selfSignedCertificate/:cert
DISTFILES= ${PORTNAME}-${DISTVERSION}-full${EXTRACT_SUFX}:src \
selfSignedCertificate.cer:cert \
selfSignedCertificate.store:cert
@ -24,12 +25,13 @@ NO_ARCH= yes
WRKSRC= ${WRKDIR}/${PORTNAME:tl}-${DISTVERSION}
SIGN_DIR= ${WRKSRC}/selfSignedCertificate
SUB_FILES= ${PORTNAME:tl}
SUB_FILES= ${EXES}
SUB_LIST= JAVA=${JAVA}
EXES= ${PORTNAME:tl} ${PORTNAME:tl}data
JARS= ${PORTNAME}.jar ${PORTNAME}Data.jar ${PORTNAME}Lib.jar
PLIST_FILES= bin/${PORTNAME:tl} \
PLIST_FILES= ${EXES:S/^/bin\//} \
${JARS:S/^/${JAVAJARDIR}\//}
OPTIONS_DEFINE= DOCS
@ -47,7 +49,9 @@ post-patch:
@${REINPLACE_CMD} 's|<input message="private property file.*||' ${WRKSRC}/build.xml
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME:tl} ${STAGEDIR}${PREFIX}/bin
.for exe in ${EXES}
${INSTALL_SCRIPT} ${WRKDIR}/${exe} ${STAGEDIR}${PREFIX}/bin
.endfor
.for jar in ${JARS}
${INSTALL_DATA} ${WRKSRC}/build/${jar} ${STAGEDIR}${JAVAJARDIR}
.endfor

View File

@ -0,0 +1,3 @@
#!/bin/sh
exec %%JAVA%% -Djmol.home="%%JAVAJARDIR%%" -jar "%%JAVAJARDIR%%/JmolData.jar" "$@"