1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

- Add NO_ARCH

- Switch to options helpers
- Don't install empty doc dirs

Approved by:	portmgr blanket
This commit is contained in:
Dmitry Marakasov 2015-09-11 19:51:55 +00:00
parent 249a2629dd
commit 455052a831
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=396712

View File

@ -20,6 +20,7 @@ PORTSCOUT= limit:^3\.
USES= tar:tgz
USE_JAVA= yes
NO_BUILD= yes
NO_ARCH= yes
JAVA_VERSION= 1.6+
OPTIONS_DEFINE= CONTRIB DOCS EXAMPLES
@ -28,8 +29,6 @@ OPTIONS_DEFAULT= CONTRIB
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}-core-${PORTVERSION}.jar
.include <bsd.port.options.mk>
CONTRIBS= benchmark \
demo \
facet \
@ -55,11 +54,9 @@ EXTRA_CONTRIBS_DIRS= kuromoji \
smartcn \
stempel
.if ${PORT_OPTIONS:MCONTRIB}
.for f in ${EXTRA_CONTRIBS_BASE} ${CONTRIBS} ${EXTRA_CONTRIBS_DIRS}
PLIST_FILES+=%%JAVAJARDIR%%/${PORTNAME}-${f}-${PORTVERSION}.jar
CONTRIB_PLIST_FILES+= %%JAVAJARDIR%%/${PORTNAME}-${f}-${PORTVERSION}.jar
.endfor
.endif
PORTDOCS= *
PORTEXAMPLES= *
@ -68,24 +65,27 @@ DEMODIR= contrib/demo
do-install:
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-core-${PORTVERSION}.jar ${STAGEDIR}${JAVAJARDIR}
.if ${PORT_OPTIONS:MCONTRIB}
. for f in ${CONTRIBS}
do-install-CONTRIB-on:
.for f in ${CONTRIBS}
${INSTALL_DATA} ${WRKSRC}/contrib/${f}/${PORTNAME}-${f}-${PORTVERSION}.jar ${STAGEDIR}${JAVAJARDIR}
. endfor
. for d in ${EXTRA_CONTRIBS_DIRS}
.endfor
.for d in ${EXTRA_CONTRIBS_DIRS}
${INSTALL_DATA} ${WRKSRC}/contrib/${EXTRA_CONTRIBS_BASE}/${d}/${PORTNAME}-${d}-${PORTVERSION}.jar \
${STAGEDIR}${JAVAJARDIR}
. endfor
.endfor
${INSTALL_DATA} \
${WRKSRC}/contrib/${EXTRA_CONTRIBS_BASE}/common/${PORTNAME}-${EXTRA_CONTRIBS_BASE}-${PORTVERSION}.jar \
${STAGEDIR}${JAVAJARDIR}
.endif
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in CHANGES.txt LICENSE.txt NOTICE.txt README.txt
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR})
(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR} "-not -empty")
do-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC}/${DEMODIR} && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR})