aboutsummaryrefslogtreecommitdiff
path: root/devel/py-cgen/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/py-cgen/Makefile')
-rw-r--r--devel/py-cgen/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/devel/py-cgen/Makefile b/devel/py-cgen/Makefile
new file mode 100644
index 000000000000..9c194c2749a5
--- /dev/null
+++ b/devel/py-cgen/Makefile
@@ -0,0 +1,27 @@
+PORTNAME= cgen
+DISTVERSION= 2025.1
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= C/C++ source generation from an AST
+WWW= https://github.com/inducer/cgen
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=1.6,1:math/py-numpy@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytools>=2022.1.14:devel/py-pytools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.5:devel/py-typing-extensions@${PY_FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ruff>0:devel/py-ruff@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= pep517 autoplist concurrent pytest
+
+NO_ARCH= yes
+
+# tests as of 2025.1: 1 passed in 2.02s
+
+.include <bsd.port.mk>