git: 2a33c9bfda2f - main - textproc/py-langcodes: Add py-langcodes 3.3.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 21 Feb 2024 15:17:22 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=2a33c9bfda2ff40aadf0c1d0fa88b75ec2572c1e commit 2a33c9bfda2ff40aadf0c1d0fa88b75ec2572c1e Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2024-02-21 14:13:23 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2024-02-21 15:06:08 +0000 textproc/py-langcodes: Add py-langcodes 3.3.0 langcodes knows what languages are. It knows the standardized codes that refer to them, such as en for English, es for Spanish and hi for Hindi. These are IETF language tags. You may know them by their old name, ISO 639 language codes. IETF has done some important things for backward compatibility and supporting language variations that you won't find in the ISO standard. --- textproc/Makefile | 1 + textproc/py-langcodes/Makefile | 27 +++++++++++++++++++++++++++ textproc/py-langcodes/distinfo | 3 +++ textproc/py-langcodes/pkg-descr | 6 ++++++ 4 files changed, 37 insertions(+) diff --git a/textproc/Makefile b/textproc/Makefile index 70813069b4b1..bc1e67f61263 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1403,6 +1403,7 @@ SUBDIR += py-junit-xml SUBDIR += py-jupyter_sphinx SUBDIR += py-jupyterlab-pygments + SUBDIR += py-langcodes SUBDIR += py-langdetect SUBDIR += py-langid SUBDIR += py-laserhammer diff --git a/textproc/py-langcodes/Makefile b/textproc/py-langcodes/Makefile new file mode 100644 index 000000000000..e902a7b8cc48 --- /dev/null +++ b/textproc/py-langcodes/Makefile @@ -0,0 +1,27 @@ +PORTNAME= langcodes +PORTVERSION= 3.3.0 +CATEGORIES= textproc python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Tools for labeling human languages with IETF language tags +WWW= https://github.com/rspeer/langcodes + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +OPTIONS_DEFINE= DATA +OPTIONS_DEFAULT=DATA +DATA_DESC= Use supplementary language data + +DATA_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}language-data>=1.1<2:textproc/py-language-data@${PY_FLAVOR} + +.include <bsd.port.mk> diff --git a/textproc/py-langcodes/distinfo b/textproc/py-langcodes/distinfo new file mode 100644 index 000000000000..3f6cf5e4d157 --- /dev/null +++ b/textproc/py-langcodes/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1708448846 +SHA256 (langcodes-3.3.0.tar.gz) = 794d07d5a28781231ac335a1561b8442f8648ca07cd518310aeb45d6f0807ef6 +SIZE (langcodes-3.3.0.tar.gz) = 189505 diff --git a/textproc/py-langcodes/pkg-descr b/textproc/py-langcodes/pkg-descr new file mode 100644 index 000000000000..fd2af8750603 --- /dev/null +++ b/textproc/py-langcodes/pkg-descr @@ -0,0 +1,6 @@ +langcodes knows what languages are. It knows the standardized codes that refer +to them, such as en for English, es for Spanish and hi for Hindi. + +These are IETF language tags. You may know them by their old name, ISO 639 +language codes. IETF has done some important things for backward compatibility +and supporting language variations that you won't find in the ISO standard.