diff options
| author | Yuri Victorovich <yuri@FreeBSD.org> | 2025-10-03 08:43:54 +0000 |
|---|---|---|
| committer | Yuri Victorovich <yuri@FreeBSD.org> | 2025-10-03 09:27:32 +0000 |
| commit | 882dd1fe5508e1a115eaa9ad14d5eb5995f7f2e8 (patch) | |
| tree | 72e8f48b83c648e41c7b6f3f797cca6bd09e81c7 | |
| parent | afc80b137888862cd5fb514aa57dad1e6b45802a (diff) | |
misc/py-python-crc: New port: Pure Python CRC library
| -rw-r--r-- | misc/Makefile | 1 | ||||
| -rw-r--r-- | misc/py-python-crc/Makefile | 22 | ||||
| -rw-r--r-- | misc/py-python-crc/distinfo | 3 | ||||
| -rw-r--r-- | misc/py-python-crc/pkg-descr | 12 |
4 files changed, 38 insertions, 0 deletions
diff --git a/misc/Makefile b/misc/Makefile index f86d4ada596e..f21c590c9af3 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -543,6 +543,7 @@ SUBDIR += py-pypatent SUBDIR += py-pyprind SUBDIR += py-pyqir + SUBDIR += py-python-crc SUBDIR += py-python-geohash SUBDIR += py-python-utils SUBDIR += py-pytorch diff --git a/misc/py-python-crc/Makefile b/misc/py-python-crc/Makefile new file mode 100644 index 000000000000..62ad05205bc4 --- /dev/null +++ b/misc/py-python-crc/Makefile @@ -0,0 +1,22 @@ +PORTNAME= crc +DISTVERSION= 7.1.0 +CATEGORIES= misc python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}python- # because it builds crc*.whl + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Pure Python CRC library +WWW= https://nicoretti.github.io/crc/ \ + https://github.com/Nicoretti/crc + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>0:devel/py-poetry-core@${PY_FLAVOR} + +USES= python +USE_PYTHON= pep517 concurrent autoplist + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/misc/py-python-crc/distinfo b/misc/py-python-crc/distinfo new file mode 100644 index 000000000000..1029e7855a37 --- /dev/null +++ b/misc/py-python-crc/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1759476302 +SHA256 (crc-7.1.0.tar.gz) = 99dd540909a37ae4f62c65441df8ecb4e7f9af014fecaf4f331052a41d66c07d +SIZE (crc-7.1.0.tar.gz) = 9888 diff --git a/misc/py-python-crc/pkg-descr b/misc/py-python-crc/pkg-descr new file mode 100644 index 000000000000..14420c7d70a1 --- /dev/null +++ b/misc/py-python-crc/pkg-descr @@ -0,0 +1,12 @@ +Pure Python CRC library. + +Calculate CRC checksums, verify CRC checksum, predefined CRC configurations, +and custom CRC configurations. + +Features: +* Calculate CRC8, CRC16, CRC32, and CRC64 checksums +* Verify CRC checksums +* Pre-defined configurations for common CRC algorithms (CCITT, XMODEM, etc.) +* Custom configurations support +* Optimized table-based calculations for speed +* Command-line interface for CRC calculations |
