commit: e31e5058b2d900c334aae969f5edd28d8eedfa9c Author: Eli Schwartz <eschwartz <AT> gentoo <DOT> org> AuthorDate: Fri Nov 29 07:48:25 2024 +0000 Commit: Eli Schwartz <eschwartz <AT> gentoo <DOT> org> CommitDate: Fri Nov 29 21:12:14 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e31e5058
dev-python/jaconv: new package, add 0.4.0 Needed for pykakasi and ultimately for calibre. Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org> dev-python/jaconv/Manifest | 2 ++ dev-python/jaconv/jaconv-0.4.0.ebuild | 41 +++++++++++++++++++++++++++++++++++ dev-python/jaconv/metadata.xml | 16 ++++++++++++++ 3 files changed, 59 insertions(+) diff --git a/dev-python/jaconv/Manifest b/dev-python/jaconv/Manifest new file mode 100644 index 000000000000..de23b01af26f --- /dev/null +++ b/dev-python/jaconv/Manifest @@ -0,0 +1,2 @@ +DIST jaconv-0.4.0-nose-to-pytest.patch 9718 BLAKE2B 3c8386357c2a1359cd7885f9070138aaa743cda747869c0a4af60888def9804f0a2c57d7dc808096f3acb79bfc5ce7c7c45c3da9e9e683e597c3168c1650b1ef SHA512 4d0abc1e26f8d0652114cdd0a7bf6bd30acea5be2e8f21a956a0305ae8363d4e7734d6c082a801b5ef3d83892d53ff709737e587c5e983be76c8dfab068868ca +DIST jaconv-0.4.0.gh.tar.gz 22876 BLAKE2B b37723afdf8516398608919ee5058dae9a99c4f0b258eb0a570b2f4f472637b6cd2e97c6f076b2d42cf74c0f1c1dce852f24a7effde79e8808b6f4e8b55020d8 SHA512 f435f1f61fef2ed36ee387138c767f88bf40dfb9d607b2b8bf9f88b1bbfd969d71c03464ce5b2adba2a65b5441eff6a0b88629cdff415366c2f1b8e6ea510bdf diff --git a/dev-python/jaconv/jaconv-0.4.0.ebuild b/dev-python/jaconv/jaconv-0.4.0.ebuild new file mode 100644 index 000000000000..8a9bfed0bcf4 --- /dev/null +++ b/dev-python/jaconv/jaconv-0.4.0.ebuild @@ -0,0 +1,41 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..13} ) + +# no tags on github, no tests on PyPI +MY_PV=1d8aca73a72a4615b165602af9890517444e45d9 + +inherit distutils-r1 pypi + +DESCRIPTION="Pure-Python Japanese character interconverter" +HOMEPAGE=" + https://pypi.org/project/jaconv/ + https://github.com/ikegami-yukino/jaconv +" +SRC_URI=" + https://github.com/ikegami-yukino/jaconv/archive/${MY_PV}.tar.gz -> ${P}.gh.tar.gz + https://github.com/eli-schwartz/jaconv/commit/4f4160d33267ee7b6ff7386cdcdc6064a315b82a.patch?full_index=1 + -> ${P}-nose-to-pytest.patch +" +S="${WORKDIR}/${PN}-${MY_PV}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +distutils_enable_tests pytest + +PATCHES=( + # https://github.com/ikegami-yukino/jaconv/pull/36 + "${DISTDIR}"/${P}-nose-to-pytest.patch +) + +src_prepare() { + default + # tries to add README as data to install to sys.prefix + sed -i '/data_files/d' setup.py +} diff --git a/dev-python/jaconv/metadata.xml b/dev-python/jaconv/metadata.xml new file mode 100644 index 000000000000..f8fee96e79ae --- /dev/null +++ b/dev-python/jaconv/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>eschwa...@gentoo.org</email> + <name>Eli Schwartz</name> + </maintainer> + <maintainer type="project"> + <email>pyt...@gentoo.org</email> + <name>Python</name> + </maintainer> + <upstream> + <remote-id type="pypi">jaconv</remote-id> + <remote-id type="github">ikegami-yukino/jaconv</remote-id> + </upstream> +</pkgmetadata>