git: 18f7c8f2d60e - main - textproc/py-zxing-cpp: New port: Python bindings for the zxing-cpp barcode library

Yuri Victorovich <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.ports
Message-ID <[email protected]>
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=18f7c8f2d60eb55118a3cf5b1c6672ec74007c92

commit 18f7c8f2d60eb55118a3cf5b1c6672ec74007c92
Author:     Yuri Victorovich <[email protected]>
AuthorDate: 2026-08-07 16:11:19 +0000
Commit:     Yuri Victorovich <[email protected]>
CommitDate: 2026-08-07 17:18:56 +0000

    textproc/py-zxing-cpp: New port: Python bindings for the zxing-cpp barcode library
---
 textproc/Makefile               |  1 +
 textproc/py-zxing-cpp/Makefile  | 31 +++++++++++++++++++++++++++++++
 textproc/py-zxing-cpp/distinfo  |  3 +++
 textproc/py-zxing-cpp/pkg-descr |  5 +++++
 4 files changed, 40 insertions(+)

diff --git a/textproc/Makefile b/textproc/Makefile
index f0a1d80eefa8..64597d0ede9f 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1837,6 +1837,7 @@
     SUBDIR += py-zensical
     SUBDIR += py-zope.i18nmessageid
     SUBDIR += py-zpt
+    SUBDIR += py-zxing-cpp
     SUBDIR += pymupdf4llm-mcp
     SUBDIR += qo
     SUBDIR += qprint
diff --git a/textproc/py-zxing-cpp/Makefile b/textproc/py-zxing-cpp/Makefile
new file mode 100644
index 000000000000..24cc33bcbae5
--- /dev/null
+++ b/textproc/py-zxing-cpp/Makefile
@@ -0,0 +1,31 @@
+PORTNAME=	zxing-cpp
+DISTVERSION=	3.1.1
+CATEGORIES=	textproc python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	${PORTNAME:S/-/_/g}-${DISTVERSION}
+
+MAINTAINER=	[email protected]
+COMMENT=	Python bindings for the zxing-cpp barcode library
+WWW=		https://github.com/zxing-cpp/zxing-cpp
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}nanobind>=2.11.0:devel/py-nanobind@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}scikit-build-core>=0.12:devel/py-scikit-build-core@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.12:devel/py-typing-extensions@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+
+USES=		compiler:c++20-lang cmake:indirect python # adding ninja:build here makes build parallelized, need to investigate why it isn't parallelized with BSD make
+USE_PYTHON=	autoplist concurrent pep517 pytest
+
+TEST_ARGS=	test.py
+TEST_ENV=	${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+post-install:
+	@${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
+
+# tests as of 3.1.1: 18 passed, 5 warnings in 1.16s
+
+.include <bsd.port.mk>
diff --git a/textproc/py-zxing-cpp/distinfo b/textproc/py-zxing-cpp/distinfo
new file mode 100644
index 000000000000..bc20b5e69760
--- /dev/null
+++ b/textproc/py-zxing-cpp/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1786115424
+SHA256 (zxing_cpp-3.1.1.tar.gz) = 1051a521b21a9fe206702ad4186aeb195154e3e1badcd99576d030723f36382b
+SIZE (zxing_cpp-3.1.1.tar.gz) = 1437030
diff --git a/textproc/py-zxing-cpp/pkg-descr b/textproc/py-zxing-cpp/pkg-descr
new file mode 100644
index 000000000000..c6075e33bf84
--- /dev/null
+++ b/textproc/py-zxing-cpp/pkg-descr
@@ -0,0 +1,5 @@
+Python bindings for the zxing-cpp barcode library.
+
+zxing-cpp is a C++ port of ZXing, the widely used open-source multi-format
+1D/2D barcode image processing library. This package exposes barcode reading
+and writing functionality to Python via nanobind.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.