freebsd-ports/converters/py-zfec/Makefile
Marcus von Appen dae43d7a6d - Convert ports from cad/, chinese/, comms/ and converters/ to new
USES=python

Approved by:	portmgr (implicit)
2014-10-19 07:50:53 +00:00

42 lines
960 B
Makefile

# 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
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
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>