PORTNAME= lz4 PORTVERSION= 4.3.2 CATEGORIES= archivers python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= python@FreeBSD.org COMMENT= Python binding for the LZ4 compression library WWW= https://github.com/python-lz4/python-lz4 LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= liblz4>=1.7.5:archivers/liblz4 \ ${PYTHON_PKGNAMEPREFIX}pkgconfig>=0:devel/py-pkgconfig@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}setuptools_scm>0:devel/py-setuptools_scm@${PY_FLAVOR} LIB_DEPENDS= liblz4.so:archivers/liblz4 TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}psutil>=0:sysutils/py-psutil@${PY_FLAVOR} USES= localbase python USE_PYTHON= distutils pytest CONFIGURE_ENV= PYLZ4_USE_SYSTEM_LZ4=1 post-patch: # Clean up bundled libraries @${RM} -r ${WRKSRC}/lz4libs/ post-install: ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} + .include