git: eec1acb2b72d - main - devel/py-ewah-bool-utils: New port: EWAH Bool Array utils for yt

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 28 May 2023 18:56:30 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=eec1acb2b72dc21b240f3178fc65d561e6935195

commit eec1acb2b72dc21b240f3178fc65d561e6935195
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-05-28 16:59:28 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-05-28 18:56:16 +0000

    devel/py-ewah-bool-utils: New port: EWAH Bool Array utils for yt
---
 devel/Makefile                                     |  1 +
 devel/py-ewah-bool-utils/Makefile                  | 32 ++++++++++++++++++++++
 devel/py-ewah-bool-utils/distinfo                  |  3 ++
 .../py-ewah-bool-utils/files/patch-pyproject.toml  | 11 ++++++++
 devel/py-ewah-bool-utils/pkg-descr                 |  1 +
 5 files changed, 48 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 3157774bef5f..4efb11297950 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4582,6 +4582,7 @@
     SUBDIR += py-etils
     SUBDIR += py-evdev
     SUBDIR += py-eventlib
+    SUBDIR += py-ewah-bool-utils
     SUBDIR += py-ewmh
     SUBDIR += py-exam
     SUBDIR += py-exceptiongroup
diff --git a/devel/py-ewah-bool-utils/Makefile b/devel/py-ewah-bool-utils/Makefile
new file mode 100644
index 000000000000..346bc962b6ef
--- /dev/null
+++ b/devel/py-ewah-bool-utils/Makefile
@@ -0,0 +1,32 @@
+PORTNAME=	ewah-bool-utils
+DISTVERSION=	1.0.2
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	${PORTNAME:S/-/_/g}-${PORTVERSION}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	EWAH Bool Array utils for yt
+WWW=		https://github.com/yt-project/ewah_bool_utils
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=61.2:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0.37.1:devel/py-wheel@${PY_FLAVOR} \
+		${PYNUMPY}
+RUN_DEPENDS=	${PYNUMPY}
+
+USES=		python:3.8+
+USE_PYTHON=	pep517 cython autoplist pytest
+
+TEST_ENV=	${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} # tests fail to run, see https://github.com/yt-project/ewah_bool_utils/issues/41
+TEST_WRKSRC=	${WRKSRC}/tests
+
+post-install:
+	@${STRIP_CMD} \
+		${STAGEDIR}${PYTHON_SITELIBDIR}/ewah_bool_utils/_testing${PYTHON_EXT_SUFFIX}.so \
+		${STAGEDIR}${PYTHON_SITELIBDIR}/ewah_bool_utils/ewah_bool_wrap${PYTHON_EXT_SUFFIX}.so \
+		${STAGEDIR}${PYTHON_SITELIBDIR}/ewah_bool_utils/morton_utils${PYTHON_EXT_SUFFIX}.so
+
+.include <bsd.port.mk>
diff --git a/devel/py-ewah-bool-utils/distinfo b/devel/py-ewah-bool-utils/distinfo
new file mode 100644
index 000000000000..63727c8c3d39
--- /dev/null
+++ b/devel/py-ewah-bool-utils/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1685292371
+SHA256 (ewah_bool_utils-1.0.2.tar.gz) = 1f3e0554b0db3588804dae1a1e1fa6361885f1852f2e7823d318159eb02b101c
+SIZE (ewah_bool_utils-1.0.2.tar.gz) = 47821
diff --git a/devel/py-ewah-bool-utils/files/patch-pyproject.toml b/devel/py-ewah-bool-utils/files/patch-pyproject.toml
new file mode 100644
index 000000000000..e3006174b3b6
--- /dev/null
+++ b/devel/py-ewah-bool-utils/files/patch-pyproject.toml
@@ -0,0 +1,11 @@
+--- pyproject.toml.orig	2023-05-28 16:47:23 UTC
++++ pyproject.toml
+@@ -2,7 +2,7 @@
+ requires = [
+     "setuptools>=61.2",
+     "Cython>=0.29.22,<3.0",
+-    "oldest-supported-numpy",
++    "numpy",
+     # see https://github.com/numpy/numpy/pull/18389
+     "wheel>=0.36.2",
+ ]
diff --git a/devel/py-ewah-bool-utils/pkg-descr b/devel/py-ewah-bool-utils/pkg-descr
new file mode 100644
index 000000000000..8eba33052c79
--- /dev/null
+++ b/devel/py-ewah-bool-utils/pkg-descr
@@ -0,0 +1 @@
+EWAH Bool Array utils for yt.