git: d0e8fefa2bab - main - devel/py-PYB11Generator: New port: Code generator for the pybind11 C++ <-> Python language binding tool

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sat, 03 Dec 2022 23:38:00 UTC
The branch main has been updated by yuri:

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

commit d0e8fefa2babb7c101256a30004da22b59ff65e6
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-12-03 23:36:55 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-12-03 23:36:55 +0000

    devel/py-PYB11Generator: New port: Code generator for the pybind11 C++ <-> Python language binding tool
---
 devel/Makefile                    |  1 +
 devel/py-PYB11Generator/Makefile  | 22 ++++++++++++++++++++++
 devel/py-PYB11Generator/distinfo  |  3 +++
 devel/py-PYB11Generator/pkg-descr |  4 ++++
 devel/py-PYB11Generator/pkg-plist | 26 ++++++++++++++++++++++++++
 5 files changed, 56 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index fc2eab4043ff..862e18c92a28 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4117,6 +4117,7 @@
     SUBDIR += py-Jinja2
     SUBDIR += py-Jinja2-doc
     SUBDIR += py-Js2Py
+    SUBDIR += py-PYB11Generator
     SUBDIR += py-PeachPy
     SUBDIR += py-Products.ExternalEditor
     SUBDIR += py-Products.PloneLanguageTool
diff --git a/devel/py-PYB11Generator/Makefile b/devel/py-PYB11Generator/Makefile
new file mode 100644
index 000000000000..da5ddc2da7fe
--- /dev/null
+++ b/devel/py-PYB11Generator/Makefile
@@ -0,0 +1,22 @@
+PORTNAME=	PYB11Generator
+DISTVERSION=	1.0.12
+CATEGORIES=	devel python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Code generator for the pybind11 C++ <-> Python language binding tool
+WWW=		https://github.com/LLNL/PYB11Generator
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}decorator>0:devel/py-decorator@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pybind11>=0:devel/py-pybind11@${PY_FLAVOR}
+
+USES=		python:3.6+
+USE_PYTHON=	distutils # autoplist is broken - it prints __pycache__ items that aren't installed
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-PYB11Generator/distinfo b/devel/py-PYB11Generator/distinfo
new file mode 100644
index 000000000000..fd5fcd6d97a1
--- /dev/null
+++ b/devel/py-PYB11Generator/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1670106180
+SHA256 (PYB11Generator-1.0.12.tar.gz) = 0a0988e705aebf050180170b25b57e4a6c7652d2099f2ef180eed63c4712d91c
+SIZE (PYB11Generator-1.0.12.tar.gz) = 65518
diff --git a/devel/py-PYB11Generator/pkg-descr b/devel/py-PYB11Generator/pkg-descr
new file mode 100644
index 000000000000..31b7b269f620
--- /dev/null
+++ b/devel/py-PYB11Generator/pkg-descr
@@ -0,0 +1,4 @@
+PYB11Generator is a python based code generator that creates pybind11 code for
+binding C++ libraries as extensions in Python. PYB11Generator parses input that
+is very close to writing the desired interface in native python, turning this
+into the corresponding pybind11 C++ code.
diff --git a/devel/py-PYB11Generator/pkg-plist b/devel/py-PYB11Generator/pkg-plist
new file mode 100644
index 000000000000..8c4583beceba
--- /dev/null
+++ b/devel/py-PYB11Generator/pkg-plist
@@ -0,0 +1,26 @@
+%%PYTHON_SITELIBDIR%%/PYB11Generator/PYB11ClassAttribute.py
+%%PYTHON_SITELIBDIR%%/PYB11Generator/PYB11Decorators.py
+%%PYTHON_SITELIBDIR%%/PYB11Generator/PYB11Publicist.py
+%%PYTHON_SITELIBDIR%%/PYB11Generator/PYB11STLmethods.py
+%%PYTHON_SITELIBDIR%%/PYB11Generator/PYB11Trampoline.py
+%%PYTHON_SITELIBDIR%%/PYB11Generator/PYB11attr.py
+%%PYTHON_SITELIBDIR%%/PYB11Generator/PYB11class.py
+%%PYTHON_SITELIBDIR%%/PYB11Generator/PYB11enum.py
+%%PYTHON_SITELIBDIR%%/PYB11Generator/PYB11function.py
+%%PYTHON_SITELIBDIR%%/PYB11Generator/PYB11property.py
+%%PYTHON_SITELIBDIR%%/PYB11Generator/PYB11utils.py
+%%PYTHON_SITELIBDIR%%/PYB11Generator/__init__.py
+%%PYTHON_SITELIBDIR%%/PYB11Generator/__pycache__/PYB11ClassAttribute%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/PYB11Generator/__pycache__/PYB11ClassAttribute%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/PYB11Generator/__pycache__/PYB11Decorators%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/PYB11Generator/__pycache__/PYB11Decorators%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/PYB11Generator/__pycache__/PYB11Publicist%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/PYB11Generator/__pycache__/PYB11Publicist%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/PYB11Generator/__pycache__/PYB11STLmethods%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/PYB11Generator/__pycache__/PYB11STLmethods%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/PYB11Generator/__pycache__/PYB11attr%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/PYB11Generator/__pycache__/PYB11attr%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/PYB11Generator/__pycache__/PYB11property%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/PYB11Generator/__pycache__/PYB11property%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/PYB11Generator/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/PYB11Generator/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.pyc