utilize USE_ANT

This commit is contained in:
Ying-Chieh Liao 2004-09-01 08:41:19 +00:00
parent e35efe7cdf
commit ee872fe9c2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=117816

View file

@ -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