git: 882dd1fe5508 - main - misc/py-python-crc: New port: Pure Python CRC library
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 03 Oct 2025 09:27:38 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=882dd1fe5508e1a115eaa9ad14d5eb5995f7f2e8
commit 882dd1fe5508e1a115eaa9ad14d5eb5995f7f2e8
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-10-03 08:43:54 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-10-03 09:27:32 +0000
misc/py-python-crc: New port: Pure Python CRC library
---
misc/Makefile | 1 +
misc/py-python-crc/Makefile | 22 ++++++++++++++++++++++
misc/py-python-crc/distinfo | 3 +++
misc/py-python-crc/pkg-descr | 12 ++++++++++++
4 files changed, 38 insertions(+)
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