aboutsummaryrefslogtreecommitdiff
path: root/math/py-pyreadr/Makefile
blob: 8445f7295db68ecdd63eba6e38c4e93aa26f1249 (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: Po-Chuan Hsieh <sunpoet@FreeBSD.org>

PORTNAME=	pyreadr
PORTVERSION=	0.4.2
CATEGORIES=	math python
MASTER_SITES=	CHEESESHOP
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Read/write R RData and Rds files into/from pandas data frames

LICENSE=	AGPLv3+

LIB_DEPENDS=	librdata.so:math/librdata
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pandas>=0.24.0:math/py-pandas@${PY_FLAVOR}

USES=		localbase python
USE_PYTHON=	autoplist concurrent cython distutils

post-patch:
# Clean up bundled libraries
	@${RM} -fr ${WRKSRC}/pyreadr/libs/
	@${RM} -fr ${WRKSRC}/win_libs/

post-install:
	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +

.include <bsd.port.mk>