aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2023-08-16 18:06:35 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2023-08-16 18:25:05 +0000
commit29f25e627e658f8a2e2fd3a6b8862c4e1e8602fc (patch)
tree06450df01f09c3643bc50f4e3c168dfc31350649
parent9b4992baf6eb7db7cdbada0e6013a0f6e0304557 (diff)
devel/py-pybind11210: Add py-pybind11210 2.10.4
pybind11 is a lightweight header-only library that exposes C++ types in Python and vice versa, mainly to create Python bindings of existing C++ code. Its goals and syntax are similar to the excellent Boost.Python library by David Abrahams: to minimize boilerplate code in traditional extension modules by inferring type information using compile-time introspection.
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-pybind11210/Makefile25
-rw-r--r--devel/py-pybind11210/distinfo3
-rw-r--r--devel/py-pybind11210/pkg-descr5
4 files changed, 34 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 3c9648a690af..0d8973db6a7b 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5232,6 +5232,7 @@
SUBDIR += py-pyasn1
SUBDIR += py-pyasn1-modules
SUBDIR += py-pybind11
+ SUBDIR += py-pybind11210
SUBDIR += py-pybix
SUBDIR += py-pycadf
SUBDIR += py-pycalendar
diff --git a/devel/py-pybind11210/Makefile b/devel/py-pybind11210/Makefile
new file mode 100644
index 000000000000..3e0ed51abd0b
--- /dev/null
+++ b/devel/py-pybind11210/Makefile
@@ -0,0 +1,25 @@
+PORTNAME= pybind11
+PORTVERSION= 2.10.4
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+PKGNAMESUFFIX= 210
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Seamless operability between C++11 and Python
+WWW= https://github.com/pybind/pybind11
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=42:devel/py-setuptools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist concurrent pep517
+
+NO_ARCH= yes
+
+PORTSCOUT= limit:^2\.10\.
+
+.include <bsd.port.mk>
diff --git a/devel/py-pybind11210/distinfo b/devel/py-pybind11210/distinfo
new file mode 100644
index 000000000000..9e2a625cb04b
--- /dev/null
+++ b/devel/py-pybind11210/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1691069894
+SHA256 (pybind11-2.10.4.tar.gz) = 0bb621d3c45a049aa5923debb87c5c0e2668227905c55ebe8af722608d8ed927
+SIZE (pybind11-2.10.4.tar.gz) = 200838
diff --git a/devel/py-pybind11210/pkg-descr b/devel/py-pybind11210/pkg-descr
new file mode 100644
index 000000000000..b32ea63a8631
--- /dev/null
+++ b/devel/py-pybind11210/pkg-descr
@@ -0,0 +1,5 @@
+pybind11 is a lightweight header-only library that exposes C++ types in Python
+and vice versa, mainly to create Python bindings of existing C++ code. Its goals
+and syntax are similar to the excellent Boost.Python library by David Abrahams:
+to minimize boilerplate code in traditional extension modules by inferring type
+information using compile-time introspection.