From nobody Thu Aug 15 16:04:19 2024 X-Original-To: dev-commits-ports-main@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 4Wl9101xWbz5SPHb; Thu, 15 Aug 2024 16:04:20 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Wl9101M4mz4XFH; Thu, 15 Aug 2024 16:04:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723737860; 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=A8Hjqp4Ph3hyYxgEBOIxmbBGV0+MkPSjHRskS+IQRAM=; b=EF2RioOjFZF8pA7A6v7a5BkGlQjXyUz/o3/jLolX1fsoQekbYNjTQumPS3amsLAO7pFD3n jfCgC80K5KVUtfpVvJT7+s885O23tNkHC+xT8htY8AYfrK7ZUNhiKPHbml2xASiQOUX5Lu aab7BrTAhvadUEWJsjhmlZU89xQxWxCScayCXUg78PSIMTHAXKSQuEMPboEoHVhXRd4ATP YbiW7Js5tMc8iv7Q2wksUo2Nz7CLw3t6Tof9cpHveceRKiXOcX8AMqNucw0S9D0n0LoM1M PhPUrmSlcC8aioY4gBdFHx9SZH5vj5HG3sHAX/XmKNWxqTSim9KwWb1YRjEIGQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1723737860; a=rsa-sha256; cv=none; b=UUimhCBKDJjLutCLB+U9+oT2pm2wMyvpNJRmZh/3ubdBLLEY+ChAUPyLDDYPjGxLMGcCIA MbCbeG2MqnydLNMbELLThzB36MzfhJpLcFI2V3X5lRlxWxYUoMyONmUCp4GsDbj/P7c0IX Ok6iVwklyRcF9bLTJ2CJt9VJP0rOR+JXbf2TmYIsUmQ+8EEko2Ji2kGjGA51JgS1kzvxgv o1h3dIOZLeCMi+RVw4ee13TlWfOtW6/GgiwygJeXSHeH2R0+lGu+Ihh6KolIV1JbMWtV0E EveDFcR6OfjE0y/vHOK3fvS3LSipG4o0CTD2/Wi7mq4PVGSTGws7GmPAZVxnWw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723737860; 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=A8Hjqp4Ph3hyYxgEBOIxmbBGV0+MkPSjHRskS+IQRAM=; b=TUHMSrAQcKApVY86Fi8/hp9J8QFbH+yvvzAK17cb4jeE9S9HNgWPXTX4zJ84FyMiRdfWaw a1yywwqerPM7mrvHisQwhtcCouZ13Bw6/b/J7Gnh+uYuREXMqfapUGSsLnQ5v5wZwjAzIe nUclF8/nv294D+h2Y4UUL+FOSFS5IgRh3xhkEcdLEuSKwMpcaNE8Wcmb7ibO6ugotuqQ0P yB+iPygYBlP2GuPbtdc1f2Wg4W9HF/R6vYao6j2CziKdRDCjoYqvZWPbh/I5mO0RPeWyVo tRE7JsKxit/f+JMBUN0/i1hF9ikv+0N7umEf9agcdken+mFW3ik1WVzaJINJwg== 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 4Wl90z6Y0tzT6p; Thu, 15 Aug 2024 16:04:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 47FG4JoG086206; Thu, 15 Aug 2024 16:04:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47FG4JDC086203; Thu, 15 Aug 2024 16:04:19 GMT (envelope-from git) Date: Thu, 15 Aug 2024 16:04:19 GMT Message-Id: <202408151604.47FG4JDC086203@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 6b602644210a - main - devel/pybind11_abseil: Add pybind11_abseil 202402.0 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6b602644210a9e1e86634831a581e2ea30debb43 Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=6b602644210a9e1e86634831a581e2ea30debb43 commit 6b602644210a9e1e86634831a581e2ea30debb43 Author: Po-Chuan Hsieh AuthorDate: 2024-08-15 16:00:06 +0000 Commit: Po-Chuan Hsieh CommitDate: 2024-08-15 16:00:06 +0000 devel/pybind11_abseil: Add pybind11_abseil 202402.0 pybind11_abseil provides the pybind11 bindings for the Abseil C++ common libraries. These adapters make Abseil types work with Pybind11 bindings. --- devel/Makefile | 1 + devel/pybind11_abseil/Makefile | 21 +++++++++++++++ devel/pybind11_abseil/distinfo | 3 +++ devel/pybind11_abseil/files/patch-CMakeLists.txt | 33 ++++++++++++++++++++++++ devel/pybind11_abseil/pkg-descr | 2 ++ devel/pybind11_abseil/pkg-plist | 4 +++ 6 files changed, 64 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index b13eb4a0ed05..5e7edde752aa 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -6094,6 +6094,7 @@ SUBDIR += py3c SUBDIR += pybind11 SUBDIR += pybind11-json + SUBDIR += pybind11_abseil SUBDIR += pybugz SUBDIR += pycanberra SUBDIR += pycdc diff --git a/devel/pybind11_abseil/Makefile b/devel/pybind11_abseil/Makefile new file mode 100644 index 000000000000..603900f7201b --- /dev/null +++ b/devel/pybind11_abseil/Makefile @@ -0,0 +1,21 @@ +PORTNAME= pybind11_abseil +PORTVERSION= 202402.0 +CATEGORIES= devel +MASTER_SITES= https://github.com/pybind/pybind11_abseil/releases/download/v${PORTVERSION}/ + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Pybind11 bindings for the Abseil C++ Common Libraries +WWW= https://github.com/pybind/pybind11_abseil + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= abseil>=0:devel/abseil \ + pybind11>=0:devel/pybind11 +LIB_DEPENDS= libabsl_base.so:devel/abseil + +USES= cmake compiler:c++17-lang python:build + +CMAKE_ARGS= -DCMAKE_INSTALL_PYDIR=${PYTHON_SITELIBDIR} + +.include diff --git a/devel/pybind11_abseil/distinfo b/devel/pybind11_abseil/distinfo new file mode 100644 index 000000000000..4b5ba65c14bf --- /dev/null +++ b/devel/pybind11_abseil/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1717568408 +SHA256 (pybind11_abseil-202402.0.tar.gz) = 1496b112e86416e2dcf288569a3e7b64f3537f0b18132224f492266e9ff76c44 +SIZE (pybind11_abseil-202402.0.tar.gz) = 59273 diff --git a/devel/pybind11_abseil/files/patch-CMakeLists.txt b/devel/pybind11_abseil/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..1d9d45531e23 --- /dev/null +++ b/devel/pybind11_abseil/files/patch-CMakeLists.txt @@ -0,0 +1,33 @@ +--- CMakeLists.txt.orig 2024-02-16 17:39:49 UTC ++++ CMakeLists.txt +@@ -1,7 +1,6 @@ project(pybind11_abseil LANGUAGES CXX) + cmake_minimum_required(VERSION 3.11) + project(pybind11_abseil LANGUAGES CXX) + +-include(FetchContent) + include(CTest) + + if(NOT DEFINED CMAKE_CXX_STANDARD) +@@ -16,19 +15,10 @@ endif() + cmake_policy(SET CMP0135 NEW) + endif() + +-FetchContent_Declare( +- abseil-cpp +- URL https://github.com/abseil/abseil-cpp/archive/refs/tags/20230802.0.tar.gz +- URL_HASH +- SHA256=59d2976af9d6ecf001a81a35749a6e551a335b949d34918cfade07737b9d93c5) ++find_package(absl REQUIRED) ++find_package(pybind11 REQUIRED) + +-FetchContent_Declare( +- pybind11 +- URL https://github.com/pybind/pybind11/archive/refs/heads/master.tar.gz) +- +-FetchContent_MakeAvailable(abseil-cpp pybind11) +- + set(TOP_LEVEL_DIR ${CMAKE_CURRENT_LIST_DIR}) +-include_directories(${TOP_LEVEL_DIR} ${pybind11_INCLUDE_DIRS}) ++include_directories(${TOP_LEVEL_DIR} ${abseil_INCLUDE_DIRS} ${pybind11_INCLUDE_DIRS}) + + add_subdirectory(pybind11_abseil) diff --git a/devel/pybind11_abseil/pkg-descr b/devel/pybind11_abseil/pkg-descr new file mode 100644 index 000000000000..722786faf5bc --- /dev/null +++ b/devel/pybind11_abseil/pkg-descr @@ -0,0 +1,2 @@ +pybind11_abseil provides the pybind11 bindings for the Abseil C++ common +libraries. These adapters make Abseil types work with Pybind11 bindings. diff --git a/devel/pybind11_abseil/pkg-plist b/devel/pybind11_abseil/pkg-plist new file mode 100644 index 000000000000..840e2b8c3e33 --- /dev/null +++ b/devel/pybind11_abseil/pkg-plist @@ -0,0 +1,4 @@ +lib/ok_status_singleton.so +%%PYTHON_SITELIBDIR%%/pybind11_abseil/ok_status_singleton.so +%%PYTHON_SITELIBDIR%%/pybind11_abseil/status.so +lib/status.so