diff --git a/math/Makefile b/math/Makefile index 46d3cfc8e7fe..da34c05825f4 100644 --- a/math/Makefile +++ b/math/Makefile @@ -747,6 +747,7 @@ SUBDIR += py-ffc SUBDIR += py-fiat SUBDIR += py-fpconst + SUBDIR += py-fpylll SUBDIR += py-gau2grid SUBDIR += py-gimmik SUBDIR += py-gmpy diff --git a/math/py-fpylll/Makefile b/math/py-fpylll/Makefile new file mode 100644 index 000000000000..6613bde2ae8c --- /dev/null +++ b/math/py-fpylll/Makefile @@ -0,0 +1,44 @@ +# Created by: thierry@pompo.net +# $FreeBSD$ + +PORTNAME= fpylll +DISTVERSION= 0.5.1dev +CATEGORIES= math python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= thierry@FreeBSD.org +COMMENT= Python interface for fplll + +LICENSE= GPLv2 + +BUILD_DEPENDS= ${PYNUMPY} \ + cython:lang/cython \ + ${PYTHON_PKGNAMEPREFIX}cysignals>0:devel/py-cysignals@${PY_FLAVOR} +LIB_DEPENDS= libfplll.so:math/fplll \ + libgmp.so:math/gmp \ + libmpfr.so:math/mpfr \ + libpari.so:math/pari +RUN_DEPENDS= ${PYNUMPY} \ + ${PYTHON_PKGNAMEPREFIX}cysignals>0:devel/py-cysignals@${PY_FLAVOR} + +USE_GITHUB= yes +GH_ACCOUNT= fplll + +USES= compiler:c++11-lang python:3.6+ +USE_PYTHON= distutils + +OPTIONS_DEFINE= DOCS +DOCS_BUILD_DEPENDS= ${PY_SPHINX} +DOCS_USES= gmake +PORTDOCS= * + +PLIST_SUB= VER=${PORTVERSION:R} + +do-build-DOCS-on: + (cd ${WRKSRC}/docs && ${GMAKE} html) + +post-build-DOCS-on: + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${CP} -R ${WRKSRC}/docs/_build/html/* ${STAGEDIR}${DOCSDIR} + +.include diff --git a/math/py-fpylll/distinfo b/math/py-fpylll/distinfo new file mode 100644 index 000000000000..429177279395 --- /dev/null +++ b/math/py-fpylll/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1589143466 +SHA256 (fplll-fpylll-0.5.1dev_GH0.tar.gz) = 310c864ab7e670525757feae9718f02426e40494650ffee4b35af7d109f18aee +SIZE (fplll-fpylll-0.5.1dev_GH0.tar.gz) = 120564 diff --git a/math/py-fpylll/pkg-descr b/math/py-fpylll/pkg-descr new file mode 100644 index 000000000000..5873571d8daa --- /dev/null +++ b/math/py-fpylll/pkg-descr @@ -0,0 +1,3 @@ +A Python wrapper for fplll. + +WWW: https://github.com/fplll/fpylll diff --git a/math/py-fpylll/pkg-plist b/math/py-fpylll/pkg-plist new file mode 100644 index 000000000000..3dfa4c7921c4 --- /dev/null +++ b/math/py-fpylll/pkg-plist @@ -0,0 +1,67 @@ +%%PYTHON_SITELIBDIR%%/fpylll-%%VER%%.dev0-py%%PYTHON_VER%%.egg-info/PKG-INFO +%%PYTHON_SITELIBDIR%%/fpylll-%%VER%%.dev0-py%%PYTHON_VER%%.egg-info/SOURCES.txt +%%PYTHON_SITELIBDIR%%/fpylll-%%VER%%.dev0-py%%PYTHON_VER%%.egg-info/dependency_links.txt +%%PYTHON_SITELIBDIR%%/fpylll-%%VER%%.dev0-py%%PYTHON_VER%%.egg-info/top_level.txt +%%PYTHON_SITELIBDIR%%/fpylll/__init__.py +%%PYTHON_SITELIBDIR%%/fpylll/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/fpylll/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/fpylll/algorithms/__init__.py +%%PYTHON_SITELIBDIR%%/fpylll/algorithms/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/fpylll/algorithms/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/fpylll/algorithms/__pycache__/bkz.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/fpylll/algorithms/__pycache__/bkz.cpython-%%PYTHON_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/fpylll/algorithms/__pycache__/bkz2.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/fpylll/algorithms/__pycache__/bkz2.cpython-%%PYTHON_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/fpylll/algorithms/__pycache__/pbkz.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/fpylll/algorithms/__pycache__/pbkz.cpython-%%PYTHON_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/fpylll/algorithms/__pycache__/simple_bkz.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/fpylll/algorithms/__pycache__/simple_bkz.cpython-%%PYTHON_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/fpylll/algorithms/__pycache__/simple_dbkz.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/fpylll/algorithms/__pycache__/simple_dbkz.cpython-%%PYTHON_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/fpylll/algorithms/bkz.py +%%PYTHON_SITELIBDIR%%/fpylll/algorithms/bkz2.py +%%PYTHON_SITELIBDIR%%/fpylll/algorithms/pbkz.py +%%PYTHON_SITELIBDIR%%/fpylll/algorithms/simple_bkz.py +%%PYTHON_SITELIBDIR%%/fpylll/algorithms/simple_dbkz.py +%%PYTHON_SITELIBDIR%%/fpylll/config.so +%%PYTHON_SITELIBDIR%%/fpylll/fplll/__init__.py +%%PYTHON_SITELIBDIR%%/fpylll/fplll/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/fpylll/fplll/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/fpylll/fplll/bkz.so +%%PYTHON_SITELIBDIR%%/fpylll/fplll/bkz_param.so +%%PYTHON_SITELIBDIR%%/fpylll/fplll/enumeration.so +%%PYTHON_SITELIBDIR%%/fpylll/fplll/gso.so +%%PYTHON_SITELIBDIR%%/fpylll/fplll/integer_matrix.so +%%PYTHON_SITELIBDIR%%/fpylll/fplll/lll.so +%%PYTHON_SITELIBDIR%%/fpylll/fplll/pruner.so +%%PYTHON_SITELIBDIR%%/fpylll/fplll/sieve_gauss.so +%%PYTHON_SITELIBDIR%%/fpylll/fplll/svpcvp.so +%%PYTHON_SITELIBDIR%%/fpylll/fplll/wrapper.so +%%PYTHON_SITELIBDIR%%/fpylll/gmp/__init__.py +%%PYTHON_SITELIBDIR%%/fpylll/gmp/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/fpylll/gmp/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/fpylll/gmp/pylong.so +%%PYTHON_SITELIBDIR%%/fpylll/io.so +%%PYTHON_SITELIBDIR%%/fpylll/numpy.so +%%PYTHON_SITELIBDIR%%/fpylll/tools/__init__.py +%%PYTHON_SITELIBDIR%%/fpylll/tools/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/fpylll/tools/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/fpylll/tools/__pycache__/benchmark.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/fpylll/tools/__pycache__/benchmark.cpython-%%PYTHON_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/fpylll/tools/__pycache__/bkz_plot.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/fpylll/tools/__pycache__/bkz_plot.cpython-%%PYTHON_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/fpylll/tools/__pycache__/bkz_simulator.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/fpylll/tools/__pycache__/bkz_simulator.cpython-%%PYTHON_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/fpylll/tools/__pycache__/bkz_stats.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/fpylll/tools/__pycache__/bkz_stats.cpython-%%PYTHON_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/fpylll/tools/__pycache__/compare.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/fpylll/tools/__pycache__/compare.cpython-%%PYTHON_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/fpylll/tools/__pycache__/quality.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/fpylll/tools/__pycache__/quality.cpython-%%PYTHON_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/fpylll/tools/benchmark.py +%%PYTHON_SITELIBDIR%%/fpylll/tools/bkz_plot.py +%%PYTHON_SITELIBDIR%%/fpylll/tools/bkz_simulator.py +%%PYTHON_SITELIBDIR%%/fpylll/tools/bkz_stats.py +%%PYTHON_SITELIBDIR%%/fpylll/tools/compare.py +%%PYTHON_SITELIBDIR%%/fpylll/tools/quality.py +%%PYTHON_SITELIBDIR%%/fpylll/util.so