Skip to content

Commit

Permalink
math/apache-commons-math: Fix DOCS build and PORTDOCS
Browse files Browse the repository at this point in the history
- Mark NO_ARCH
  • Loading branch information
5u623l20 committed Jun 6, 2021
1 parent 3446d84 commit a55c028
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions math/apache-commons-math/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

PORTNAME= commons-math
PORTVERSION= 3.6.1
PORTREVISION= 1
CATEGORIES= math java
MASTER_SITES= APACHE_COMMONS_SOURCE \
http://repo1.maven.org/maven2/junit/junit/4.8.2/:source2
Expand Down Expand Up @@ -32,12 +33,13 @@ PLIST_FILES+= ${JAVAJARDIR}/${DESTJARFILE}

OPTIONS_DEFINE= DOCS

NO_ARCH= yes

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MDOCS}
ALL_TARGET+= javadoc
OTHERDOCS= LICENSE.txt NOTICE.txt
PORTDOCS= apidocs ${OTHERDOCS}
PORTDOCS= LICENSE.txt NOTICE.txt RELEASE-NOTES.txt license-header.txt
.endif

post-extract:
Expand All @@ -49,8 +51,7 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/target/${JARFILE} ${STAGEDIR}${JAVAJARDIR}/${DESTJARFILE}

.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}/apidocs
(cd ${WRKSRC}/target/apidocs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/apidocs/${SDIR})
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/*.txt ${STAGEDIR}${DOCSDIR}/
.endif

Expand Down

0 comments on commit a55c028

Please sign in to comment.