diff --git a/math/Makefile b/math/Makefile index 5eb44d357b11..8bbb621ccf88 100644 --- a/math/Makefile +++ b/math/Makefile @@ -887,6 +887,7 @@ SUBDIR += py-plastex SUBDIR += py-point-annotator SUBDIR += py-pplpy + SUBDIR += py-primecountpy SUBDIR += py-primme SUBDIR += py-pyFFTW SUBDIR += py-pybloom diff --git a/math/py-primecountpy/Makefile b/math/py-primecountpy/Makefile new file mode 100644 index 000000000000..5dc5a693026d --- /dev/null +++ b/math/py-primecountpy/Makefile @@ -0,0 +1,25 @@ +# Created by: thierry@pompo.net + +PORTNAME= primecountpy +PORTVERSION= 0.1.0 +CATEGORIES= math python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= thierry@FreeBSD.org +COMMENT= Primecount Cython interface + +LICENSE= GPLv3 + +BUILD_DEPENDS= ${PYDEPS} +LIB_DEPENDS= libpari.so:math/pari \ + libprimecount.so:math/primecount \ + libprimesieve.so:math/primesieve +RUN_DEPENDS= ${PYDEPS} + +USES= localbase python:3.7+ +USE_PYTHON= cython distutils + +PYDEPS= ${PYTHON_PKGNAMEPREFIX}cysignals>0:devel/py-cysignals@${PY_FLAVOR} + +.include diff --git a/math/py-primecountpy/distinfo b/math/py-primecountpy/distinfo new file mode 100644 index 000000000000..ad3fbcadde22 --- /dev/null +++ b/math/py-primecountpy/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1642085161 +SHA256 (primecountpy-0.1.0.tar.gz) = 78fe7cc32115f0669a45d7c90faaf39f7ce3939e39e2e7e5f14c17fe4bff0676 +SIZE (primecountpy-0.1.0.tar.gz) = 16070 diff --git a/math/py-primecountpy/pkg-descr b/math/py-primecountpy/pkg-descr new file mode 100644 index 000000000000..bf7a15c12818 --- /dev/null +++ b/math/py-primecountpy/pkg-descr @@ -0,0 +1,4 @@ +This is a Cython interface to the C++ library primecount. + +WWW: https://github.com/dimpase/primecountpy +WWW: https://pypi.org/project/primecountpy/ diff --git a/math/py-primecountpy/pkg-plist b/math/py-primecountpy/pkg-plist new file mode 100644 index 000000000000..c759a15b49b9 --- /dev/null +++ b/math/py-primecountpy/pkg-plist @@ -0,0 +1,5 @@ +%%PYTHON_SITELIBDIR%%/primecountpy/__init__.py +%%PYTHON_SITELIBDIR%%/primecountpy/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/primecountpy/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/primecountpy/defs.pxd +%%PYTHON_SITELIBDIR%%/primecountpy/primecount%%PYTHON_EXT_SUFFIX%%.so