From nobody Wed Feb 21 15:17:23 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Tg0J43Hsdz59dd4; Wed, 21 Feb 2024 15:17:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tg0J40CWMz4tjW; Wed, 21 Feb 2024 15:17:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708528644; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=by+QZP3cqUcvdcBk4uB3Z3/KwSmxl3BDG/OYGpDfpik=; b=COzpBDsnLCBjr70nFARPsYyrOoOOhdIdD62Ilk8TSLkRBGA0CrBNr4hnVV3qM3/88sxbh2 A48D5nrzYPPSM/Tt4wRWgJg6Tru6x6p9tF7Mwwjm3a64rmtsqw6e5xbr5Z/jIFU++ey8bU uvOLKL6imjFuVCQV6T9Z3vqIuFrJ+myTUzpegFOmofOh9apGL7H1zUyvvVBtDRcX8JDQGL ilEpa1NJ6ZwSzQVtvbRNUeAjl1MG9fL2W/YKNXcZJhidlwkfYsOhJR/9W/WX0+DljWC3D3 gcBvIE9zq20swG6tSTk0aHBRPEy+ChcZZOuFHmAZ68T4buB6ByMYa6xJYk3YtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708528644; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=by+QZP3cqUcvdcBk4uB3Z3/KwSmxl3BDG/OYGpDfpik=; b=qCS4VhKm/E4U/roi73N5h1X0bm++qTY5Ypro2w+0MsqyS2FqnKWV1kEA7f65HzHDrdUM+r jTVq4XQ47Yuu3PJ8YkznKpIIbwYF/Q71ZMcLEsI+2xEVCN8kA9bb0rsnA1K/TW3Hkfwq0u axdt6GZ9t4914W7VYTDYc3kuFqOt7dSE0GdC5N99xbSWcH6+STTE5UkPVeMaAb0OLNxxoZ FVHTIn3Ag3Zhuxzlbh1pBs1kuCif34SuxakgJGYfno9jAjSShRyIxQKuQ8So0WF4jAGF0D auWygd7wFobE3kxbAl9yfK4teAtKZkC27vXbHw89TXFc8KbUoGrPYwPjFcC19w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708528644; a=rsa-sha256; cv=none; b=xbxtwvIIstvBy8x6jwMmPWyPiOYeLF9GHgAJ/f1fkbBji1UgEOqQNsUSsb00h+GtcgP301 TrwBcz2/D9CjdWSREr24EOSWBxRDzxZS0Ex9Ocg4dzqkVIzdJqE7wiSolg5ep4ksXlBKC2 GrdYc2gqlQjvnbls+Cw78MWfUdDPAzNsb34azO4VUW9GueZMjGKXv1MI5duN6EOobSHsZg pBUps+yHyFv0BL3cEX9uIxgT4YQQHb/P2WBzyCQUaAYoSep1SQ5pCYi2AtpNpgOvdncsHA hMl8dORSTXqegroSJOHxuF0YrihrHM3OpKyMWYpsh4CmBgZ9fndV49wRpado7w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Tg0J36NTGz16kP; Wed, 21 Feb 2024 15:17:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41LFHNbm012516; Wed, 21 Feb 2024 15:17:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41LFHN5d012513; Wed, 21 Feb 2024 15:17:23 GMT (envelope-from git) Date: Wed, 21 Feb 2024 15:17:23 GMT Message-Id: <202402211517.41LFHN5d012513@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: d9d3c5d1e34b - main - textproc/py-language-data: Add py-language-data 1.1 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d9d3c5d1e34b69640aec0e85466cd372c9dcf27c Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=d9d3c5d1e34b69640aec0e85466cd372c9dcf27c commit d9d3c5d1e34b69640aec0e85466cd372c9dcf27c Author: Po-Chuan Hsieh AuthorDate: 2024-02-21 14:13:26 +0000 Commit: Po-Chuan Hsieh CommitDate: 2024-02-21 15:06:09 +0000 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. --- textproc/Makefile | 1 + textproc/py-language-data/Makefile | 22 ++++++++++++++++++++++ textproc/py-language-data/distinfo | 3 +++ .../py-language-data/files/patch-pyproject.toml | 11 +++++++++++ textproc/py-language-data/pkg-descr | 7 +++++++ 5 files changed, 44 insertions(+) diff --git a/textproc/Makefile b/textproc/Makefile index bc1e67f61263..d96dde273ada 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -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 diff --git a/textproc/py-language-data/Makefile b/textproc/py-language-data/Makefile new file mode 100644 index 000000000000..6f7b637f255a --- /dev/null +++ b/textproc/py-language-data/Makefile @@ -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 diff --git a/textproc/py-language-data/distinfo b/textproc/py-language-data/distinfo new file mode 100644 index 000000000000..88a46e6db8f1 --- /dev/null +++ b/textproc/py-language-data/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1708448848 +SHA256 (language_data-1.1.tar.gz) = c1f5283c46bba68befa37505857a3f672497aba0c522b37d99367e911232455b +SIZE (language_data-1.1.tar.gz) = 4668860 diff --git a/textproc/py-language-data/files/patch-pyproject.toml b/textproc/py-language-data/files/patch-pyproject.toml new file mode 100644 index 000000000000..70ed6789da3f --- /dev/null +++ b/textproc/py-language-data/files/patch-pyproject.toml @@ -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] + diff --git a/textproc/py-language-data/pkg-descr b/textproc/py-language-data/pkg-descr new file mode 100644 index 000000000000..cd78712c5588 --- /dev/null +++ b/textproc/py-language-data/pkg-descr @@ -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.