From nobody Tue Oct 18 02:29:36 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MryVm43N0z4fSFZ; Tue, 18 Oct 2022 02:29:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MryVm3Q1zz3NKV; Tue, 18 Oct 2022 02:29:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666060176; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pScRFrn/7n5AMt1t0bpGFNH0mfNGAnQ0LqeQv/yH4z8=; b=dHXa+EEAM17O8LfF7VPP5c7ulZ+R6hilHnzfl0t3fpMIgd2cEmyfmXZD1J82aH+Ea6qB69 9rj+b/mCTilu0ZVAD/5WcX/7cqtHRraIVYBGNHxEbQ7BUMtnJ6DQxuSAUNkm7GcENPxGqv J9pxL8K0ljyuE7H/9sWjj08m7xtfTaS1O3QpBBrrxtJTlglf7e4Wx80lcJAOFYWPnRsxYF Ktt57HRTiW7WLxPel8U6FGQnXp141i3T1h6AKlosBmL5XjHHwwvMUqadEFLHzASDa/a5Nz ciNK9+kfeuXET4eAggyyLS3rH1zajgc/T1m6/dvHPt7VhOWuCQ+XjhUw8JPskA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MryVm2ScKz12B2; Tue, 18 Oct 2022 02:29:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 29I2TaT9024023; Tue, 18 Oct 2022 02:29:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 29I2Tasj024022; Tue, 18 Oct 2022 02:29:36 GMT (envelope-from git) Date: Tue, 18 Oct 2022 02:29:36 GMT Message-Id: <202210180229.29I2Tasj024022@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 98f11926f60a - main - devel/pybind11-json: New port: Using nlohmann::json with pybind11 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 98f11926f60aebc5e357916486ab5d646daf43f1 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666060176; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pScRFrn/7n5AMt1t0bpGFNH0mfNGAnQ0LqeQv/yH4z8=; b=o3syRN+PVphUdj7Da7d+Eqg8z6AbzzHICvgxrAsKojdXl0s9jQwUWMKE+dSjVTc7XwPUT0 mBk2TxBYXdqcL3RQ4ZYWAdau9INNmNsqHagFUiygmV45rbeGZ3JmSqfb1ks0gbtcXTKR+i zYt+05GaaEXSN4JxiZ6Cy6PO320qQqQ3ui0GNzs56YxHj3dj4uyiRyv8iMs4BTOfYUpR/j JntDZrMpCnM4RXLXzRbNuIc8AnpFT1aLNfaYhrL3Dfx5x+YwFMa8cYCLWMVIj4BIaXoHUv XV3SEj9DQ+qbkMlI5fwmL+L+v+8LENdGwd15napG1aug1E0cZox9S4rDoAOpLA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1666060176; a=rsa-sha256; cv=none; b=hDmMbXmA0/9Hnfye35EUFwxNZJROIUVN6bS7nsBA5JzNOio6C5ksKGVk1SxEnYWG7ich7g fz4qFsh0nuTJY3MLnWxCjZYTe8WgeSK44HdtrzyDmBCXzF7RrxM6vTMlnN9RpaK7zJl5Xo 4G2mGByeJ5hszfGtrfSxLUeLbURXt07QZa4EjIT3L/yQ66dsRR1i481HpKjJDMqtvvkcFK BLxeqxavJFcehwaQU6dcyfF2LcOqrKC7DMN75RHsg1PRcSgaHfVxO7Sx20P8LCdjNGJ7vm bLrcYDPO2RtriNm1c5Gjg20C2EI4DBe38/9wWnxyokMIRDot3n22D4XYp0LjIQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=98f11926f60aebc5e357916486ab5d646daf43f1 commit 98f11926f60aebc5e357916486ab5d646daf43f1 Author: Yuri Victorovich AuthorDate: 2022-10-18 02:28:55 +0000 Commit: Yuri Victorovich CommitDate: 2022-10-18 02:29:33 +0000 devel/pybind11-json: New port: Using nlohmann::json with pybind11 --- devel/Makefile | 1 + devel/pybind11-json/Makefile | 39 +++++++++++++++++++++++++++++++++++++++ devel/pybind11-json/distinfo | 3 +++ devel/pybind11-json/pkg-descr | 3 +++ 4 files changed, 46 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 5d9709d789e8..7518ca0b7b97 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5618,6 +5618,7 @@ SUBDIR += py-zope.traversing SUBDIR += py3c SUBDIR += pybind11 + SUBDIR += pybind11-json SUBDIR += pybugz SUBDIR += pycanberra SUBDIR += pycharm-ce diff --git a/devel/pybind11-json/Makefile b/devel/pybind11-json/Makefile new file mode 100644 index 000000000000..c0042be07e39 --- /dev/null +++ b/devel/pybind11-json/Makefile @@ -0,0 +1,39 @@ +PORTNAME= pybind11-json +DISTVERSION= 0.2.13 +CATEGORIES= devel python + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Using nlohmann::json with pybind11 +WWW= https://github.com/pybind/pybind11_json + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= pybind11>0:devel/pybind11 \ + nlohmann-json>0:devel/nlohmann-json +RUN_DEPENDS= pybind11>:devel/pybind11 \ + nlohmann-json>0:devel/nlohmann-json +TEST_DEPENDS= googletest>0:devel/googletest + +USES= cmake:testing compiler:c++11-lang python:build + +USE_GITHUB= yes +GH_ACCOUNT= pybind +GH_PROJECT= ${PORTNAME:S/-/_/} + +CMAKE_OFF= PYBIND11_TEST + +CMAKE_TESTING_ON= BUILD_TESTS +CMAKE_TESTING_TARGET= ${ALL_TARGET} + +NO_ARCH= yes + +PLIST_FILES= 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 + +post-test: # workaround for https://github.com/pybind/pybind11_json/issues/60 + @${BUILD_WRKSRC}/test/test_pybind11_json + +.include diff --git a/devel/pybind11-json/distinfo b/devel/pybind11-json/distinfo new file mode 100644 index 000000000000..d31d49741035 --- /dev/null +++ b/devel/pybind11-json/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1666059027 +SHA256 (pybind-pybind11_json-0.2.13_GH0.tar.gz) = 6b12ddb4930a3135322890318fc15c4a69134f21120ea82163827c11411107a3 +SIZE (pybind-pybind11_json-0.2.13_GH0.tar.gz) = 9512 diff --git a/devel/pybind11-json/pkg-descr b/devel/pybind11-json/pkg-descr new file mode 100644 index 000000000000..e6f01e051cbe --- /dev/null +++ b/devel/pybind11-json/pkg-descr @@ -0,0 +1,3 @@ +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.