Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/codespell/
Date: Sun, 30 Oct 2022 09:35:06
Message-Id: 1667122412.d41810fa6d9c414f274ad6faa0cf7f10b0f5b705.sam@gentoo
1 commit: d41810fa6d9c414f274ad6faa0cf7f10b0f5b705
2 Author: Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net>
3 AuthorDate: Wed Oct 19 14:08:22 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 30 09:33:32 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d41810fa
7
8 dev-util/codespell: add 2.2.2
9
10 Closes: https://bugs.gentoo.org/877619
11 Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net>
12 Closes: https://github.com/gentoo/gentoo/pull/27848
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 dev-util/codespell/Manifest | 1 +
16 dev-util/codespell/codespell-2.2.2.ebuild | 35 +++++++++++++++++++++++++++++++
17 2 files changed, 36 insertions(+)
18
19 diff --git a/dev-util/codespell/Manifest b/dev-util/codespell/Manifest
20 index 2f1664fdd511..279d8d249dc7 100644
21 --- a/dev-util/codespell/Manifest
22 +++ b/dev-util/codespell/Manifest
23 @@ -1 +1,2 @@
24 DIST codespell-2.2.1.tar.gz 211593 BLAKE2B aba431119fd1f16ee51076cd4496ef3f3e80e56a124bbbd4ebbec5dcee5b7e49788db37bcdefd15946d12680596b33ab20ae845fd9a3a3a61ee8c3eed187fe2f SHA512 6c1ce9ed134ba4602cc91c1851a023911ff09ce7d4b1e8a33e655bf821a5b82ae8f0e75defef43e9a8537a6ffc7f0ad7e59af7b200a1294dfe3aff1651869e41
25 +DIST codespell-2.2.2.tar.gz 213652 BLAKE2B 2084f6041c6cf9888b661a1b7b8a73696b1dc6309b8d19adbb0dbdc091d87b487464b12c9800cfec893ed5d6ea71f214d0a4262099617b5fe7e60d8ca448973d SHA512 48be00aa32e55a66814193014e97fcb27ff323ea2db0622f68cd2d3ab31ab8be61f60a09ed91fe3425cbd63b2592bcc44ee9b58fe79e2d498bc27a83a4e93ddd
26
27 diff --git a/dev-util/codespell/codespell-2.2.2.ebuild b/dev-util/codespell/codespell-2.2.2.ebuild
28 new file mode 100644
29 index 000000000000..7e96964cca81
30 --- /dev/null
31 +++ b/dev-util/codespell/codespell-2.2.2.ebuild
32 @@ -0,0 +1,35 @@
33 +# Copyright 1999-2022 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +
38 +DISTUTILS_USE_PEP517=setuptools
39 +PYTHON_COMPAT=( python3_{8..11} pypy3 )
40 +
41 +inherit distutils-r1
42 +
43 +DESCRIPTION="Check text files for common misspellings"
44 +HOMEPAGE="https://pypi.org/project/codespell https://github.com/codespell-project/codespell"
45 +SRC_URI="mirror://pypi/${P::1}/${PN}/${P}.tar.gz"
46 +
47 +# Code licensed under GPL-2, dictionary licensed under CC-BY-SA-3.0
48 +LICENSE="GPL-2 CC-BY-SA-3.0"
49 +SLOT="0"
50 +KEYWORDS="~amd64 ~x86"
51 +
52 +BDEPEND="test? ( dev-python/chardet[${PYTHON_USEDEP}] )"
53 +
54 +distutils_enable_tests pytest
55 +
56 +python_prepare_all() {
57 + distutils-r1_python_prepare_all
58 +
59 + # do not depend on pytest-cov
60 + sed -e '/addopts/d' -i setup.cfg || die
61 +}
62 +
63 +python_install() {
64 + distutils-r1_python_install
65 +
66 + rm -R "${ED}"/$(python_get_sitedir)/bin || die
67 +}