From nobody Sun Apr 07 18:38:14 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 4VCLZZ6kftz5HJTP; Sun, 7 Apr 2024 18:38:14 +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 4VCLZZ67Gbz4XD6; Sun, 7 Apr 2024 18:38:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712515094; 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=27dC1i3guUhfBRCRC+QchYO6G9o+EaWJmKRxijHpKM0=; b=SN//bl9vKNA5Awf++sVX0cwJblZLtWxEVRVRFzclt0zgeN0BbHsiQtfB1QV4O8S1TYDYir T23sHx5zGC5sENjLAJ7OjF6L+b3jn6INaGKL4qfTRihvqZk83VRC+jE43UX/BnW/NAnbbi kF2CwM7SQuOEfKfLtnhcVZNDGkM1cWDbYFcZiRZmshV1TNCPAKU1OAc+xmnyCXGjJ2tiK+ u+Lds9XKNHafcsEwiFmGUHNCZgYnR5S9RVabmQc/CECBnBV3lp2GsLAfyb/Ao6EYkIrDKy AnNWXbNSW52GOMDdCMUn+eE/ZZWg9H4cq5p3SwnPm9X0PIAClulAWTGMqAJPKQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712515094; a=rsa-sha256; cv=none; b=P+X0Lqgm1A4B5vWB4e/le8VyoFczmzki37wKqIfhxSWgSt20yuXNJEhfL7MHctvmHN2aFq XguOCHn7OhaBvnJqgPreTsPyY0LE4o6jMegSKshCQjduE7qEdWRaLne9cDOu8NogVFOifJ POAiZbk4RJh73f5mXVSwm2d4Ocjui4GYz4g6I/I2YnA8hgxHoU6O/J2PmtLaaYEdw0Nrsn nCjSyzP95uW1tl7gOSa5vjocDjOCN22ylvcmgmjy6bO3zhnsscZl85xSiRmtLTcp8y6J/1 oGwiM8jH2n4tUHe8Qdr7MoDdHI+cbdGLwK3kOyFmZ8FkACrrpquUnzieOio2sQ== 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=1712515094; 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=27dC1i3guUhfBRCRC+QchYO6G9o+EaWJmKRxijHpKM0=; b=yOnWds1LWbjod16l7UkTGg+sam3393GN6G+QjgWHSBDR42JChI0ElVnoFRoIbzxevOlS7l 4PPitn5TVwkawnrtzQpH58RkLwZTg3DGapvhSvyxXEHewltm8ZELYaMXMsuuOlEHzNgiiD wb7r9K1Zvws26A0hTutp3JTmGDjXQVa6mgFmft1B18oyrdhvmZobrvMPUWe++KUcmtKqnV SAuB6Y0bd98L/xMjqtnMOnFhKmTJNZjlibXAs77rBEA45nNm+LNktRhbc8MmtPUdGvUax2 Ul35w3v6vrSkbu4pE1pc8C8UnppLLfijXABR6xhA+3K9unxJBygkkWstFC+hcw== 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 4VCLZZ5c0FzfTP; Sun, 7 Apr 2024 18:38:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 437IcEjU095849; Sun, 7 Apr 2024 18:38:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 437IcE9b095846; Sun, 7 Apr 2024 18:38:14 GMT (envelope-from git) Date: Sun, 7 Apr 2024 18:38:14 GMT Message-Id: <202404071838.437IcE9b095846@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: 77b227822e08 - main - devel/py-dm-tree: New port: Library for working with nested data structures 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: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@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: 77b227822e08da9adb6504f0ff2ed83ae21b2df0 Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=77b227822e08da9adb6504f0ff2ed83ae21b2df0 commit 77b227822e08da9adb6504f0ff2ed83ae21b2df0 Author: Yuri Victorovich AuthorDate: 2024-04-07 05:46:00 +0000 Commit: Yuri Victorovich CommitDate: 2024-04-07 18:37:58 +0000 devel/py-dm-tree: New port: Library for working with nested data structures --- devel/Makefile | 1 + devel/py-dm-tree/Makefile | 23 ++++++++ devel/py-dm-tree/distinfo | 3 + devel/py-dm-tree/files/patch-tree_CMakeLists.txt | 71 ++++++++++++++++++++++++ devel/py-dm-tree/pkg-descr | 3 + devel/py-dm-tree/pkg-plist | 13 +++++ 6 files changed, 114 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 23fce0037399..c6ca8af6c5b9 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4642,6 +4642,7 @@ SUBDIR += py-dj42-django-rq SUBDIR += py-dj42-graphene-django SUBDIR += py-django-rq + SUBDIR += py-dm-tree SUBDIR += py-docformatter SUBDIR += py-dockerpty SUBDIR += py-docopt diff --git a/devel/py-dm-tree/Makefile b/devel/py-dm-tree/Makefile new file mode 100644 index 000000000000..137635994a01 --- /dev/null +++ b/devel/py-dm-tree/Makefile @@ -0,0 +1,23 @@ +PORTNAME= dm-tree +DISTVERSION= 0.1.8 +CATEGORIES= devel +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Library for working with nested data structures +WWW= https://tree.readthedocs.io/en/latest/ + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= cmake:devel/cmake-core \ + pybind11>0:devel/pybind11 +LIB_DEPENDS= libabsl_strings.so:devel/abseil + +USES= localbase python +USE_PYTHON= distutils concurrent + +MAKE_ENV= FREEBSD_LOCALBASE=${LOCALBASE} + +.include diff --git a/devel/py-dm-tree/distinfo b/devel/py-dm-tree/distinfo new file mode 100644 index 000000000000..9e63509bbe76 --- /dev/null +++ b/devel/py-dm-tree/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1712465713 +SHA256 (dm-tree-0.1.8.tar.gz) = 0fcaabbb14e7980377439e7140bd05552739ca5e515ecb3119f234acee4b9430 +SIZE (dm-tree-0.1.8.tar.gz) = 35384 diff --git a/devel/py-dm-tree/files/patch-tree_CMakeLists.txt b/devel/py-dm-tree/files/patch-tree_CMakeLists.txt new file mode 100644 index 000000000000..ae4dc5952ab4 --- /dev/null +++ b/devel/py-dm-tree/files/patch-tree_CMakeLists.txt @@ -0,0 +1,71 @@ +--- tree/CMakeLists.txt.orig 2022-12-18 09:35:42 UTC ++++ tree/CMakeLists.txt +@@ -52,17 +52,18 @@ set(PYBIND_VER v2.10.1) + + # Fetch pybind to be able to use pybind11_add_module symbol. + set(PYBIND_VER v2.10.1) +-include(FetchContent) +-FetchContent_Declare( +- pybind11 +- GIT_REPOSITORY https://github.com/pybind/pybind11 +- GIT_TAG ${PYBIND_VER} +-) +-if(NOT pybind11_POPULATED) +- FetchContent_Populate(pybind11) +- add_subdirectory(${pybind11_SOURCE_DIR} ${pybind11_BINARY_DIR}) +- include_directories(${pybind11_INCLUDE_DIR}) +-endif() ++#include(FetchContent) ++#FetchContent_Declare( ++# pybind11 ++# GIT_REPOSITORY https://github.com/pybind/pybind11 ++# GIT_TAG ${PYBIND_VER} ++#) ++#if(NOT pybind11_POPULATED) ++# FetchContent_Populate(pybind11) ++# add_subdirectory(${pybind11_SOURCE_DIR} ${pybind11_BINARY_DIR}) ++# include_directories(${pybind11_INCLUDE_DIR}) ++#endif() ++find_package(pybind11) + + # Needed to disable Abseil tests. + set (BUILD_TESTING OFF) +@@ -83,27 +84,28 @@ endif() + ${ABSEIL_CMAKE_ARGS} + "-DCMAKE_OSX_ARCHITECTURES=${CMAKE_OSX_ARCHITECTURES}") + endif() +-ExternalProject_Add(abseil-cpp +- GIT_REPOSITORY https://github.com/abseil/abseil-cpp.git +- GIT_TAG ${ABSEIL_VER} +- PREFIX ${CMAKE_SOURCE_DIR}/abseil-cpp +- CMAKE_ARGS ${ABSEIL_CMAKE_ARGS} +-) +-ExternalProject_Get_Property(abseil-cpp install_dir) +-set(abseil_install_dir ${install_dir}) ++#ExternalProject_Add(abseil-cpp ++# GIT_REPOSITORY https://github.com/abseil/abseil-cpp.git ++# GIT_TAG ${ABSEIL_VER} ++# PREFIX ${CMAKE_SOURCE_DIR}/abseil-cpp ++# CMAKE_ARGS ${ABSEIL_CMAKE_ARGS} ++#) ++#ExternalProject_Get_Property(abseil-cpp install_dir) ++find_package(absl REQUIRED) ++set(abseil_install_dir $ENV{FREEBSD_LOCALBASE}) + include_directories (${abseil_install_dir}/include) + + + # Define pybind11 tree module. + pybind11_add_module(_tree tree.h tree.cc) +-add_dependencies(_tree abseil-cpp) ++add_dependencies(_tree absl::strings absl::config) + + if (WIN32 OR MSVC) + set(ABSEIL_LIB_PREF "absl") + set(LIB_SUFF "lib") + else() + set(ABSEIL_LIB_PREF "libabsl") +- set(LIB_SUFF "a") ++ set(LIB_SUFF "so") + endif() + + # Link abseil static libs. diff --git a/devel/py-dm-tree/pkg-descr b/devel/py-dm-tree/pkg-descr new file mode 100644 index 000000000000..f40931a013f0 --- /dev/null +++ b/devel/py-dm-tree/pkg-descr @@ -0,0 +1,3 @@ +tree is a library for working with nested data structures. In a way, tree +generalizes the builtin map function which only supports flat sequences, and +allows to apply a function to each "leaf" preserving the overall structure. diff --git a/devel/py-dm-tree/pkg-plist b/devel/py-dm-tree/pkg-plist new file mode 100644 index 000000000000..1ed1e87e2530 --- /dev/null +++ b/devel/py-dm-tree/pkg-plist @@ -0,0 +1,13 @@ +%%PYTHON_SITELIBDIR%%/tree/__init__.py +%%PYTHON_SITELIBDIR%%/tree/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/tree/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/tree/__pycache__/sequence%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/tree/__pycache__/sequence%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/tree/__pycache__/tree_benchmark%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/tree/__pycache__/tree_benchmark%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/tree/__pycache__/tree_test%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/tree/__pycache__/tree_test%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/tree/_tree%%PYTHON_EXT_SUFFIX%%.so +%%PYTHON_SITELIBDIR%%/tree/sequence.py +%%PYTHON_SITELIBDIR%%/tree/tree_benchmark.py +%%PYTHON_SITELIBDIR%%/tree/tree_test.py