aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2025-12-01 20:15:50 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2025-12-02 12:04:14 +0000
commite191cf0d6fc902ae30264239d40c5c8b52f38a2a (patch)
tree9def3d36d9cf2b1ac9d4eace4d3d477f8934404f
parente5ce4ff52ba7f1b2de769a9123957d4baafef25b (diff)
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.
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-librt/Makefile24
-rw-r--r--devel/py-librt/distinfo3
-rw-r--r--devel/py-librt/files/patch-pyproject.toml9
-rw-r--r--devel/py-librt/pkg-descr5
5 files changed, 42 insertions, 0 deletions
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.