git: e79df2beed06 - main - textproc/py-faust-cchardet: New port: High speed universal character encoding detector

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 22 Oct 2023 18:30:54 UTC
The branch main has been updated by yuri:

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

commit e79df2beed06349cb8f5af30a6518689400b5bf7
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-10-22 18:30:05 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-10-22 18:30:51 +0000

    textproc/py-faust-cchardet: New port: High speed universal character encoding detector
---
 textproc/Makefile                    |  1 +
 textproc/py-faust-cchardet/Makefile  | 26 ++++++++++++++++++++++++++
 textproc/py-faust-cchardet/distinfo  |  3 +++
 textproc/py-faust-cchardet/pkg-descr |  3 +++
 4 files changed, 33 insertions(+)

diff --git a/textproc/Makefile b/textproc/Makefile
index 84a88103d5be..ecfd81186be0 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1359,6 +1359,7 @@
     SUBDIR += py-evtx2splunk
     SUBDIR += py-extract-msg
     SUBDIR += py-fastavro
+    SUBDIR += py-faust-cchardet
     SUBDIR += py-feedparser
     SUBDIR += py-fingerprints
     SUBDIR += py-fluent.syntax
diff --git a/textproc/py-faust-cchardet/Makefile b/textproc/py-faust-cchardet/Makefile
new file mode 100644
index 000000000000..23af33824f41
--- /dev/null
+++ b/textproc/py-faust-cchardet/Makefile
@@ -0,0 +1,26 @@
+PORTNAME=	faust-cchardet
+DISTVERSION=	2.1.19
+CATEGORIES=	textproc python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	High speed universal character encoding detector
+WWW=		https://github.com/faust-streaming/cChardet
+
+LICENSE=	MPL11
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}pkgconfig>0:devel/py-pkgconfig@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	pep517 cython concurrent autoplist pytest
+
+TEST_ENV=	${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+post-install:
+	@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/cchardet/_cchardet${PYTHON_EXT_SUFFIX}.so
+
+.include <bsd.port.mk>
diff --git a/textproc/py-faust-cchardet/distinfo b/textproc/py-faust-cchardet/distinfo
new file mode 100644
index 000000000000..00e2b5549b5c
--- /dev/null
+++ b/textproc/py-faust-cchardet/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1697998709
+SHA256 (faust-cchardet-2.1.19.tar.gz) = f89386297cde0c8e0f5e21464bc2d6d0e4a4fc1b1d77cdb238ca24d740d872e0
+SIZE (faust-cchardet-2.1.19.tar.gz) = 678871
diff --git a/textproc/py-faust-cchardet/pkg-descr b/textproc/py-faust-cchardet/pkg-descr
new file mode 100644
index 000000000000..1257dd1bf3e2
--- /dev/null
+++ b/textproc/py-faust-cchardet/pkg-descr
@@ -0,0 +1,3 @@
+faust-cchardet, and called cChardet, is a universal character encoding detector.
+
+It supports a lot of languages and encodings.