git: 964dc98687b6 - main - math/py-awkward-cpp: Add py-awkward-cpp 21
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 16 Aug 2023 18:30:27 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=964dc98687b675566603d52a3a729eb0893afd7e commit 964dc98687b675566603d52a3a729eb0893afd7e Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2023-08-16 18:06:44 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2023-08-16 18:25:06 +0000 math/py-awkward-cpp: Add py-awkward-cpp 21 awkward-cpp provides precompiled routines for the awkward package. It is not useful on its own, only as a dependency for awkward . --- math/Makefile | 1 + math/py-awkward-cpp/Makefile | 34 ++++++++++++++++++++++++++++++++++ math/py-awkward-cpp/distinfo | 3 +++ math/py-awkward-cpp/pkg-descr | 2 ++ 4 files changed, 40 insertions(+) diff --git a/math/Makefile b/math/Makefile index 3f4a236988a9..9e1c33f35056 100644 --- a/math/Makefile +++ b/math/Makefile @@ -893,6 +893,7 @@ SUBDIR += py-arybo SUBDIR += py-autograd SUBDIR += py-awkward + SUBDIR += py-awkward-cpp SUBDIR += py-baycomp SUBDIR += py-bayesian-optimization SUBDIR += py-benford_py diff --git a/math/py-awkward-cpp/Makefile b/math/py-awkward-cpp/Makefile new file mode 100644 index 000000000000..28681e1c3d6e --- /dev/null +++ b/math/py-awkward-cpp/Makefile @@ -0,0 +1,34 @@ +PORTNAME= awkward-cpp +PORTVERSION= 21 +CATEGORIES= math python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= CPU kernels and compiled extensions for Awkward Array +WWW= https://awkward-array.org/doc/main/ \ + https://github.com/scikit-hep/awkward/tree/main/awkward-cpp + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= cmake:devel/cmake-core \ + ${PYTHON_PKGNAMEPREFIX}pybind11>=0:devel/py-pybind11@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}scikit-build-core>=0.2.0:devel/py-scikit-build-core@${PY_FLAVOR} \ + rapidjson>=0:devel/rapidjson +# scikit-build-core[pyproject] +BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}pathspec>=0.10.1:devel/py-pathspec@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pyproject-metadata>=0.5:devel/py-pyproject-metadata@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=1.18.0,1:math/py-numpy@${PY_FLAVOR} + +USES= compiler:c++11-lang localbase python +USE_PYTHON= autoplist concurrent pep517 + +post-patch: +# Clean up bundled libraries + @${RM} -r ${WRKSRC}/rapidjson/ + +post-install: + ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} + + +.include <bsd.port.mk> diff --git a/math/py-awkward-cpp/distinfo b/math/py-awkward-cpp/distinfo new file mode 100644 index 000000000000..ced09f55f26a --- /dev/null +++ b/math/py-awkward-cpp/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1691069902 +SHA256 (awkward-cpp-21.tar.gz) = b286e63de803048ff812f769c6b636f13b0d3bcbf22e1b91b15f6cfb9593851e +SIZE (awkward-cpp-21.tar.gz) = 1419403 diff --git a/math/py-awkward-cpp/pkg-descr b/math/py-awkward-cpp/pkg-descr new file mode 100644 index 000000000000..85b719568af9 --- /dev/null +++ b/math/py-awkward-cpp/pkg-descr @@ -0,0 +1,2 @@ +awkward-cpp provides precompiled routines for the awkward package. It is not +useful on its own, only as a dependency for awkward .