2015-06-10 19:01:03 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= lz4
|
2019-06-10 18:48:20 +02:00
|
|
|
PORTVERSION= 2.1.10
|
2015-06-10 19:01:03 +02:00
|
|
|
CATEGORIES= archivers python
|
|
|
|
MASTER_SITES= CHEESESHOP
|
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
|
2015-06-11 06:40:14 +02:00
|
|
|
MAINTAINER= python@FreeBSD.org
|
2015-06-10 19:01:03 +02:00
|
|
|
COMMENT= Python binding for the LZ4 compression library
|
|
|
|
|
|
|
|
LICENSE= BSD3CLAUSE
|
2017-04-25 16:23:44 +02:00
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
2015-06-10 19:01:03 +02:00
|
|
|
|
2017-12-25 14:54:09 +01:00
|
|
|
BUILD_DEPENDS= liblz4>=1.7.5:archivers/liblz4 \
|
2018-06-20 19:05:41 +02:00
|
|
|
${PYTHON_PKGNAMEPREFIX}pkgconfig>=0:devel/py-pkgconfig@${PY_FLAVOR} \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}setuptools_scm>0:devel/py-setuptools_scm@${PY_FLAVOR}
|
2016-12-24 14:03:21 +01:00
|
|
|
LIB_DEPENDS= liblz4.so:archivers/liblz4
|
2018-08-23 19:59:01 +02:00
|
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}psutil>=0:sysutils/py-psutil@${PY_FLAVOR} \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR}
|
2016-12-24 14:03:21 +01:00
|
|
|
|
2017-12-25 14:54:09 +01:00
|
|
|
USES= python
|
2018-10-15 23:07:59 +02:00
|
|
|
USE_PYTHON= distutils py3kplist
|
2015-06-10 19:01:03 +02:00
|
|
|
|
|
|
|
post-install:
|
2017-04-21 09:29:15 +02:00
|
|
|
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/_version.so \
|
|
|
|
${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/block/_block.so \
|
|
|
|
${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/frame/_frame.so
|
2015-06-10 19:01:03 +02:00
|
|
|
|
2018-09-08 14:33:45 +02:00
|
|
|
do-test:
|
|
|
|
cd ${WRKSRC} && ${PYTHON_CMD} -m pytest
|
|
|
|
|
2018-01-22 16:47:03 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${PYTHON_REL} < 3000
|
2018-06-20 19:05:41 +02:00
|
|
|
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}future>=0:devel/py-future@${PY_FLAVOR}
|
2018-01-22 16:47:03 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|