Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Nov 2024 20:19:36 GMT
From:      Dries Michiels <driesm@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 113d03a2ff0f - main - archivers/py-pyppmd: add new port
Message-ID:  <202411212019.4ALKJafi063770@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by driesm:

URL: https://cgit.FreeBSD.org/ports/commit/?id=113d03a2ff0f4215847e836f07e57900dad7cb86

commit 113d03a2ff0f4215847e836f07e57900dad7cb86
Author:     Matthew Wener <matthew@wener.org>
AuthorDate: 2024-11-21 20:09:08 +0000
Commit:     Dries Michiels <driesm@FreeBSD.org>
CommitDate: 2024-11-21 20:11:30 +0000

    archivers/py-pyppmd: add new port
    
    PPMd compression and decompression library.
    
    PR:     282837
---
 archivers/Makefile            |  1 +
 archivers/py-pyppmd/Makefile  | 31 +++++++++++++++++++++++++++++++
 archivers/py-pyppmd/distinfo  |  3 +++
 archivers/py-pyppmd/pkg-descr |  5 +++++
 4 files changed, 40 insertions(+)

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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202411212019.4ALKJafi063770>