git: bb4380c670eb - main - devel/py-encutils: Add py-encutils 1.0.0
Po-Chuan Hsieh <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.cvs.ports |
|---|---|
| Message-ID | <[email protected]> |
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=bb4380c670ebbb7999daeb6959f95c2e9b7c0fc0 commit bb4380c670ebbb7999daeb6959f95c2e9b7c0fc0 Author: Po-Chuan Hsieh <[email protected]> AuthorDate: 2026-08-19 12:24:26 +0000 Commit: Po-Chuan Hsieh <[email protected]> CommitDate: 2026-08-19 12:55:10 +0000 devel/py-encutils: Add py-encutils 1.0.0 encutils provides a collection of helper functions to detect encodings of text files (like HTML, XHTML, XML, CSS, etc.) retrieved via HTTP, file or string. --- devel/Makefile | 1 + devel/py-encutils/Makefile | 23 +++++++++++++++++++++++ devel/py-encutils/distinfo | 3 +++ devel/py-encutils/pkg-descr | 2 ++ 4 files changed, 29 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index c270e84c4316..b172ff2058f8 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5019,6 +5019,7 @@ SUBDIR += py-electrum-aionostr SUBDIR += py-electrum-ecc SUBDIR += py-eliot + SUBDIR += py-encutils SUBDIR += py-enlighten SUBDIR += py-entrypoint2 SUBDIR += py-entrypoints diff --git a/devel/py-encutils/Makefile b/devel/py-encutils/Makefile new file mode 100644 index 000000000000..c451db99dcd6 --- /dev/null +++ b/devel/py-encutils/Makefile @@ -0,0 +1,23 @@ +PORTNAME= encutils +PORTVERSION= 1.0.0 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= [email protected] +COMMENT= Encoding detection collection for Python +WWW= https://cthedot.de/encutils/ \ + https://github.com/coherent-oss/encutils + +LICENSE= LGPL3+ +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flit-core>=3.11<4:devel/py-flit-core@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}chardet>=0,1:textproc/py-chardet@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/devel/py-encutils/distinfo b/devel/py-encutils/distinfo new file mode 100644 index 000000000000..b69b2fa9373e --- /dev/null +++ b/devel/py-encutils/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1784005000 +SHA256 (encutils-1.0.0.tar.gz) = 38eca5af18cebabd8be43c17f14c9d3fbba83cc5f7ac8e3ab1c86e24c4b2b91a +SIZE (encutils-1.0.0.tar.gz) = 22831 diff --git a/devel/py-encutils/pkg-descr b/devel/py-encutils/pkg-descr new file mode 100644 index 000000000000..eafe07a61ed5 --- /dev/null +++ b/devel/py-encutils/pkg-descr @@ -0,0 +1,2 @@ +encutils provides a collection of helper functions to detect encodings of text +files (like HTML, XHTML, XML, CSS, etc.) retrieved via HTTP, file or string.