diff options
| author | Yuri Victorovich <yuri@FreeBSD.org> | 2023-05-04 16:24:22 +0000 |
|---|---|---|
| committer | Yuri Victorovich <yuri@FreeBSD.org> | 2023-05-04 16:24:49 +0000 |
| commit | cc6a5c646bd298186f00f2aa1351088b18c16f55 (patch) | |
| tree | 4b33d32f2b579fca693ae6c3654737212ae92221 /math/py-fsph | |
| parent | f2076251c24f02ff9a2873e79ba9053c875b184e (diff) | |
Diffstat (limited to 'math/py-fsph')
| -rw-r--r-- | math/py-fsph/Makefile | 37 | ||||
| -rw-r--r-- | math/py-fsph/distinfo | 3 | ||||
| -rw-r--r-- | math/py-fsph/pkg-descr | 3 |
3 files changed, 43 insertions, 0 deletions
diff --git a/math/py-fsph/Makefile b/math/py-fsph/Makefile new file mode 100644 index 000000000000..b78b8ab6e370 --- /dev/null +++ b/math/py-fsph/Makefile @@ -0,0 +1,37 @@ +PORTNAME= fsph +DISTVERSIONPREFIX= v +DISTVERSION= 0.3.0 +CATEGORIES= math +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Library to quickly compute series of complex spherical harmonics +WWW= https://fsph.readthedocs.io/en/latest/ + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +PY_DEPENDS= ${PYNUMPY} +# ${PYTHON_PKGNAMEPREFIX}tensorflow>0:science/py-tensorflow@${PY_FLAVOR} # tensorflow is an optional dependency that is currently broken: https://github.com/glotzerlab/fsph/issues/6 +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} \ + ${PY_DEPENDS} +RUN_DEPENDS= ${PY_DEPENDS} + +USES= compiler:c++14-lang localbase python +USE_PYTHON= pep517 autoplist pytest + +USE_GITHUB= yes +GH_ACCOUNT= glotzerlab + +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} +TEST_WRKSRC= ${WRKSRC}/tests + +CONFLICTS_BUILD= ${PYTHON_PKGNAMEPREFIX}-tensorflow + +post-install: + @${STRIP_CMD} \ + ${STAGEDIR}${PYTHON_SITELIBDIR}/fsph/_fsph${PYTHON_EXT_SUFFIX}.so + #${STAGEDIR}${PYTHON_SITELIBDIR}/fsph/_tf_ops${PYTHON_EXT_SUFFIX}.so + +.include <bsd.port.mk> diff --git a/math/py-fsph/distinfo b/math/py-fsph/distinfo new file mode 100644 index 000000000000..e0fa409f6890 --- /dev/null +++ b/math/py-fsph/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1683212869 +SHA256 (glotzerlab-fsph-v0.3.0_GH0.tar.gz) = 113a4fdc6787044f8119533925af9d159cb559df2de369200e5affcb1c7df041 +SIZE (glotzerlab-fsph-v0.3.0_GH0.tar.gz) = 150856 diff --git a/math/py-fsph/pkg-descr b/math/py-fsph/pkg-descr new file mode 100644 index 000000000000..b9efb2b2218a --- /dev/null +++ b/math/py-fsph/pkg-descr @@ -0,0 +1,3 @@ +fsph is a library to efficiently compute series of spherical harmonics. + +It is based on math enumerated by Martin J. Mohlenkamp. |
