1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-14 07:43:06 +00:00
freebsd-ports/math/py-pyreadr/Makefile
Po-Chuan Hsieh 3482259da6
math/py-pyreadr: Add py-pyreadr 0.4.2
pyreadr is a python package to read and write R RData and Rds files into/from
pandas dataframes. It does not need to have R or other external dependencies
installed.

WWW: https://github.com/ofajardo/pyreadr
2021-07-15 00:09:35 +08:00

29 lines
728 B
Makefile

# 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:
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/pyreadr/librdata${PYTHON_EXT_SUFFIX}.so
.include <bsd.port.mk>