mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-30 10:38:37 +00:00
- Update to bsd.java.mk 2.0
- Install in DATADIR=${JAVASHAREDIR}/${PORTNAME} - Improve launcher shell script (switch to javavmwrapper 2.0) - Improve the dynamic plist - CP -> INSTALL_DATA - Bump PORTREVISION
This commit is contained in:
parent
5435227d9b
commit
95febccb9d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=127997
@ -7,35 +7,38 @@
|
||||
|
||||
PORTNAME= danamics
|
||||
PORTVERSION= 1.1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= net java
|
||||
MASTER_SITES= ftp://ftp.cs.uct.ac.za/pub/FreeBSD/distfiles-local/
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Petri Net editor for correctness and performance analysis
|
||||
|
||||
USE_JAVA= 1.1+
|
||||
RUN_DEPENDS= java:${PORTSDIR}/java/javavmwrapper
|
||||
|
||||
USE_JAVA= yes
|
||||
NO_BUILD= yes
|
||||
|
||||
WRKSRC= ${WRKDIR}/DaNAMiCS
|
||||
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
|
||||
DATAFILES= DaNAMiCS DaNAMiCS.jar INSTALL dnamaca.opt
|
||||
|
||||
SUB_FILES= danamics.sh
|
||||
PLIST_FILES= bin/danamics
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
PLIST= ${WRKDIR}/plist
|
||||
|
||||
pre-install:
|
||||
cd ${WRKSRC}; ${FIND} . -type f \
|
||||
| ${SORT} | ${SED} -e 's|^\.|danamics|' >${PLIST}
|
||||
cd ${WRKSRC}; ${FIND} . -type d \
|
||||
| ${SORT} -r | ${SED} -e 's|^\.|@dirrm danamics|' >>${PLIST}
|
||||
${ECHO} bin/danamics >>${PLIST}
|
||||
post-install:
|
||||
@cd ${WRKSRC}; ${FIND} -s ${DATAFILES} -type f \
|
||||
| ${SED} -e 's|^|${DATADIR:S,^${PREFIX}/,,}/|' >>${TMPPLIST}
|
||||
@cd ${WRKSRC}; ${FIND} -s -d ${DATAFILES} -type d \
|
||||
| ${SED} -e 's|^|@dirrm ${DATADIR:S,^${PREFIX}/,,}/|' >>${TMPPLIST}
|
||||
@${ECHO_CMD} '@dirrm ${DATADIR:S,^${PREFIX}/,,}' >>${TMPPLIST}
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${PREFIX}/danamics
|
||||
${CP} -R ${WRKSRC}/* ${PREFIX}/danamics
|
||||
|
||||
${SED} \
|
||||
-e s,%%PREFIX%%,${PREFIX},g \
|
||||
< ${FILESDIR}/danamics.sh > ${PREFIX}/bin/danamics; \
|
||||
${CHMOD} a+x ${PREFIX}/bin/danamics
|
||||
cd ${WRKSRC} \
|
||||
&& ${FIND} -s ${DATAFILES} -type d -exec ${MKDIR} ${DATADIR}/{} \; \
|
||||
&& ${FIND} -s ${DATAFILES} -type f -exec ${INSTALL_DATA} {} ${DATADIR}/{} \;
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/danamics.sh ${PREFIX}/bin/danamics
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -1,3 +0,0 @@
|
||||
#!/bin/sh
|
||||
cd %%PREFIX%%/danamics
|
||||
exec javavm -classpath DaNAMiCS.jar:swing.jar:$CLASSPATH DaNAMiCS.DFrame
|
6
net/danamics/files/danamics.sh.in
Normal file
6
net/danamics/files/danamics.sh.in
Normal file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
|
||||
(cd "%%DATADIR%%" && \
|
||||
"%%LOCALBASE%%/bin/java" -classpath "DaNAMiCS.jar:${CLASSPATH}" DaNAMiCS.DFrame)
|
Loading…
Reference in New Issue
Block a user