821a031c39
- Convert to USE_PYTHON=pep517 Changes: https://github.com/google/brotli/releases
34 lines
977 B
Makefile
34 lines
977 B
Makefile
PORTNAME= brotli
|
|
PORTVERSION= 1.1.0
|
|
CATEGORIES= archivers python
|
|
MASTER_SITES= PYPI
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= Brotli-${PORTVERSION}
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= Generic-purpose lossless compression algorithm
|
|
WWW= https://github.com/google/brotli
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BUILD_DEPENDS= brotli>=${PORTVERSION},1<${PORTVERSION}_99,1:archivers/brotli \
|
|
${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
|
|
LIB_DEPENDS= libbrotlicommon.so:archivers/brotli
|
|
|
|
USES= cpe python
|
|
USE_PYTHON= autoplist concurrent pep517
|
|
|
|
CPE_VENDOR= google
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/setup.py
|
|
@${MV} ${WRKSRC}/c/common/version.h ${WRKSRC}/
|
|
# Clean up bundled libraries
|
|
@${RM} -r ${WRKSRC}/c/
|
|
|
|
post-install:
|
|
${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
|
|
|
|
.include <bsd.port.mk>
|