Skip to content

Commit

Permalink
textproc/py-faust-cchardet: New port: High speed universal character …
Browse files Browse the repository at this point in the history
…encoding detector
  • Loading branch information
yurivict committed Oct 22, 2023
1 parent eef70d0 commit e79df2b
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions textproc/Makefile
Expand Up @@ -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
Expand Down
26 changes: 26 additions & 0 deletions 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>
3 changes: 3 additions & 0 deletions 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
3 changes: 3 additions & 0 deletions 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.

0 comments on commit e79df2b

Please sign in to comment.