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