diff --git a/math/py-pyreadr/Makefile b/math/py-pyreadr/Makefile index 796a1c87a459..349b3df17dcc 100644 --- a/math/py-pyreadr/Makefile +++ b/math/py-pyreadr/Makefile @@ -1,29 +1,29 @@ PORTNAME= pyreadr -PORTVERSION= 0.5.3 +PORTVERSION= 0.5.4 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 +USE_PYTHON= autoplist concurrent cython3 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 diff --git a/math/py-pyreadr/distinfo b/math/py-pyreadr/distinfo index 03055cb9e037..ab497ade9698 100644 --- a/math/py-pyreadr/distinfo +++ b/math/py-pyreadr/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1742070446 -SHA256 (pyreadr-0.5.3.tar.gz) = 71517866240ed195e7933ed9c47129e738d6f23c3269556f1db4037554ecf455 -SIZE (pyreadr-0.5.3.tar.gz) = 1287391 +TIMESTAMP = 1764510982 +SHA256 (pyreadr-0.5.4.tar.gz) = 05b18cc830dceda3ef3d477bd8e50f072474e177f0cf67b6ad4fb3d7f3de11fd +SIZE (pyreadr-0.5.4.tar.gz) = 1292809 diff --git a/math/py-pyreadr/files/patch-setup.py b/math/py-pyreadr/files/patch-setup.py index 9d4d9a7b11c6..e0fd46217d75 100644 --- a/math/py-pyreadr/files/patch-setup.py +++ b/math/py-pyreadr/files/patch-setup.py @@ -1,24 +1,19 @@ ---- setup.py.orig 2023-08-09 07:13:10 UTC +--- setup.py.orig 2025-11-25 15:31:48 UTC +++ setup.py -@@ -13,12 +13,7 @@ from setuptools import setup, Extension - from Cython.Build import cythonize - import Cython +@@ -42,7 +42,6 @@ librdata_source_files = [] + return False --cyver = int(Cython.__version__.split(".")[0]) --if cyver < 3: -- raise Exception("cython 3.0.0 or newer is required") -- librdata_source_files = [] -librdata_source_files += glob.glob('pyreadr/libs/librdata/src/*.c') librdata_source_files += ['pyreadr/librdata.pyx'] library_dirs = [] -@@ -54,7 +49,7 @@ elif platform.system() == 'Windows': +@@ -78,7 +77,7 @@ elif platform.system() == 'Windows': libraries.append('bz2') libraries.append('lzma') -elif platform.system() == 'Linux': +elif platform.system() == 'FreeBSD': libraries.append('z') libraries.append('bz2') libraries.append('lzma')