summaryrefslogtreecommitdiff
path: root/math/apache-commons-math
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2024-12-27 20:10:41 +0100
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2024-12-31 09:57:55 +0100
commit0835676e361bca74b28b09fe0425ed5ee958f26b (patch)
tree9617744fefea8689073e388ab345f23c6765b4fd /math/apache-commons-math
parentsecurity/libtatsu: Update to 1.0.4 (diff)
Mk/**java.mk: Convert bsd.java.mk to USES
The following features have been added or changed: - Instead of USE_JAVA use USES=java. This defaults to USES=java:build,run if NO_BUILD is undefined. Else it defaults to USES=java:run - Instead of USE_ANT=yes use USES=java:ant which also implies USES=java:build - Instead of JAVA_BUILD=yes use USES=java:build. Does not imply run or extract - Instead of JAVA_EXTRACT=yes use USES=java:extract does not imply build or run - Instead of JAVA_RUN=yes use USES=java:run does not imply extract or build - Instead of USE_JAVA=<version> use USES=java and JAVA_VERSION=<version> Approved by: mat (portmgr), glewis Differential Revision: https://reviews.freebsd.org/D48201
Diffstat (limited to 'math/apache-commons-math')
-rw-r--r--math/apache-commons-math/Makefile16
1 files changed, 5 insertions, 11 deletions
diff --git a/math/apache-commons-math/Makefile b/math/apache-commons-math/Makefile
index efd30987afbf..dd4c1cd8ac5f 100644
--- a/math/apache-commons-math/Makefile
+++ b/math/apache-commons-math/Makefile
@@ -16,8 +16,7 @@ WWW= https://commons.apache.org/proper/commons-math/
LICENSE= APACHE20
-USE_ANT= yes
-USE_JAVA= yes
+USES= java:ant
USE_LOCALE= en_US.ISO8859-1
ALL_TARGET= compile jar
@@ -26,17 +25,13 @@ MAKE_ARGS= -Dlibdir=${WRKDIR} -Dnoget=true
JARFILE= ${PORTNAME:S,3,,}-3.6.jar
DESTJARFILE= ${PORTNAME}.jar
PLIST_FILES+= ${JAVAJARDIR}/${DESTJARFILE}
+PORTDOCS= LICENSE.txt NOTICE.txt RELEASE-NOTES.txt license-header.txt
OPTIONS_DEFINE= DOCS
-NO_ARCH= yes
-
-.include <bsd.port.options.mk>
+DOCS_ALL_TARGET= javadoc
-.if ${PORT_OPTIONS:MDOCS}
-ALL_TARGET+= javadoc
-PORTDOCS= LICENSE.txt NOTICE.txt RELEASE-NOTES.txt license-header.txt
-.endif
+NO_ARCH= yes
post-extract:
${MKDIR} ${WRKSRC}/lib
@@ -46,9 +41,8 @@ do-install:
${MKDIR} ${STAGEDIR}${JAVAJARDIR}
${INSTALL_DATA} ${WRKSRC}/target/${JARFILE} ${STAGEDIR}${JAVAJARDIR}/${DESTJARFILE}
-.if ${PORT_OPTIONS:MDOCS}
+do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/*.txt ${STAGEDIR}${DOCSDIR}/
-.endif
.include <bsd.port.mk>