Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Feb 2019 10:21:20 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r492843 - in head/science/jmol: . files
Message-ID:  <201902131021.x1DALKo8004174@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Wed Feb 13 10:21:20 2019
New Revision: 492843
URL: https://svnweb.freebsd.org/changeset/ports/492843

Log:
  science/jmol: Add the executable jmoldata for headless operation

Added:
  head/science/jmol/files/jmoldata.in   (contents, props changed)
Modified:
  head/science/jmol/Makefile

Modified: head/science/jmol/Makefile
==============================================================================
--- head/science/jmol/Makefile	Wed Feb 13 10:18:57 2019	(r492842)
+++ head/science/jmol/Makefile	Wed Feb 13 10:21:20 2019	(r492843)
@@ -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

Added: head/science/jmol/files/jmoldata.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/jmol/files/jmoldata.in	Wed Feb 13 10:21:20 2019	(r492843)
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec %%JAVA%% -Djmol.home="%%JAVAJARDIR%%" -jar "%%JAVAJARDIR%%/JmolData.jar" "$@"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201902131021.x1DALKo8004174>