git: c10880a096ee - main - textproc/py-cchardet: Update to 2.3.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 20 Sep 2026 01:01:29 UTC
The branch main has been updated by sunpoet:

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

commit c10880a096eeef598cde1101f232b9a7a65756df
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2026-09-20 00:57:07 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2026-09-20 00:57:07 +0000

    textproc/py-cchardet: Update to 2.3.0
    
    Changes:        https://github.com/PyYoshi/cChardet/releases
---
 textproc/py-cchardet/Makefile                   |  5 ++---
 textproc/py-cchardet/distinfo                   |  6 +++---
 textproc/py-cchardet/files/patch-pyproject.toml | 21 +++++++++++++++++++++
 3 files changed, 26 insertions(+), 6 deletions(-)

diff --git a/textproc/py-cchardet/Makefile b/textproc/py-cchardet/Makefile
index e897fb38d4f8..a62114adfdc0 100644
--- a/textproc/py-cchardet/Makefile
+++ b/textproc/py-cchardet/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	cchardet
-PORTVERSION=	2.1.7
-PORTREVISION=	2
+PORTVERSION=	2.3.0
 CATEGORIES=	textproc python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -13,7 +12,7 @@ LICENSE=	GPLv2 LGPL21 MPL11
 LICENSE_COMB=	dual
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=61:devel/py-setuptools@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
 
 USES=		cmake:indirect python
diff --git a/textproc/py-cchardet/distinfo b/textproc/py-cchardet/distinfo
index 755e392c3aef..931dde5da91e 100644
--- a/textproc/py-cchardet/distinfo
+++ b/textproc/py-cchardet/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1604680190
-SHA256 (cchardet-2.1.7.tar.gz) = c428b6336545053c2589f6caf24ea32276c6664cb86db817e03a94c60afa0eaf
-SIZE (cchardet-2.1.7.tar.gz) = 653617
+TIMESTAMP = 1789834676
+SHA256 (cchardet-2.3.0.tar.gz) = e08fade06af9aa4888ad99609a66bbce99ad01c1269c0ea673af75a15a6f762e
+SIZE (cchardet-2.3.0.tar.gz) = 246049
diff --git a/textproc/py-cchardet/files/patch-pyproject.toml b/textproc/py-cchardet/files/patch-pyproject.toml
new file mode 100644
index 000000000000..b1a780185883
--- /dev/null
+++ b/textproc/py-cchardet/files/patch-pyproject.toml
@@ -0,0 +1,21 @@
+--- pyproject.toml.orig	2026-09-15 16:20:56 UTC
++++ pyproject.toml
+@@ -4,8 +4,7 @@ readme = { file = 'README.md', content-type = 'text/ma
+ urls.Homepage = 'https://github.com/PyYoshi/cChardet'
+ description = 'cChardet is high speed universal character encoding detector.'
+ readme = { file = 'README.md', content-type = 'text/markdown' }
+-license = "MPL-1.1 OR GPL-2.0-or-later OR LGPL-2.1-or-later"
+-license-files = ["COPYING"]
++license = { text = "MPL-1.1 OR GPL-2.0-or-later OR LGPL-2.1-or-later" }
+ classifiers = [
+     'Programming Language :: Cython',
+     'Programming Language :: Python',
+@@ -20,7 +19,7 @@ dynamic = ["version"]
+ dynamic = ["version"]
+ 
+ [build-system]
+-requires = ["setuptools>=77", "Cython>=3.2.9,<3.4"]
++requires = ["setuptools>=61", "Cython>=3.2.9,<3.4"]
+ build-backend = "setuptools.build_meta"
+ 
+ [project.scripts]