Changeset View
Changeset View
Standalone View
Standalone View
head/converters/py-zfec/Makefile
Show All 19 Lines | |||||
USES= python | USES= python | ||||
USE_PYTHON= distutils autoplist | USE_PYTHON= distutils autoplist | ||||
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} | DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} | ||||
OPTIONS_DEFINE= DOCS | OPTIONS_DEFINE= DOCS | ||||
.include <bsd.port.options.mk> | |||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} -e 's|share/doc|${DOCSDIR}|g ; \ | @${REINPLACE_CMD} -e 's|share/doc|${DOCSDIR}|g ; \ | ||||
s#(doc_loc, data_fnames)##g' ${WRKSRC}/setup.py | s#(doc_loc, data_fnames)##g' ${WRKSRC}/setup.py | ||||
post-install: | post-install-DOCS-on: | ||||
.if ${PORT_OPTIONS:MDOCS} | |||||
@${MKDIR} ${STAGEDIR}${DOCSDIR} | @${MKDIR} ${STAGEDIR}${DOCSDIR} | ||||
.for DOC in COPYING.GPL COPYING.TGPPL.html README.rst TODO changelog | .for DOC in COPYING.GPL COPYING.TGPPL.html README.rst TODO changelog | ||||
${INSTALL_DATA} ${WRKSRC}/${DOC} ${STAGEDIR}${DOCSDIR} | ${INSTALL_DATA} ${WRKSRC}/${DOC} ${STAGEDIR}${DOCSDIR} | ||||
.endfor | .endfor | ||||
.endif | |||||
.include <bsd.port.mk> | .include <bsd.port.mk> |