ports/archivers/py-zstd/Makefile
Charlie Li 06a08e69f3
python: bump all USE_PYTHON=distutils consumers after RUN_DEPENDS removal
Any missed ports, feel free to bump.

Any ports that need setuptools at runtime can have the devel/py-setuptools
manually added back to RUN_DEPENDS, but understand that this practice
is deprecated; see CHANGES for details.
2025-03-07 23:05:21 -05:00

28 lines
673 B
Makefile

PORTNAME= zstd
DISTVERSION= 1.5.5.1
PORTREVISION= 1
CATEGORIES= archivers python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Python binding for Zstandard compression library
WWW= https://github.com/sergey-dryabzhinsky/python-zstd
LICENSE= BSD2CLAUSE
LIB_DEPENDS= libzstd.so:archivers/zstd
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
USES= python localbase
USE_PYTHON= distutils autoplist
PYDISTUTILS_BUILDARGS= --external
post-install:
@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/zstd*.so
do-test: install
@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest
.include <bsd.port.mk>