- 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:
Herve Quiroz 2005-02-03 01:46:28 +00:00
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

View file

@ -17,22 +17,24 @@ EXTRACT_SUFX= .jar
MAINTAINER= ports@FreeBSD.org
COMMENT= A GraphViz .dot file editor
RUN_DEPENDS= java:${PORTSDIR}/java/javavmwrapper
NO_WRKSUBDIR= yes
EXTRACT_CMD= ${CP}
EXTRACT_BEFORE_ARGS= # empty
EXTRACT_AFTER_ARGS= .
NO_BUILD= yes
USE_JAVA= 1.3+
USE_JAVA= yes
JAVA_VERSION= 1.3+
PLIST_FILES= %%JAVAJARDIR%%/${DISTNAME}.jar \
bin/tintfu
post-patch:
@${SED} -e 's,%%JAVAJARDIR%%,${JAVAJARDIR},' \
-e 's,%%DISTNAME%%,${DISTNAME},' ${FILESDIR}/tintfu > ${WRKSRC}/tintfu
SUB_FILES= tintfu.sh
SUB_LIST= DISTNAME=${DISTNAME}
do-install:
${INSTALL_DATA} ${WRKSRC}/${DISTNAME}.jar ${JAVAJARDIR}
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKDIR}/tintfu.sh ${PREFIX}/bin/tintfu
.include <bsd.port.mk>

View file

@ -1,3 +0,0 @@
#!/bin/sh
java -jar %%JAVAJARDIR%%/%%DISTNAME%%.jar

View file

@ -0,0 +1,5 @@
#!/bin/sh
#
# $FreeBSD$
JAVA_VERSION="1.3+" "%%LOCALBASE%%/bin/java" -jar "%%JAVAJARDIR%%/%%DISTNAME%%.jar"