git: e191cf0d6fc9 - main - devel/py-librt: Add py-librt 0.6.3
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 02 Dec 2025 12:18:39 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=e191cf0d6fc902ae30264239d40c5c8b52f38a2a
commit e191cf0d6fc902ae30264239d40c5c8b52f38a2a
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-12-01 20:15:50 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-12-02 12:04:14 +0000
devel/py-librt: Add py-librt 0.6.3
This library contains basic functionality that is useful in code compiled using
mypyc, and efficient C implementations of various Python standard library
classes and functions. Mypyc can produce faster extensions when you use librt in
the code you compile. librt also contains some internal library features used by
mypy.
---
devel/Makefile | 1 +
devel/py-librt/Makefile | 24 ++++++++++++++++++++++++
devel/py-librt/distinfo | 3 +++
devel/py-librt/files/patch-pyproject.toml | 9 +++++++++
devel/py-librt/pkg-descr | 5 +++++
5 files changed, 42 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index d2c5bb498174..3f04d2f95df7 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5223,6 +5223,7 @@
SUBDIR += py-libpeas
SUBDIR += py-libpeas1
SUBDIR += py-libplist
+ SUBDIR += py-librt
SUBDIR += py-libtaxii
SUBDIR += py-libtmux
SUBDIR += py-libusb-package
diff --git a/devel/py-librt/Makefile b/devel/py-librt/Makefile
new file mode 100644
index 000000000000..148839751aa7
--- /dev/null
+++ b/devel/py-librt/Makefile
@@ -0,0 +1,24 @@
+PORTNAME= librt
+PORTVERSION= 0.6.3
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Mypyc runtime library
+WWW= https://github.com/python/mypy/tree/master/mypyc/lib-rt \
+ https://github.com/mypyc/librt
+
+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}
+
+USES= python
+USE_PYTHON= autoplist concurrent pep517
+
+post-install:
+ ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
+
+.include <bsd.port.mk>
diff --git a/devel/py-librt/distinfo b/devel/py-librt/distinfo
new file mode 100644
index 000000000000..cc52293fdfbc
--- /dev/null
+++ b/devel/py-librt/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1764510868
+SHA256 (librt-0.6.3.tar.gz) = c724a884e642aa2bbad52bb0203ea40406ad742368a5f90da1b220e970384aae
+SIZE (librt-0.6.3.tar.gz) = 54209
diff --git a/devel/py-librt/files/patch-pyproject.toml b/devel/py-librt/files/patch-pyproject.toml
new file mode 100644
index 000000000000..72d826e85537
--- /dev/null
+++ b/devel/py-librt/files/patch-pyproject.toml
@@ -0,0 +1,9 @@
+--- pyproject.toml.orig 2025-11-29 13:53:51 UTC
++++ pyproject.toml
+@@ -1,5 +1,5 @@
+ [build-system]
+-requires = ["setuptools >= 77.0.3"]
++requires = ["setuptools >= 61"]
+ build-backend = "setuptools.build_meta"
+
+ [project]
diff --git a/devel/py-librt/pkg-descr b/devel/py-librt/pkg-descr
new file mode 100644
index 000000000000..355d90d752f2
--- /dev/null
+++ b/devel/py-librt/pkg-descr
@@ -0,0 +1,5 @@
+This library contains basic functionality that is useful in code compiled using
+mypyc, and efficient C implementations of various Python standard library
+classes and functions. Mypyc can produce faster extensions when you use librt in
+the code you compile. librt also contains some internal library features used by
+mypy.