blob: ae00d5d8b19361307520a6dcaebba4dc85d4ef23 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Created by: Kevin Lo <kevlo@FreeBSD.org>
# $FreeBSD$
PORTNAME= zfec
PORTVERSION= 1.4.24
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}
USE_PYTHON= yes
USE_PYDISTUTILS= easy_install
PYDISTUTILS_NOEGGINFO= yes
PYEASYINSTALL_ARCHDEP= yes
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
.include <bsd.port.pre.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.post.mk>
|