diff --git a/devel/Makefile b/devel/Makefile index d80bd712c720..1ddfb8813906 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4896,6 +4896,7 @@ SUBDIR += py-pycadf SUBDIR += py-pycalendar SUBDIR += py-pycallgraph + SUBDIR += py-pycapnp SUBDIR += py-pycapsicum SUBDIR += py-pycerberus SUBDIR += py-pycmd diff --git a/devel/py-pycapnp/Makefile b/devel/py-pycapnp/Makefile new file mode 100644 index 000000000000..d6b4167ea78f --- /dev/null +++ b/devel/py-pycapnp/Makefile @@ -0,0 +1,23 @@ +PORTNAME= pycapnp +PORTVERSION= 1.1.0 +DISTVERSIONPREFIX= v +CATEGORIES= devel python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sobomax@FreeBSD.org +COMMENT= Python bindings of the Cap'n Proto library + +LICENSE= BSD2CLAUSE + +BUILD_DEPENDS= cmake:devel/cmake \ + ${PYTHON_PKGNAMEPREFIX}pkgconfig>0:devel/py-pkgconfig@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}cython>0:lang/cython@${PY_FLAVOR} +LIB_DEPENDS= libcapnp.so:devel/capnproto + +USES= python:3.7+ +USE_GITHUB= yes +USE_PYTHON= autoplist distutils + +GH_ACCOUNT= capnproto + +.include diff --git a/devel/py-pycapnp/distinfo b/devel/py-pycapnp/distinfo new file mode 100644 index 000000000000..9000eb5b606b --- /dev/null +++ b/devel/py-pycapnp/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1629252062 +SHA256 (capnproto-pycapnp-v1.1.0_GH0.tar.gz) = d0a1499b1effb7b7f1ccdee0df13ae117218976ee2778bffc3b4de6dde95494e +SIZE (capnproto-pycapnp-v1.1.0_GH0.tar.gz) = 122066 diff --git a/devel/py-pycapnp/pkg-descr b/devel/py-pycapnp/pkg-descr new file mode 100644 index 000000000000..b55d30729ce6 --- /dev/null +++ b/devel/py-pycapnp/pkg-descr @@ -0,0 +1,17 @@ +This is a python wrapping of the C++ implementation of the Cap'n Proto +library. Here is a short description, quoted from its docs: + + Cap'n Proto is an insanely fast data interchange form and capability-based + RPC system. Think JSON, except binary. Or think Protocol Buffers, except + faster. In fact, in benchmarks, Cap'n Proto is INFINITY TIMES faster than + Protocol Buffers. + +Since the python library is just a thin wrapping of the C++ library, it +inherits a lot of what makes Cap'n Proto fast. In some simplistic benchmks +(available in the benchmark directory of the repo), pycapnp has proven to be +decently faster than Protocol Buffers (both pure python and C++ +implementations). Also, the python capnp library can load Cap'n Proto schema +files directly, without the need for a seperate compile step like with Protocol +Buffers or Thrift. pycapnp is available on github and pypi. + +WWW: http://capnproto.github.io/pycapnp/