From dcb77d7cd0a6aab100b84d501e2c1b49d539fc75 Mon Sep 17 00:00:00 2001 From: Po-Chuan Hsieh Date: Mon, 3 May 2021 03:43:01 +0800 Subject: archivers/py-brotlicffi: Add py-brotlicffi 1.0.9.2 BrotliCFFI contains Python CFFI bindings for the reference Brotli encoder/decoder. This allows Python software to use the Brotli compression algorithm directly from Python code. WWW: https://github.com/python-hyper/brotlicffi --- archivers/py-brotlicffi/Makefile | 30 ++++++++++++++++++++++++++++++ archivers/py-brotlicffi/distinfo | 3 +++ archivers/py-brotlicffi/pkg-descr | 5 +++++ 3 files changed, 38 insertions(+) create mode 100644 archivers/py-brotlicffi/Makefile create mode 100644 archivers/py-brotlicffi/distinfo create mode 100644 archivers/py-brotlicffi/pkg-descr (limited to 'archivers/py-brotlicffi') diff --git a/archivers/py-brotlicffi/Makefile b/archivers/py-brotlicffi/Makefile new file mode 100644 index 000000000000..5ee0fbcfb4d5 --- /dev/null +++ b/archivers/py-brotlicffi/Makefile @@ -0,0 +1,30 @@ +# Created by: Po-Chuan Hsieh + +PORTNAME= brotlicffi +PORTVERSION= 1.0.9.2 +CATEGORIES= archivers python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Python CFFI bindings to the Brotli library + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.0.0:devel/py-cffi@${PY_FLAVOR} +LIB_DEPENDS= libbrotlienc.so:archivers/brotli +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.0.0:devel/py-cffi@${PY_FLAVOR} + +USES= localbase python:3.6+ +USE_PYTHON= autoplist concurrent distutils + +MAKE_ENV= USE_SHARED_BROTLI=1 + +post-patch: + @${RM} -fr ${WRKSRC}/libbrotli/ + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/brotlicffi/_brotlicffi*.so + +.include diff --git a/archivers/py-brotlicffi/distinfo b/archivers/py-brotlicffi/distinfo new file mode 100644 index 000000000000..4c96df836040 --- /dev/null +++ b/archivers/py-brotlicffi/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1619953881 +SHA256 (brotlicffi-1.0.9.2.tar.gz) = 0c248a68129d8fc6a217767406c731e498c3e19a7be05ea0a90c3c86637b7d96 +SIZE (brotlicffi-1.0.9.2.tar.gz) = 440077 diff --git a/archivers/py-brotlicffi/pkg-descr b/archivers/py-brotlicffi/pkg-descr new file mode 100644 index 000000000000..cab2eae9805d --- /dev/null +++ b/archivers/py-brotlicffi/pkg-descr @@ -0,0 +1,5 @@ +BrotliCFFI contains Python CFFI bindings for the reference Brotli +encoder/decoder. This allows Python software to use the Brotli compression +algorithm directly from Python code. + +WWW: https://github.com/python-hyper/brotlicffi -- cgit v1.2.3