aboutsummaryrefslogtreecommitdiff
path: root/devel/py-olefile/Makefile
blob: 3b7db75220f9134900b55f5d8365aa94c80fdfb3 (plain) (blame)
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
# Created by: Antoine Brodin <antoine@FreeBSD.org>
# $FreeBSD$

PORTNAME=	olefile
PORTVERSION=	0.42.1
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
.endif
	${REINPLACE_CMD} "/install' in sys.argv:/,+1d" ${WRKSRC}/setup.py

.include <bsd.port.post.mk>