aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Wener <matthew@wener.org>2024-11-21 20:09:08 +0000
committerDries Michiels <driesm@FreeBSD.org>2024-11-21 20:11:30 +0000
commit113d03a2ff0f4215847e836f07e57900dad7cb86 (patch)
tree1eb6a2c08501e8c20f90da09d3353c2916ff0c27
parentf99fa9aaa52dc13b42d13d6bd63bacc924bb1683 (diff)
archivers/py-pyppmd: add new port
PPMd compression and decompression library. PR: 282837
-rw-r--r--archivers/Makefile1
-rw-r--r--archivers/py-pyppmd/Makefile31
-rw-r--r--archivers/py-pyppmd/distinfo3
-rw-r--r--archivers/py-pyppmd/pkg-descr5
4 files changed, 40 insertions, 0 deletions
diff --git a/archivers/Makefile b/archivers/Makefile
index 9dc3c5ed3c0f..91b502e82364 100644
--- a/archivers/Makefile
+++ b/archivers/Makefile
@@ -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
diff --git a/archivers/py-pyppmd/Makefile b/archivers/py-pyppmd/Makefile
new file mode 100644
index 000000000000..8b0ec5c784c5
--- /dev/null
+++ b/archivers/py-pyppmd/Makefile
@@ -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>
diff --git a/archivers/py-pyppmd/distinfo b/archivers/py-pyppmd/distinfo
new file mode 100644
index 000000000000..8d9d33d98e24
--- /dev/null
+++ b/archivers/py-pyppmd/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1724809518
+SHA256 (pyppmd-1.1.0.tar.gz) = 1d38ce2e4b7eb84b53bc8a52380b94f66ba6c39328b8800b30c2b5bf31693973
+SIZE (pyppmd-1.1.0.tar.gz) = 1348949
diff --git a/archivers/py-pyppmd/pkg-descr b/archivers/py-pyppmd/pkg-descr
new file mode 100644
index 000000000000..cd35014a6741
--- /dev/null
+++ b/archivers/py-pyppmd/pkg-descr
@@ -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.