freebsd-ports/converters/py-zfec/Makefile

43 lines
960 B
Makefile
Raw Normal View History

# Created by: Kevin Lo <kevlo@FreeBSD.org>
# $FreeBSD$
PORTNAME= zfec
PORTVERSION= 1.4.24
PORTREVISION= 1
CATEGORIES= converters python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= kevlo@FreeBSD.org
COMMENT= Fast erasure codec for Python
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING.GPL
BUILD_DEPENDS= darcsver:${PORTSDIR}/devel/py-darcsver \
unsort:${PORTSDIR}/devel/py-pyutil
RUN_DEPENDS:= ${BUILD_DEPENDS}
USES= python
USE_PYTHON= distutils autoplist
2012-03-05 04:14:52 +01:00
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
2012-03-05 04:14:52 +01:00
post-patch:
@${REINPLACE_CMD} -e 's|share/doc|${DOCSDIR}|g ; \
s#(doc_loc, data_fnames)##g' ${WRKSRC}/setup.py
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for DOC in COPYING.GPL COPYING.TGPPL.html README.rst TODO changelog
${INSTALL_DATA} ${WRKSRC}/${DOC} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>