diff --git a/finance/py-chiapos/Makefile b/finance/py-chiapos/Makefile new file mode 100644 index 0000000..9d711c4 --- /dev/null +++ b/finance/py-chiapos/Makefile @@ -0,0 +1,24 @@ +PORTNAME= chiapos +DISTVERSION= 1.0.3 +CATEGORIES= finance python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= risner@stdio.com +COMMENT= Chia proof of space plotting, proving, and verifying (wraps C++) + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pybind11>0:devel/py-pybind11@${PY_FLAVOR} + +USES= cmake:run,insource,noninja python:3.7+ +USE_CXXSTD= c++17 +USE_PYTHON= autoplist concurrent distutils + +CONFIGURE_WRKSRC= ${WRKSRC}/build + +post-test: + ${WRKSRC}/build/temp.freebsd*/RunTests + +.include diff --git a/finance/py-chiapos/distinfo b/finance/py-chiapos/distinfo new file mode 100644 index 0000000..99c1298 --- /dev/null +++ b/finance/py-chiapos/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1622512112 +SHA256 (chiapos-1.0.3.tar.gz) = d987b481a3acbff1e0d77eb713af8d99ecec2bd11c2c465528a5078a433686bd +SIZE (chiapos-1.0.3.tar.gz) = 1291513 diff --git a/finance/py-chiapos/files/patch-setup.py b/finance/py-chiapos/files/patch-setup.py new file mode 100644 index 0000000..3cfe712 --- /dev/null +++ b/finance/py-chiapos/files/patch-setup.py @@ -0,0 +1,19 @@ +--- setup.py.orig 2021-05-28 02:40:44 UTC ++++ setup.py +@@ -202,6 +202,7 @@ if platform.system() == "Windows": + else: + setup( + name="chiapos", ++ version="1.0.3", + author="Mariano Sorgente", + author_email="mariano@chia.net", + description="Chia proof of space plotting, proving, and verifying (wraps C++)", +@@ -209,7 +210,7 @@ else: + python_requires=">=3.7", + long_description=open("README.md").read(), + long_description_content_type="text/markdown", +- url="https://github.com/Chia-Network/chiavdf", ++ url="https://github.com/Chia-Network/chiapos", + ext_modules=[CMakeExtension("chiapos", ".")], + cmdclass=dict(build_ext=CMakeBuild), + zip_safe=False, diff --git a/finance/py-chiapos/pkg-descr b/finance/py-chiapos/pkg-descr new file mode 100644 index 0000000..8a70ec4 --- /dev/null +++ b/finance/py-chiapos/pkg-descr @@ -0,0 +1,5 @@ +Chia's proof of space is written in C++. Includes a plotter, prover, and +verifier. It exclusively runs on 64 bit architectures. Read the Proof of +Space document to learn about what proof of space is and how it works. + +WWW: https://github.com/Chia-Network/chiapos