mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-01 05:45:45 +00:00
textproc/py-language-data: Add py-language-data 1.1
language_data is a supplement to the langcodes module, for working with standardized codes for human languages. It stores the more bulky and hard-to-index data about languages, particularly what they are named in various languages. The functions and test cases for working with this data are in langcodes, because working with the data correctly requires parsing language codes.
This commit is contained in:
parent
2a33c9bfda
commit
d9d3c5d1e3
@ -1406,6 +1406,7 @@
|
||||
SUBDIR += py-langcodes
|
||||
SUBDIR += py-langdetect
|
||||
SUBDIR += py-langid
|
||||
SUBDIR += py-language-data
|
||||
SUBDIR += py-laserhammer
|
||||
SUBDIR += py-latexcodec
|
||||
SUBDIR += py-libxml2
|
||||
|
22
textproc/py-language-data/Makefile
Normal file
22
textproc/py-language-data/Makefile
Normal file
@ -0,0 +1,22 @@
|
||||
PORTNAME= language-data
|
||||
PORTVERSION= 1.1
|
||||
CATEGORIES= textproc python
|
||||
MASTER_SITES= PYPI
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
DISTNAME= language_data-${PORTVERSION}
|
||||
|
||||
MAINTAINER= sunpoet@FreeBSD.org
|
||||
COMMENT= Supplementary data about languages used by the langcodes module
|
||||
WWW= https://github.com/rspeer/language_data
|
||||
|
||||
LICENSE= MIT
|
||||
|
||||
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR}
|
||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}marisa-trie>=0.7.7:devel/py-marisa-trie@${PY_FLAVOR}
|
||||
|
||||
USES= python
|
||||
USE_PYTHON= autoplist concurrent pep517
|
||||
|
||||
NO_ARCH= yes
|
||||
|
||||
.include <bsd.port.mk>
|
3
textproc/py-language-data/distinfo
Normal file
3
textproc/py-language-data/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1708448848
|
||||
SHA256 (language_data-1.1.tar.gz) = c1f5283c46bba68befa37505857a3f672497aba0c522b37d99367e911232455b
|
||||
SIZE (language_data-1.1.tar.gz) = 4668860
|
11
textproc/py-language-data/files/patch-pyproject.toml
Normal file
11
textproc/py-language-data/files/patch-pyproject.toml
Normal file
@ -0,0 +1,11 @@
|
||||
--- pyproject.toml.orig 2021-11-11 17:27:05 UTC
|
||||
+++ pyproject.toml
|
||||
@@ -11,7 +11,7 @@ exclude = ["language_data/data/cldr", "language_data/d
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = ">= 3.6"
|
||||
-marisa-trie = "^0.7.7"
|
||||
+marisa-trie = ">= 0.7.7"
|
||||
|
||||
[tool.poetry.dev-dependencies]
|
||||
|
7
textproc/py-language-data/pkg-descr
Normal file
7
textproc/py-language-data/pkg-descr
Normal file
@ -0,0 +1,7 @@
|
||||
language_data is a supplement to the langcodes module, for working with
|
||||
standardized codes for human languages. It stores the more bulky and
|
||||
hard-to-index data about languages, particularly what they are named in various
|
||||
languages.
|
||||
|
||||
The functions and test cases for working with this data are in langcodes,
|
||||
because working with the data correctly requires parsing language codes.
|
Loading…
Reference in New Issue
Block a user