- Update to bsd.java.mk 2.0
- Enforce a specific version (1.3+) in the launcher shell script - Use SUB_FILES/SUB_LIST to patch the launcher shell script
This commit is contained in:
parent
62e0b98f4e
commit
0356ff91de
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=127941
3 changed files with 12 additions and 8 deletions
|
@ -17,22 +17,24 @@ EXTRACT_SUFX= .jar
|
||||||
MAINTAINER= ports@FreeBSD.org
|
MAINTAINER= ports@FreeBSD.org
|
||||||
COMMENT= A GraphViz .dot file editor
|
COMMENT= A GraphViz .dot file editor
|
||||||
|
|
||||||
|
RUN_DEPENDS= java:${PORTSDIR}/java/javavmwrapper
|
||||||
|
|
||||||
NO_WRKSUBDIR= yes
|
NO_WRKSUBDIR= yes
|
||||||
EXTRACT_CMD= ${CP}
|
EXTRACT_CMD= ${CP}
|
||||||
EXTRACT_BEFORE_ARGS= # empty
|
EXTRACT_BEFORE_ARGS= # empty
|
||||||
EXTRACT_AFTER_ARGS= .
|
EXTRACT_AFTER_ARGS= .
|
||||||
NO_BUILD= yes
|
NO_BUILD= yes
|
||||||
USE_JAVA= 1.3+
|
USE_JAVA= yes
|
||||||
|
JAVA_VERSION= 1.3+
|
||||||
|
|
||||||
PLIST_FILES= %%JAVAJARDIR%%/${DISTNAME}.jar \
|
PLIST_FILES= %%JAVAJARDIR%%/${DISTNAME}.jar \
|
||||||
bin/tintfu
|
bin/tintfu
|
||||||
|
|
||||||
post-patch:
|
SUB_FILES= tintfu.sh
|
||||||
@${SED} -e 's,%%JAVAJARDIR%%,${JAVAJARDIR},' \
|
SUB_LIST= DISTNAME=${DISTNAME}
|
||||||
-e 's,%%DISTNAME%%,${DISTNAME},' ${FILESDIR}/tintfu > ${WRKSRC}/tintfu
|
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
${INSTALL_DATA} ${WRKSRC}/${DISTNAME}.jar ${JAVAJARDIR}
|
${INSTALL_DATA} ${WRKSRC}/${DISTNAME}.jar ${JAVAJARDIR}
|
||||||
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
|
${INSTALL_SCRIPT} ${WRKDIR}/tintfu.sh ${PREFIX}/bin/tintfu
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
java -jar %%JAVAJARDIR%%/%%DISTNAME%%.jar
|
|
5
graphics/tintfu/files/tintfu.sh.in
Normal file
5
graphics/tintfu/files/tintfu.sh.in
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# $FreeBSD$
|
||||||
|
|
||||||
|
JAVA_VERSION="1.3+" "%%LOCALBASE%%/bin/java" -jar "%%JAVAJARDIR%%/%%DISTNAME%%.jar"
|
Loading…
Reference in a new issue