From nobody Sun Nov 27 10:12:25 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 4NKktL3NvMz4hT6X; Sun, 27 Nov 2022 10:12:26 +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 4NKktL0rkzz4KHq; Sun, 27 Nov 2022 10:12:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669543946; 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=ElIbILzoSgFnL5EWCHyobMmkc9UDISbH5f+mHSaAhf8=; b=S33Wg0DG+n1CwKfhrWkQSRbaOVaVo6YaMiMaG52LTUNN4RLWl5HUZAgxhGFhw3PVIXsP3W i+p7Sh5vtWO4qEJMNZP3ip/7epZFEdc16JbKFSr4dE8FsnWVl98k2+xLdixhQ7Idr2gRjF nxz7KvhC8Oe1MLbA3ix+pTPKIK+JX/4C2ScvNFWs+gCkx3R3BnTHnQJY3l29KLhpLpD6Lb uFV6LIRE7B3PRQwTY2MDnFWVGf0rR5/V7jLlDsQ7tMQKjY03ZqiilnibbF3A32RU/aQdSR aHChkS+e3rbH2VxJVuvjVlKwodRfor/z7J7uuN+188O5X2Vf9gHV+Z7pkvf9Mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669543946; 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=ElIbILzoSgFnL5EWCHyobMmkc9UDISbH5f+mHSaAhf8=; b=DJESp3hUZWhGb9jZ8eekRZ6OtiJ582YQZBmUDZzpjb6wHYj2+pFxh9YkYZ83rAlvbx++4d k/5viLaZ2mwJpoOVneNHCEQg93KLOxK4V4gsS3Rbzj0ISDhxI3NfMev+Q8RXOxAOQsn5Uc sWIAA6eN/sMM2700+549N5A/Z4+RYnYYNEK6Hrx+plWZKhwYpaZxpnPHyy43DxzecYDGQe gnDdpARbzLttF2filRMpmycjEPCEXfvLT+7XKftLZ+CQcigkIHLOV/WcMON71dCbjqQK8x SVhs2FAl5mzh97tAIHpOa4vXzOe570yPopYk5iPPMeh1GdMFYfQTt+AtjmaWmQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1669543946; a=rsa-sha256; cv=none; b=al2OhQ/1A7FW+13GSfozZrEdVME4woMF4M8rzMeZ43P5TUbOqDHbPL1jZGpqC6uvv8s0BR DraiZzAS2CJ37Ru5c6G5Nuz9Hb5vypc6zes7DXylLrUhHIzRpAtUyn39lNYsDUkHcFgHSE h7E0X8rUT23AZST8BfwchZWF//DgTR+R0dPyOPSmXgw/ro9uAud6kJB/J862wIi/MEhiVN jAtgRnqFNAAJnLU5panoOCuV5tJu3idfZfUBXPw3N54EK2Ic3ljHAu4j+AGJzFBeAkWqRb IgCuccxq40bXzB9f8mo4T2KieMFSobwZ7+e7N95q6wO1xELfL/DDfVl3IinZZg== 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 4NKktK74SkzvVX; Sun, 27 Nov 2022 10:12:25 +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 2ARACPkT026996; Sun, 27 Nov 2022 10:12:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2ARACP74026995; Sun, 27 Nov 2022 10:12:25 GMT (envelope-from git) Date: Sun, 27 Nov 2022 10:12:25 GMT Message-Id: <202211271012.2ARACP74026995@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: 8feba41c4afa - main - science/py-arbor: New port: Multi-compartment neural network simulation library 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: 8feba41c4afa8d9ad4df7e10bb3992c79b32a03d Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=8feba41c4afa8d9ad4df7e10bb3992c79b32a03d commit 8feba41c4afa8d9ad4df7e10bb3992c79b32a03d Author: Yuri Victorovich AuthorDate: 2022-11-27 10:11:32 +0000 Commit: Yuri Victorovich CommitDate: 2022-11-27 10:12:21 +0000 science/py-arbor: New port: Multi-compartment neural network simulation library --- science/Makefile | 1 + science/py-arbor/Makefile | 35 +++++++++++++++++++++++++++++ science/py-arbor/distinfo | 3 +++ science/py-arbor/files/patch-CMakeLists.txt | 28 +++++++++++++++++++++++ science/py-arbor/pkg-descr | 3 +++ science/py-arbor/pkg-plist | 3 +++ 6 files changed, 73 insertions(+) diff --git a/science/Makefile b/science/Makefile index c67e3684888c..e9d5ac65faf8 100644 --- a/science/Makefile +++ b/science/Makefile @@ -283,6 +283,7 @@ SUBDIR += py-SimpleSpectral SUBDIR += py-abipy SUBDIR += py-access + SUBDIR += py-arbor SUBDIR += py-asap3 SUBDIR += py-asdf SUBDIR += py-asdf-standard diff --git a/science/py-arbor/Makefile b/science/py-arbor/Makefile new file mode 100644 index 000000000000..567c01f16f9c --- /dev/null +++ b/science/py-arbor/Makefile @@ -0,0 +1,35 @@ +PORTNAME= arbor +DISTVERSIONPREFIX= v +DISTVERSION= 0.8 +CATEGORIES= science +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Multi-compartment neural network simulation library +WWW= https://arbor-sim.org/ + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/../LICENSE + +BUILD_DEPENDS= pybind11>0:devel/pybind11 +LIB_DEPENDS= libarbor.so:science/arbor + +USES= cmake compiler:c++17-lang localbase:ldflags python + +USE_GITHUB= yes +GH_ACCOUNT= arbor-sim + +WRKSRC_SUBDIR= python + +CMAKE_ARGS= -DPython3_EXECUTABLE=${PYTHON_CMD} \ + -DARB_PYTHON_LIB_PATH=${PYTHONPREFIX_SITELIBDIR} + +CXXFLAGS+= -fPIC + +post-patch: + @${ECHO} ${DISTVERSION} > ${WRKSRC}/VERSION + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/arbor/_arbor${PYTHON_EXT_SUFFIX}.so + +.include diff --git a/science/py-arbor/distinfo b/science/py-arbor/distinfo new file mode 100644 index 000000000000..6a64e8f1e731 --- /dev/null +++ b/science/py-arbor/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1669535366 +SHA256 (arbor-sim-arbor-v0.8_GH0.tar.gz) = ee6b2486b1142cf4412dddd1caece0926d1712b8d1868283e3bfe73e4ec2cb71 +SIZE (arbor-sim-arbor-v0.8_GH0.tar.gz) = 7794543 diff --git a/science/py-arbor/files/patch-CMakeLists.txt b/science/py-arbor/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..9441da10091c --- /dev/null +++ b/science/py-arbor/files/patch-CMakeLists.txt @@ -0,0 +1,28 @@ +--- CMakeLists.txt.orig 2022-11-15 15:19:19 UTC ++++ CMakeLists.txt +@@ -1,3 +1,7 @@ ++cmake_minimum_required(VERSION 3.19) ++ ++find_package(Python3 ${arb_py_version} COMPONENTS Interpreter Development REQUIRED) ++ + include(GNUInstallDirs) + + set(PYBIND11_CPP_STANDARD -std=c++17) +@@ -79,14 +83,14 @@ if (ARB_WITH_MPI) + endif() + + # For unit tests on C++ side of Python wrappers +-add_subdirectory(test) ++#add_subdirectory(test) + + # Create the Python module in the build directory. + # The module contains the dynamic library, __init__.py and VERSION information. + set(python_mod_path "${CMAKE_CURRENT_BINARY_DIR}/arbor") + set_target_properties(pyarb PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${python_mod_path}") +-file(COPY "${PROJECT_SOURCE_DIR}/python/__init__.py" DESTINATION "${python_mod_path}") +-file(COPY "${PROJECT_SOURCE_DIR}/VERSION" DESTINATION "${python_mod_path}") ++file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/__init__.py" DESTINATION "${python_mod_path}") ++file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/VERSION" DESTINATION "${python_mod_path}") + + # Set the installation path + diff --git a/science/py-arbor/pkg-descr b/science/py-arbor/pkg-descr new file mode 100644 index 000000000000..6350b89f2e28 --- /dev/null +++ b/science/py-arbor/pkg-descr @@ -0,0 +1,3 @@ +Arbor is a multi-compartment neuron simulation library; compatible with +next-generation accelerators; best-practices applied to research software; +focussed on community-driven development. diff --git a/science/py-arbor/pkg-plist b/science/py-arbor/pkg-plist new file mode 100644 index 000000000000..c4ff5834b200 --- /dev/null +++ b/science/py-arbor/pkg-plist @@ -0,0 +1,3 @@ +%%PYTHON_SITELIBDIR%%/arbor/VERSION +%%PYTHON_SITELIBDIR%%/arbor/__init__.py +%%PYTHON_SITELIBDIR%%/arbor/_arbor%%PYTHON_EXT_SUFFIX%%.so