freebsd-ports/devel/py-olefile/Makefile
2014-12-02 17:56:09 +00:00

28 lines
687 B
Makefile

# Created by: Antoine Brodin <antoine@FreeBSD.org>
# $FreeBSD$
PORTNAME= olefile
PORTVERSION= 0.41
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= antoine@FreeBSD.org
COMMENT= Python module to read MS OLE2 files
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/olefile/LICENSE.txt
USES= dos2unix python zip
USE_PYTHON= distutils autoplist
.include <bsd.port.pre.mk>
# Remove files not python 3 ready and allow compile again
post-patch:
.if ${PYTHON_REL} >= 300
${RM} ${WRKSRC}/olefile/olefile2.py ${WRKSRC}/olefile/test_open_string.py
.endif
${REINPLACE_CMD} "/install' in sys.argv:/,+1d" ${WRKSRC}/setup.py
.include <bsd.port.post.mk>