diff --git a/dev-python/jieba/Manifest b/dev-python/jieba/Manifest new file mode 100644 index 0000000000..bf5d4d702d --- /dev/null +++ b/dev-python/jieba/Manifest @@ -0,0 +1 @@ +DIST jieba-0.42.1.tar.gz 19214172 BLAKE2B b583e2208193cf39740e28a49cda54657764d96e86cfcf94cf13208ebe424587a5112536a50d65c6178ad2f39d0ee4b49d3995bf291654f01f61b8407c8bd85c SHA512 a27a0deed177fe9bf1663abc6280e5c19dd80b45641e902ab1239bcf1aa9f1b4c75de033808b30afe5322af77288eaa55d49d7973c48e86a014da0f762a0baf8 diff --git a/dev-python/jieba/jieba-0.42.1.ebuild b/dev-python/jieba/jieba-0.42.1.ebuild new file mode 100644 index 0000000000..271fe9dbd4 --- /dev/null +++ b/dev-python/jieba/jieba-0.42.1.ebuild @@ -0,0 +1,29 @@ +# Copyright 2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{11..14} ) +DISTUTILS_USE_PEP517=setuptools +inherit distutils-r1 pypi + +DESCRIPTION="Chinese text segmentation library" +HOMEPAGE=" + https://github.com/fxsjy/jieba + https://pypi.org/project/jieba/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +# Tests are standalone scripts incompatible with pytest, and require +# missing data files (userdict.txt, extra_dict/) not included in sdist +RESTRICT="test" + +src_prepare() { + default + + # Remove deprecated license classifier + sed -i "/License ::/d" setup.py || die +} diff --git a/dev-python/jieba/metadata.xml b/dev-python/jieba/metadata.xml new file mode 100644 index 0000000000..6bc75c559e --- /dev/null +++ b/dev-python/jieba/metadata.xml @@ -0,0 +1,21 @@ + + + + + vowstar@gmail.com + Huang Rui + + + fxsjy/jieba + jieba + + + Jieba is a Chinese text segmentation library for Python. It supports + three segmentation modes: accurate mode, full mode, and search engine + mode. It also supports custom dictionaries and keyword extraction. + + + 结巴分词是一个Python中文分词库。它支持三种分词模式:精确模式、全模式 + 和搜索引擎模式。同时支持自定义词典和关键词提取功能。 + +