aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Cochard <olivier@FreeBSD.org>2026-05-07 21:35:27 +0000
committerOlivier Cochard <olivier@FreeBSD.org>2026-05-07 21:36:58 +0000
commit9ca8a393da3d2290fc1750e431504c75cfc757e9 (patch)
treea0dd7c35fdb209a36a025473827706e3b0cf01ce
parent6352ac548abbe06b5a42945662fec56e39954065 (diff)
devel/py-pyroaring: New port
Python wrapper for the C library CRoaring Sponsored by: Netflix
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-pyroaring/Makefile26
-rw-r--r--devel/py-pyroaring/distinfo3
-rw-r--r--devel/py-pyroaring/pkg-descr3
4 files changed, 33 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index bafa65da7f7e..5634c2b82a4d 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5798,6 +5798,7 @@
SUBDIR += py-pyrepl
SUBDIR += py-pyrfc3339
SUBDIR += py-pyright
+ SUBDIR += py-pyroaring
SUBDIR += py-pyroma
SUBDIR += py-pyrsistent
SUBDIR += py-pyscaffold
diff --git a/devel/py-pyroaring/Makefile b/devel/py-pyroaring/Makefile
new file mode 100644
index 000000000000..c25deaaeb631
--- /dev/null
+++ b/devel/py-pyroaring/Makefile
@@ -0,0 +1,26 @@
+PORTNAME= pyroaring
+PORTVERSION= 1.1.0
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= olivier@FreeBSD.org
+COMMENT= Python wrapper for the C library CRoaring
+WWW= https://github.com/Ezibenroc/PyRoaringBitMap
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cython>=3.0.2:lang/cython@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hypothesis>0:devel/py-hypothesis@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
+
+USES= compiler:c++11-lang python:3.9+
+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-pyroaring/distinfo b/devel/py-pyroaring/distinfo
new file mode 100644
index 000000000000..c6e5f3c120a1
--- /dev/null
+++ b/devel/py-pyroaring/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1778187323
+SHA256 (pyroaring-1.1.0.tar.gz) = f02e4021397ae02a139defdc6813b9942ab163de90affddd4ce4efbac299f619
+SIZE (pyroaring-1.1.0.tar.gz) = 200298
diff --git a/devel/py-pyroaring/pkg-descr b/devel/py-pyroaring/pkg-descr
new file mode 100644
index 000000000000..02e892e437f9
--- /dev/null
+++ b/devel/py-pyroaring/pkg-descr
@@ -0,0 +1,3 @@
+Python wrapper for the C library CRoaring.
+
+A bitmap can be used nearly as the classical Python set.