git: fe399511665d - main - textproc/py-language-tags: New port: IANA language tags in Python
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 25 Aug 2025 06:18:20 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=fe399511665d206b2e4e40bde580a3a42e3446fa
commit fe399511665d206b2e4e40bde580a3a42e3446fa
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-08-25 03:38:21 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-08-25 06:18:06 +0000
textproc/py-language-tags: New port: IANA language tags in Python
---
textproc/Makefile | 1 +
textproc/py-language-tags/Makefile | 20 ++++++++++++++++++++
textproc/py-language-tags/distinfo | 3 +++
textproc/py-language-tags/pkg-descr | 2 ++
4 files changed, 26 insertions(+)
diff --git a/textproc/Makefile b/textproc/Makefile
index 9b267892ae78..1d744ad9e0d0 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1442,6 +1442,7 @@
SUBDIR += py-langdetect
SUBDIR += py-langid
SUBDIR += py-language-data
+ SUBDIR += py-language-tags
SUBDIR += py-laserhammer
SUBDIR += py-latexcodec
SUBDIR += py-license-expression
diff --git a/textproc/py-language-tags/Makefile b/textproc/py-language-tags/Makefile
new file mode 100644
index 000000000000..e430fddef489
--- /dev/null
+++ b/textproc/py-language-tags/Makefile
@@ -0,0 +1,20 @@
+PORTNAME= language-tags
+DISTVERSION= 1.2.0
+CATEGORIES= textproc python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= ${PORTNAME:S/-/_/}-${PORTVERSION}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= IANA language tags in Python
+WWW= https://github.com/OnroerendErfgoed/language-tags
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= python
+USE_PYTHON= distutils autoplist
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/textproc/py-language-tags/distinfo b/textproc/py-language-tags/distinfo
new file mode 100644
index 000000000000..2e7122638da0
--- /dev/null
+++ b/textproc/py-language-tags/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1756092858
+SHA256 (language_tags-1.2.0.tar.gz) = e934acba3e3dc85f867703eca421847a9ab7b7679b11b5d5cfd096febbf8bde6
+SIZE (language_tags-1.2.0.tar.gz) = 207901
diff --git a/textproc/py-language-tags/pkg-descr b/textproc/py-language-tags/pkg-descr
new file mode 100644
index 000000000000..73e9ed3061c3
--- /dev/null
+++ b/textproc/py-language-tags/pkg-descr
@@ -0,0 +1,2 @@
+language-tags is a Python API offers a way to validate and lookup
+languages tags.