pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py-pybind11_json: New Package



Module Name:	pkgsrc-wip
Committed By:	matthew <matthewd%fastmail.us@localhost>
Pushed By:	matthewd
Date:		Fri May 1 20:58:28 2026 -0600
Changeset:	7fbfb959240dcb72fda9ee8d2c9c2d77acdabfc9

Added Files:
	py-pybind11_json/COMMIT_MSG
	py-pybind11_json/DESCR
	py-pybind11_json/Makefile
	py-pybind11_json/PLIST
	py-pybind11_json/buildlink3.mk
	py-pybind11_json/distinfo

Log Message:
py-pybind11_json: New Package

Bridge from nlohmann::json to pybind11

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=7fbfb959240dcb72fda9ee8d2c9c2d77acdabfc9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-pybind11_json/COMMIT_MSG    |  4 ++++
 py-pybind11_json/DESCR         |  4 ++++
 py-pybind11_json/Makefile      | 26 ++++++++++++++++++++++++++
 py-pybind11_json/PLIST         |  5 +++++
 py-pybind11_json/buildlink3.mk | 16 ++++++++++++++++
 py-pybind11_json/distinfo      |  5 +++++
 6 files changed, 60 insertions(+)

diffs:
diff --git a/py-pybind11_json/COMMIT_MSG b/py-pybind11_json/COMMIT_MSG
new file mode 100644
index 0000000000..b665412c62
--- /dev/null
+++ b/py-pybind11_json/COMMIT_MSG
@@ -0,0 +1,4 @@
+py-pybind11_json: New Package
+
+Bridge from nlohmann::json to pybind11
+
diff --git a/py-pybind11_json/DESCR b/py-pybind11_json/DESCR
new file mode 100644
index 0000000000..5c79ea0ca8
--- /dev/null
+++ b/py-pybind11_json/DESCR
@@ -0,0 +1,4 @@
+`pybind11_json` is an `nlohmann::json` to `pybind11` bridge, it allows you
+to automatically convert `nlohmann::json` to `py::object` and the other
+way around. Simply include the header, and the automatic conversion
+will be enabled.
diff --git a/py-pybind11_json/Makefile b/py-pybind11_json/Makefile
new file mode 100644
index 0000000000..18db5d718d
--- /dev/null
+++ b/py-pybind11_json/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD$
+
+DISTNAME=	pybind11_json-0.2.15
+PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=	textproc
+GITHUB_PROJECT=	pybind11_json
+MASTER_SITES=	${MASTER_SITE_GITHUB:=pybind/}
+GITHUB_TAG=	${PKGVERSION_NOREV}
+
+MAINTAINER=	matthewd%fastmail.us@localhost
+HOMEPAGE=	https://github.com/pybind/pybind11_json/
+COMMENT=	Bridge from nlohmann::json to pybind11
+LICENSE=	modified-bsd
+
+#DISTDIR=	${DISTNAME}
+USE_LANGUAGES=	c c++
+
+WRKSRC=	${WRKDIR}/${DISTNAME}
+
+.include "../../lang/python/pyversion.mk"
+CMAKE_CONFIGURE_ARGS+=-Dpybind11_DIR=${PREFIX}/${PYSITELIB}/pybind11/share/cmake/pybind11
+
+.include "../../devel/cmake/build.mk"
+.include "../../devel/py-pybind11/buildlink3.mk"
+.include "../../textproc/nlohmann-json/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-pybind11_json/PLIST b/py-pybind11_json/PLIST
new file mode 100644
index 0000000000..5eb37dedec
--- /dev/null
+++ b/py-pybind11_json/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD$
+include/pybind11_json/pybind11_json.hpp
+share/cmake/pybind11_json/pybind11_jsonConfig.cmake
+share/cmake/pybind11_json/pybind11_jsonConfigVersion.cmake
+share/cmake/pybind11_json/pybind11_jsonTargets.cmake
diff --git a/py-pybind11_json/buildlink3.mk b/py-pybind11_json/buildlink3.mk
new file mode 100644
index 0000000000..948bcec2f1
--- /dev/null
+++ b/py-pybind11_json/buildlink3.mk
@@ -0,0 +1,16 @@
+# $NetBSD: buildlink3.mk,v 1.5 2023/12/29 20:27:03 tnn Exp $
+
+BUILDLINK_TREE+=	py-pybind11_json
+
+.if !defined(PY_PYBIND11_JSON_BUILDLINK3_MK)
+PY_PYBIND11_JSON_BUILDLINK3_MK:=
+
+.include "../../lang/python/pyversion.mk"
+
+BUILDLINK_API_DEPENDS.py-pybind11_json+=	${PYPKGPREFIX}-pybind11_json>=0.2.15
+BUILDLINK_PKGSRCDIR.py-pybind11_json?=		../../wip/py-pybind11_json
+BUILDLINK_DEPMETHOD.py-pybind11_json?=		build
+
+.endif	# PY_PYBIND11_JSON_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-py-pybind11_json
diff --git a/py-pybind11_json/distinfo b/py-pybind11_json/distinfo
new file mode 100644
index 0000000000..dc1b73098e
--- /dev/null
+++ b/py-pybind11_json/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (pybind11_json-0.2.15.tar.gz) = f74e6fae4dfe3300037e15bbefb783f3fb686659e366bcf8004fce1759e521a3
+SHA512 (pybind11_json-0.2.15.tar.gz) = 054c06dc5f30815fc0ef6517bd48605642c14dcdffd7558e826c0485f86b4ddf3d4a44ab3651dd29bd491db8f51cad2844bbb55bc22dbcdd84a77d058329ed04
+Size (pybind11_json-0.2.15.tar.gz) = 33868 bytes


Home | Main Index | Thread Index | Old Index