- Fix build

Submitted by:	maintainer via private mail
Reported by:	pointyhat
This commit is contained in:
Martin Wilke 2009-09-14 07:51:04 +00:00
parent fa576e02c7
commit 0836164848
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=241369

View file

@ -7,6 +7,7 @@
PORTNAME= commons-math
PORTVERSION= 2.0
PORTREVISION= 1
CATEGORIES= math java
MASTER_SITES= ${MASTER_SITE_APACHE_COMMONS_SOURCE}
MASTER_SITE_SUBDIR= ${PORTNAME:S,commons-,,}
@ -17,6 +18,7 @@ MAINTAINER= wenheping@gmail.com
COMMENT= Java library of self-contained mathematics and statistics components
BUILD_DEPENDS= ${JAVAJARDIR}/commons-logging.jar:${PORTSDIR}/java/jakarta-commons-logging \
${JAVAJARDIR}/junit.jar:${PORTSDIR}/java/junit \
${JAVAJARDIR}/commons-discovery.jar:${PORTSDIR}/java/jakarta-commons-discovery
RUN_DEPENDS= ${JAVAJARDIR}/commons-logging.jar:${PORTSDIR}/java/jakarta-commons-logging \
${JAVAJARDIR}/commons-discovery.jar:${PORTSDIR}/java/jakarta-commons-discovery
@ -56,6 +58,12 @@ JDK_API!= (${FIND} -s ${LOCALBASE}/share/doc/jdk1.? -maxdepth 1 -name api -type
MAKE_ARGS+= -Djdk.api=${JDK_API}
.endif
post-patch:
${REINPLACE_CMD} -e 's#4.4##g' \
-e 's#junit-#junit#g' \
-e 's#/usr/share/junit#${JAVAJARDIR}#g' \
${WRKSRC}/build.xml
do-install:
@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${DESTJARFILE}..."
@${MKDIR} ${JAVAJARDIR}