diff options
| author | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2024-02-21 14:13:23 +0000 |
|---|---|---|
| committer | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2024-02-21 15:06:08 +0000 |
| commit | 2a33c9bfda2ff40aadf0c1d0fa88b75ec2572c1e (patch) | |
| tree | 42917a1f6dcad5a447caa6baf4c3eb473aa41404 | |
| parent | 51e1402c8475f5b12707b4138ef10330f05c8614 (diff) | |
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.
| -rw-r--r-- | textproc/Makefile | 1 | ||||
| -rw-r--r-- | textproc/py-langcodes/Makefile | 27 | ||||
| -rw-r--r-- | textproc/py-langcodes/distinfo | 3 | ||||
| -rw-r--r-- | textproc/py-langcodes/pkg-descr | 6 |
4 files changed, 37 insertions, 0 deletions
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. |
