aboutsummaryrefslogtreecommitdiff
path: root/math/py-rvlib
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2021-09-21 03:06:10 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2021-09-21 03:35:08 +0000
commitcc7cd6a77051deb9e9b11bcab369a264d8529250 (patch)
tree8a33406e76d4db498c24bb419b2c0fecdf4add18 /math/py-rvlib
parent4074909b340a6e5e337de0584901378e341b0a2e (diff)
Diffstat (limited to 'math/py-rvlib')
-rw-r--r--math/py-rvlib/Makefile28
-rw-r--r--math/py-rvlib/distinfo3
-rw-r--r--math/py-rvlib/pkg-descr14
3 files changed, 45 insertions, 0 deletions
diff --git a/math/py-rvlib/Makefile b/math/py-rvlib/Makefile
new file mode 100644
index 000000000000..46715273250a
--- /dev/null
+++ b/math/py-rvlib/Makefile
@@ -0,0 +1,28 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+
+PORTNAME= rvlib
+PORTVERSION= 0.0.5
+CATEGORIES= math python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Probability distributions mimicking Distrbutions.jl
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE.txt
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.0.0:devel/py-cffi@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}yaml>=0:devel/py-yaml@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.0.0:devel/py-cffi@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}numba>=0.49:devel/py-numba@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}yaml>=0:devel/py-yaml@${PY_FLAVOR}
+
+USES= python:3.6+
+USE_PYTHON= autoplist concurrent distutils
+
+post-install:
+ ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
+
+.include <bsd.port.mk>
diff --git a/math/py-rvlib/distinfo b/math/py-rvlib/distinfo
new file mode 100644
index 000000000000..ae94c1e594ad
--- /dev/null
+++ b/math/py-rvlib/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1632036828
+SHA256 (rvlib-0.0.5.tar.gz) = d79b45bedff32653ed4662da1a273d3b3d70ea960ad4fd8d74509888d7f7f45d
+SIZE (rvlib-0.0.5.tar.gz) = 183776
diff --git a/math/py-rvlib/pkg-descr b/math/py-rvlib/pkg-descr
new file mode 100644
index 000000000000..927d84eb5968
--- /dev/null
+++ b/math/py-rvlib/pkg-descr
@@ -0,0 +1,14 @@
+Anyone who has used Distributions.jl will tell you how nice the interface is
+relative to the "exotic" (the most polite word we can think of) interface to
+distributions exposed by scipy.stats. Distributions.jl also brings better
+performace, particularly when its methods are used inside loops.
+
+For these reason we've put together rvlib, which mimics the interface of
+Distributions.jl, while at the same time attaining similar performance by
+exploiting numba.
+
+This package was inspired by Joshua Adelman's (@synapticarbors) blog post
+describing how to call the Rmath C library from numba using CFFI, and utilizes
+his build script to set up the CFFI interface.
+
+WWW: https://github.com/QuantEcon/rvlib