git: 611fc74dad44 - main - chinese/py-OpenCC: update 1.3.2 → 1.4.2

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 20 Sep 2026 18:17:10 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=611fc74dad4440da0ace2a7ef55f9e9c62ed4521

commit 611fc74dad4440da0ace2a7ef55f9e9c62ed4521
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-09-20 18:04:23 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-09-20 18:16:46 +0000

    chinese/py-OpenCC: update 1.3.2 → 1.4.2
---
 chinese/py-OpenCC/Makefile | 12 ++++++++++--
 chinese/py-OpenCC/distinfo |  6 +++---
 2 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/chinese/py-OpenCC/Makefile b/chinese/py-OpenCC/Makefile
index fc17203b0439..67648a223666 100644
--- a/chinese/py-OpenCC/Makefile
+++ b/chinese/py-OpenCC/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	OpenCC
-PORTVERSION=	1.3.2
+PORTVERSION=	1.4.2
 CATEGORIES=	chinese python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -17,6 +17,14 @@ BUILD_DEPENDS=	cmake-core>=0:devel/cmake-core \
 		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
 
 USES=		compiler:c++17-lang python
-USE_PYTHON=	autoplist concurrent pep517
+USE_PYTHON=	autoplist concurrent pep517 pytest
+
+TEST_ARGS=	--disable-plugin-autoload python/tests
+TEST_ENV=	${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+post-patch:
+	@${REINPLACE_CMD} -e 's/setuptools>=78.1.1/setuptools>=63.1.0/' ${WRKSRC}/pyproject.toml
+
+# tests as of 1.4.2: 15 passed in 0.58s
 
 .include <bsd.port.mk>
diff --git a/chinese/py-OpenCC/distinfo b/chinese/py-OpenCC/distinfo
index 8dfe35174212..14a6053fda62 100644
--- a/chinese/py-OpenCC/distinfo
+++ b/chinese/py-OpenCC/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1782800156
-SHA256 (opencc-1.3.2.tar.gz) = f6e41dfe1bbe2c3c4c3e42e441ff0b24c774681d375241b996ea62fe8f70038c
-SIZE (opencc-1.3.2.tar.gz) = 11544457
+TIMESTAMP = 1789892502
+SHA256 (opencc-1.4.2.tar.gz) = 47977905f131d7d9cfcec29fba5d841154907e1da73103105a4a68744e0f4f1a
+SIZE (opencc-1.4.2.tar.gz) = 11637673