1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/math/py-pyreadr/Makefile

30 lines
849 B
Makefile

PORTNAME= pyreadr
PORTVERSION= 0.5.0
CATEGORIES= math python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Read/write R RData and Rds files into/from pandas data frames
WWW= https://github.com/ofajardo/pyreadr
LICENSE= AGPLv3+
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
LIB_DEPENDS= librdata.so:math/librdata
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pandas>=1.2.0,1:math/py-pandas@${PY_FLAVOR}
USES= localbase python
USE_PYTHON= autoplist concurrent cython pep517
post-patch:
# Clean up bundled libraries
@${RM} -r ${WRKSRC}/pyreadr/libs/
@${RM} -r ${WRKSRC}/win_libs/
post-install:
${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
.include <bsd.port.mk>