From nobody Sun May 21 06:39:09 2023 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 4QP9sT3v4mz4C7PZ; Sun, 21 May 2023 06:39:09 +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 4QP9sT3Twmz3lhc; Sun, 21 May 2023 06:39:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684651149; 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=jOeYR+hPnARGcM1ix2PXOosXp4OtEcJw/wWg46vmius=; b=hBka37SaA7uNQdEkob6QqtZ7YTBbxdN/ARR3X1l5kLX4+NGMTY3Cb55ONDXu8N26l+7I26 RSi5qxyR8SSLJXdJv+Bh5HoYUdQ6sfCJ7TVbHWo/qyTVMB9tHxc/FTHMvAs1/n8GtBWjY2 QQ+mHkgwmUVnkD1PW2/s0BUQKAe4pv2LGtMBN0pOH+TKWEm8RKlbloJXHZcqyEJ7YqGwjG 3PkxxgQkfKcs/BLzmMw7dSLRMQ0J2mUe7SPy1g4ZCus4wpJyifKgEQh6NN2QbWSerWOzy5 rDLX4bcd2LU5dsznKu/QjssSk3wr6KTlEjo9liT+jVYqop+6X7c+qq3WGl5a4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684651149; 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=jOeYR+hPnARGcM1ix2PXOosXp4OtEcJw/wWg46vmius=; b=vRltU2Xv7pw4hNW8QUmk3Y9QcV1tc40CCDZC35b6FaQxq4GZhurPjSEAvolULz5JHwJ9d3 mjWuhjePeb8GdacMLitAAYYGxhIV0T01iAoACEXgCsJzOAbXEqil5ua4ZMqNSOT7v85ScB voQ5K4KvyTajdfzTKJmeuYH9Orj+8lPpoHAdmTyzWf8mm6HoIPyy4KE7QgS7t1stya/m74 oUxTD74knq65fFTJoHr+sIn5GRn8qCrX3mrUojUhlB056YpQKigBkFlNCQ1kMUecrMG4WO 5yda1c9l14YnCglfwAoi0Uwq2VjKSLLAXcRx8qbY/v0WMcMZRb1/40FDuqlL9Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684651149; a=rsa-sha256; cv=none; b=bas0tPi8knoHrmqydL8FW82Iq6GMiliTepL5as4Op8ch4utwMAs/3wAcGrbyJKHIX0UQ9D uqjl8bQa49pr8MsKc0/fv9S2NCXswdAGyBDazuBVhRpMwUW5MBzpb4wARetSlr5Cebi0qp 2M46VtCeo2Jv6irleafKBLbpAwCu8UI7WmcaIeIU5AwqzWhLRt1q6o6IZ2Hl7dROdhgjnc tNJRp5y17QJOes3s6ialH3PdMRBAF7WrXDUyHdGJejrHl4cgXYp6wvx3nrWy8F7silXteT 9LSvRmQibGLnTpu4Q1J/nEHyC7Im92BxJ5NdvrFCc14lYlaBe4WgkL+PKwrgNA== 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 4QP9sT29Lxzh85; Sun, 21 May 2023 06:39:09 +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 34L6d9Ro095164; Sun, 21 May 2023 06:39:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 34L6d9O4095163; Sun, 21 May 2023 06:39:09 GMT (envelope-from git) Date: Sun, 21 May 2023 06:39:09 GMT Message-Id: <202305210639.34L6d9O4095163@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: e4464e75cfa6 - main - math/py-ambit: New port: Library for tensor product calculations 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: e4464e75cfa690636b08da956b3e4998c99142e2 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=e4464e75cfa690636b08da956b3e4998c99142e2 commit e4464e75cfa690636b08da956b3e4998c99142e2 Author: Yuri Victorovich AuthorDate: 2023-05-21 05:24:34 +0000 Commit: Yuri Victorovich CommitDate: 2023-05-21 06:39:03 +0000 math/py-ambit: New port: Library for tensor product calculations --- math/Makefile | 1 + math/py-ambit/Makefile | 44 ++++++++++++++++++++++++++++++++ math/py-ambit/distinfo | 3 +++ math/py-ambit/files/patch-CMakeLists.txt | 11 ++++++++ math/py-ambit/pkg-descr | 2 ++ math/py-ambit/pkg-plist | 2 ++ 6 files changed, 63 insertions(+) diff --git a/math/Makefile b/math/Makefile index b7ce4225cd88..70a0b3ede704 100644 --- a/math/Makefile +++ b/math/Makefile @@ -875,6 +875,7 @@ SUBDIR += py-affine SUBDIR += py-algopy SUBDIR += py-altgraph + SUBDIR += py-ambit SUBDIR += py-amply SUBDIR += py-animatplot SUBDIR += py-animatplot-ng diff --git a/math/py-ambit/Makefile b/math/py-ambit/Makefile new file mode 100644 index 000000000000..b7e07dffffdb --- /dev/null +++ b/math/py-ambit/Makefile @@ -0,0 +1,44 @@ +PORTNAME= ambit +DISTVERSIONPREFIX= v +DISTVERSION= 0.7 +CATEGORIES= math +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Library for tensor product calculations +WWW= https://github.com/jturney/ambit + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/../COPYING + +PY_DEPENDS= ${PYNUMPY} +BUILD_DEPENDS= pybind11>0:devel/pybind11 \ + ${PY_DEPENDS} +LIB_DEPENDS= libambit.so:math/ambit \ + libhdf5.so:science/hdf5 \ + libopenblas.so:math/openblas +RUN_DEPENDS= ${PY_DEPENDS} + +USES= cmake compiler:c++17-lang python:build +USE_PYTHON= flavors pytest + +USE_GITHUB= yes +GH_ACCOUNT= jturney + +WRKSRC_SUBDIR= pyambit + +CMAKE_ARGS= -DPYMOD_INSTALL_LIBDIR:STRING=/python${_PYTHON_VERSION}/site-packages \ + -DFREEBSD_PYTHON_VER=${PYTHON_VER} + +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} +TEST_WRKSRC= ${WRKSRC} + +post-install: # remove share/cmake/ambit/ambitTargets-Python-%%CMAKE_BUILD_TYPE%%.cmake, and tests + @${RM} -r \ + ${STAGEDIR}${PREFIX}/share \ + ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/ambit/tests + +pre-test: + @${RM} ${WRKSRC}/__init__.py # tests fail with __init__.py + +.include diff --git a/math/py-ambit/distinfo b/math/py-ambit/distinfo new file mode 100644 index 000000000000..22974df3fadf --- /dev/null +++ b/math/py-ambit/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1684643393 +SHA256 (jturney-ambit-v0.7_GH0.tar.gz) = 97a4360db5cad6c9d2bc0932fc8641a3feb34a809c192c99886880073e87f8c2 +SIZE (jturney-ambit-v0.7_GH0.tar.gz) = 336129 diff --git a/math/py-ambit/files/patch-CMakeLists.txt b/math/py-ambit/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..fff0caf40101 --- /dev/null +++ b/math/py-ambit/files/patch-CMakeLists.txt @@ -0,0 +1,11 @@ +--- CMakeLists.txt.orig 2023-05-21 04:59:24 UTC ++++ CMakeLists.txt +@@ -23,7 +23,7 @@ set(CMAKECONFIG_INSTALL_DIR "${ambit_INSTALL_CMAKEDIR} + + #if (NOT TARGET Python::Module) + set(Python_ADDITIONAL_VERSIONS 3.11 3.10 3.9 3.8 3.7) # adjust with CMake minimum FindPythonInterp +- find_package(Python 3.7 COMPONENTS Interpreter Development NumPy REQUIRED) ++ find_package(Python ${FREEBSD_PYTHON_VER} EXACT COMPONENTS Interpreter Development NumPy REQUIRED) + message(STATUS "Found Python ${Python_VERSION_MAJOR}.${Python_VERSION_MINOR}: ${Python_EXECUTABLE} (found version ${Python_VERSION})") + #endif() + diff --git a/math/py-ambit/pkg-descr b/math/py-ambit/pkg-descr new file mode 100644 index 000000000000..eb77d7758b8e --- /dev/null +++ b/math/py-ambit/pkg-descr @@ -0,0 +1,2 @@ +Python bindings for the C++ library implementing the tensor product calculations +through a clean, concise user interface. diff --git a/math/py-ambit/pkg-plist b/math/py-ambit/pkg-plist new file mode 100644 index 000000000000..e0963c5099d4 --- /dev/null +++ b/math/py-ambit/pkg-plist @@ -0,0 +1,2 @@ +%%PYTHON_SITELIBDIR%%/ambit/__init__.py +%%PYTHON_SITELIBDIR%%/ambit/pyambit%%PYTHON_EXT_SUFFIX%%.so