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.
This commit is contained in:
Po-Chuan Hsieh 2024-02-21 22:13:23 +08:00
parent 51e1402c84
commit 2a33c9bfda
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B
4 changed files with 37 additions and 0 deletions

View File

@ -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

View File

@ -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>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1708448846
SHA256 (langcodes-3.3.0.tar.gz) = 794d07d5a28781231ac335a1561b8442f8648ca07cd518310aeb45d6f0807ef6
SIZE (langcodes-3.3.0.tar.gz) = 189505

View File

@ -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.