diff --git a/devel/py-cffi/Makefile b/devel/py-cffi/Makefile index 5ddd9d3187bc..d4872d68a531 100644 --- a/devel/py-cffi/Makefile +++ b/devel/py-cffi/Makefile @@ -1,34 +1,34 @@ PORTNAME= cffi -PORTVERSION= 1.17.1 +PORTVERSION= 2.0.0 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= sunpoet@FreeBSD.org COMMENT= Foreign Function Interface for Python calling C code -WWW= https://cffi.readthedocs.io/en/latest/ \ +WWW= https://cffi.readthedocs.io/en/stable/ \ https://github.com/python-cffi/cffi LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} LIB_DEPENDS= libffi.so:devel/libffi RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pycparser>=0:devel/py-pycparser@${PY_FLAVOR} USES= compiler:c11 localbase python USE_PYTHON= autoplist concurrent cython3 pep517 pytest TEST_ENV= PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} .include .if ${CHOSEN_COMPILER_TYPE} == clang CFLAGS+= -Wno-shift-negative-value .endif post-install: ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} + .include diff --git a/devel/py-cffi/distinfo b/devel/py-cffi/distinfo index 9165041ac52c..d827c4782810 100644 --- a/devel/py-cffi/distinfo +++ b/devel/py-cffi/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1725559689 -SHA256 (cffi-1.17.1.tar.gz) = 1c39c6016c32bc48dd54561950ebd6836e1670f2ae46128f67cf49e789c52824 -SIZE (cffi-1.17.1.tar.gz) = 516621 +TIMESTAMP = 1767157623 +SHA256 (cffi-2.0.0.tar.gz) = 44d1b5909021139fe36001ae048dbdde8214afa20200eda0f64c068cac5d5529 +SIZE (cffi-2.0.0.tar.gz) = 523588 diff --git a/devel/py-cffi/files/patch-pyproject.toml b/devel/py-cffi/files/patch-pyproject.toml index fae4b511f9a7..d764deb2b8f1 100644 --- a/devel/py-cffi/files/patch-pyproject.toml +++ b/devel/py-cffi/files/patch-pyproject.toml @@ -1,10 +1,20 @@ ---- pyproject.toml.orig 2023-09-28 17:43:07 UTC +--- pyproject.toml.orig 2025-09-08 21:59:32 UTC +++ pyproject.toml -@@ -2,6 +2,6 @@ +@@ -2,7 +2,7 @@ requires = [ requires = [ # first version that supports Python 3.12; older versions may work # with previous Python versions, but are not tested - "setuptools >= 66.1" + "setuptools >= 61" ] build-backend = "setuptools.build_meta" + +@@ -16,7 +16,7 @@ readme = {file = "README.md", content-type = "text/mar + + description = "Foreign Function Interface for Python calling C code." + readme = {file = "README.md", content-type = "text/markdown"} +-license = "MIT" ++license = {text = "MIT"} + classifiers = [ + "Programming Language :: Python", + "Programming Language :: Python :: 3",