diff --git a/converters/py-rencode/Makefile b/converters/py-rencode/Makefile index 04ca240188c8..88c8f5e04e07 100644 --- a/converters/py-rencode/Makefile +++ b/converters/py-rencode/Makefile @@ -1,31 +1,32 @@ PORTNAME= rencode PORTVERSION= 1.0.8 +PORTREVISION= 1 DISTVERSIONPREFIX= v CATEGORIES= converters devel python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= python@FreeBSD.org COMMENT= Web safe object pickling/unpickling WWW= https://github.com/aresch/rencode LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>=0:devel/py-poetry-core@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} USES= cpe python USE_PYTHON= autoplist cython pep517 pytest CPE_VENDOR= rencode_project USE_GITHUB= yes GH_ACCOUNT= aresch post-patch: @${MV} ${WRKSRC}/build.py ${WRKSRC}/_build.py post-install: ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} + .include diff --git a/converters/py-rencode/files/patch-build.py b/converters/py-rencode/files/patch-build.py new file mode 100644 index 000000000000..0a5bc1187c46 --- /dev/null +++ b/converters/py-rencode/files/patch-build.py @@ -0,0 +1,18 @@ +--- build.py.orig 2025-07-30 20:26:01 UTC ++++ build.py +@@ -11,7 +11,6 @@ from setuptools.command.build_ext import build_ext + from setuptools.command.build_ext import build_ext + + +-COMPILE_ARGS = ["-march=native", "-O3", "-msse", "-msse2", "-mfma", "-mfpmath=sse"] + LINK_ARGS: list[str] = [] + INCLUDE_DIRS: list[str] = [] + LIBRARIES: list[str] = [] +@@ -22,7 +21,6 @@ def build() -> None: + Extension( + "*", + ["rencode/*.pyx"], +- extra_compile_args=COMPILE_ARGS, + extra_link_args=LINK_ARGS, + include_dirs=INCLUDE_DIRS, + libraries=LIBRARIES,