mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
dcb77d7cd0
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
31 lines
779 B
Makefile
31 lines
779 B
Makefile
# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
|
|
|
|
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 <bsd.port.mk>
|