archivers/py-pyppmd: add new port

PPMd compression and decompression library.

PR:	282837
This commit is contained in:
Matthew Wener 2024-11-21 21:09:08 +01:00 committed by Dries Michiels
parent f99fa9aaa5
commit 113d03a2ff
4 changed files with 40 additions and 0 deletions

View file

@ -203,6 +203,7 @@
SUBDIR += py-lzstring
SUBDIR += py-patool
SUBDIR += py-pyminizip
SUBDIR += py-pyppmd
SUBDIR += py-python-lhafile
SUBDIR += py-python-lzo
SUBDIR += py-python-rpm-packaging

View file

@ -0,0 +1,31 @@
PORTNAME= pyppmd
PORTVERSION= 1.1.0
CATEGORIES= archivers python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= matthew@wener.org
COMMENT= PPMd compression/decompression library
WWW= https://pyppmd.readthedocs.io/en/latest/
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PY_SETUPTOOLS} \
${PYTHON_PKGNAMEPREFIX}setuptools-scm>=0:devel/py-setuptools-scm@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hypothesis>=0:devel/py-hypothesis@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest-benchmark>=0:devel/py-pytest-benchmark@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest-cov>=0:devel/py-pytest-cov@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest-timeout>=0:devel/py-pytest-timeout@${PY_FLAVOR}
USES= python
USE_PYTHON= autoplist pep517 pytest
TEST_ENV= ${MAKE_ENV} \
PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
do-test:
@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1724809518
SHA256 (pyppmd-1.1.0.tar.gz) = 1d38ce2e4b7eb84b53bc8a52380b94f66ba6c39328b8800b30c2b5bf31693973
SIZE (pyppmd-1.1.0.tar.gz) = 1348949

View file

@ -0,0 +1,5 @@
pyppmd module provides classes and functions for compressing
and decompressing text data, using PPM (Prediction by partial
matching) compression algorithm which has several variations
of implementations. PPMd is the implementation by Dmitry
Shkarin. PyPPMD use Igor Pavlov's range coder introduced in 7-zip.