utilize USE_ANT
This commit is contained in:
parent
e35efe7cdf
commit
ee872fe9c2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=117816
1 changed files with 1 additions and 8 deletions
|
@ -16,24 +16,17 @@ EXTRACT_SUFX= -src.zip
|
|||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Plan projects using a Gantt chart
|
||||
|
||||
BUILD_DEPENDS= ${ANT_CMD}:${PORTSDIR}/devel/apache-ant
|
||||
|
||||
USE_ZIP= yes
|
||||
USE_JAVA= yes
|
||||
JAVA_VERSION= 1.4+
|
||||
JAVA_BUILD= yes
|
||||
USE_ANT= yes
|
||||
JAVA_RUN= yes
|
||||
ANT_CMD?= ${LOCALBASE}/bin/ant
|
||||
ANT= ${SETENV} JAVA_HOME=${JAVA_HOME} ${ANT_CMD}
|
||||
|
||||
PLIST_FILES= bin/ganttproject %%JAVAJARDIR%%/ganttproject.jar
|
||||
|
||||
post-patch:
|
||||
@${SED} 's,%%JAVAJARDIR%%,${JAVAJARDIR},' ${FILESDIR}/${PORTNAME} > ${WRKSRC}/${PORTNAME}
|
||||
|
||||
do-build:
|
||||
@cd ${WRKSRC} && ${ANT}
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/build/${PORTNAME}-${PORTVERSION}.jar ${JAVAJARDIR}/${PORTNAME}.jar
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
|
||||
|
|
Loading…
Reference in a new issue