- Add NO_ARCH

- Switch to options helpers
- Unsilence installation
This commit is contained in:
Dmitry Marakasov 2015-12-10 21:29:07 +00:00
parent be7a67b353
commit 21eca32849
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=403471

View file

@ -14,23 +14,20 @@ RUN_DEPENDS= ${PYTHON_SITELIBDIR}/kjbuckets.so:${PORTSDIR}/devel/py-kjbuckets
USES= python:2
USE_PYTHON= distutils autoplist
NO_ARCH= yes
OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.options.mk>
post-install:
.if ${PORT_OPTIONS:MDOCS}
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/COPYRIGHT.txt ${STAGEDIR}${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/CHANGES.txt ${STAGEDIR}${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/doc/*.txt ${STAGEDIR}${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/doc/build_html.py ${STAGEDIR}${DOCSDIR}
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
${INSTALL_DATA} ${WRKSRC}/COPYRIGHT.txt ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/CHANGES.txt ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/*.txt ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/build_html.py ${STAGEDIR}${DOCSDIR}
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/kjParsing
@${INSTALL_DATA} ${WRKSRC}/doc/demo/kjParsing/*.py \
${INSTALL_DATA} ${WRKSRC}/doc/demo/kjParsing/*.py \
${STAGEDIR}${EXAMPLESDIR}/kjParsing
.endif
.include <bsd.port.mk>