git: 39a3bda65e13 - main - devel/py-librt: Update to 0.7.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 09 Dec 2025 11:25:03 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=39a3bda65e13660d7eb2b885a4c55cfd9db29898
commit 39a3bda65e13660d7eb2b885a4c55cfd9db29898
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-12-09 06:39:57 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-12-09 11:21:19 +0000
devel/py-librt: Update to 0.7.0
Changes: https://github.com/python/mypy/commits/master/mypyc/lib-rt
---
devel/py-librt/Makefile | 8 +++++++-
devel/py-librt/distinfo | 6 +++---
devel/py-librt/files/patch-setup.py | 27 +++++++++++++++++++++++++++
3 files changed, 37 insertions(+), 4 deletions(-)
diff --git a/devel/py-librt/Makefile b/devel/py-librt/Makefile
index 148839751aa7..1b219e3e1457 100644
--- a/devel/py-librt/Makefile
+++ b/devel/py-librt/Makefile
@@ -1,5 +1,5 @@
PORTNAME= librt
-PORTVERSION= 0.6.3
+PORTVERSION= 0.7.0
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -14,10 +14,16 @@ 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= libbase64.so:devel/base64
USES= python
USE_PYTHON= autoplist concurrent pep517
+post-patch:
+ @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/setup.py
+# Clean up bundled libraries
+ @${RM} -r ${WRKSRC}/base64/
+
post-install:
${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
diff --git a/devel/py-librt/distinfo b/devel/py-librt/distinfo
index cc52293fdfbc..fcabd634f82c 100644
--- a/devel/py-librt/distinfo
+++ b/devel/py-librt/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1764510868
-SHA256 (librt-0.6.3.tar.gz) = c724a884e642aa2bbad52bb0203ea40406ad742368a5f90da1b220e970384aae
-SIZE (librt-0.6.3.tar.gz) = 54209
+TIMESTAMP = 1765032716
+SHA256 (librt-0.7.0.tar.gz) = ec5235ce0f0ab7f3006c5ea9b673d2168030911b7d3a73f751a809e12c5ae54f
+SIZE (librt-0.7.0.tar.gz) = 68713
diff --git a/devel/py-librt/files/patch-setup.py b/devel/py-librt/files/patch-setup.py
new file mode 100644
index 000000000000..6d6b501b35b4
--- /dev/null
+++ b/devel/py-librt/files/patch-setup.py
@@ -0,0 +1,27 @@
+--- setup.py.orig 2025-12-05 21:07:15 UTC
++++ setup.py
+@@ -172,21 +172,11 @@ else:
+ "librt.base64",
+ [
+ "librt_base64.c",
+- "base64/lib.c",
+- "base64/codec_choose.c",
+- "base64/tables/tables.c",
+- "base64/arch/generic/codec.c",
+- "base64/arch/ssse3/codec.c",
+- "base64/arch/sse41/codec.c",
+- "base64/arch/sse42/codec.c",
+- "base64/arch/avx/codec.c",
+- "base64/arch/avx2/codec.c",
+- "base64/arch/avx512/codec.c",
+- "base64/arch/neon32/codec.c",
+- "base64/arch/neon64/codec.c",
+ ],
+- include_dirs=[".", "base64"],
++ include_dirs=[".", "%%LOCALBASE%%/include"],
+ extra_compile_args=cflags,
++ library_dirs = ["%%LOCALBASE%%/lib"],
++ libraries=["base64"],
+ ),
+ ]
+ )