Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/python-gammu/
Date: Mon, 27 Feb 2023 18:02:31
Message-Id: 1677520451.38d2761a3950c6aec64145f7cc79b940d0a4c4ad.mgorny@gentoo
1 commit: 38d2761a3950c6aec64145f7cc79b940d0a4c4ad
2 Author: Petr Vaněk <arkamar <AT> atlas <DOT> cz>
3 AuthorDate: Mon Feb 27 15:29:27 2023 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 27 17:54:11 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=38d2761a
7
8 dev-python/python-gammu: enable py3.11
9
10 - enable py3.11
11 - convert to PEP517
12 - extend HOMEPAGE list
13
14 Closes: https://bugs.gentoo.org/896850
15 Co-authored-by: Michał Górny <mgorny <AT> gentoo.org>
16 Signed-off-by: Petr Vaněk <arkamar <AT> atlas.cz>
17 Closes: https://github.com/gentoo/gentoo/pull/29835
18 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
19
20 dev-python/python-gammu/Manifest | 1 +
21 .../python-gammu/python-gammu-3.2.4-r1.ebuild | 57 ++++++++++++++++++++++
22 2 files changed, 58 insertions(+)
23
24 diff --git a/dev-python/python-gammu/Manifest b/dev-python/python-gammu/Manifest
25 index 142f2e7924a6..8e87bc3fd56d 100644
26 --- a/dev-python/python-gammu/Manifest
27 +++ b/dev-python/python-gammu/Manifest
28 @@ -1 +1,2 @@
29 +DIST python-gammu-3.2.4.gh.tar.gz 144136 BLAKE2B ef06b78568e9b88da95d09029191a2de0c4e26cb6b222326bffd0134a9c7eb743bab20201347d3be8a81db43f6005ec2a0550e1976a59de9ee9202c733ae41e0 SHA512 9d76b402c50018cc52476376952edebb6b0934aa374ea2a2177f5497d0949fcc77644aa2a35c7402b3f2179962d903409b7b1949c5e85a0e5130058d34f89664
30 DIST python-gammu-3.2.4.tar.gz 144136 BLAKE2B ef06b78568e9b88da95d09029191a2de0c4e26cb6b222326bffd0134a9c7eb743bab20201347d3be8a81db43f6005ec2a0550e1976a59de9ee9202c733ae41e0 SHA512 9d76b402c50018cc52476376952edebb6b0934aa374ea2a2177f5497d0949fcc77644aa2a35c7402b3f2179962d903409b7b1949c5e85a0e5130058d34f89664
31
32 diff --git a/dev-python/python-gammu/python-gammu-3.2.4-r1.ebuild b/dev-python/python-gammu/python-gammu-3.2.4-r1.ebuild
33 new file mode 100644
34 index 000000000000..9ac1f19a9373
35 --- /dev/null
36 +++ b/dev-python/python-gammu/python-gammu-3.2.4-r1.ebuild
37 @@ -0,0 +1,57 @@
38 +# Copyright 2022-2023 Gentoo Authors
39 +# Distributed under the terms of the GNU General Public License v2
40 +
41 +EAPI=8
42 +
43 +DISTUTILS_USE_PEP517=setuptools
44 +PYTHON_COMPAT=( python3_{9..11} )
45 +
46 +inherit distutils-r1
47 +
48 +DESCRIPTION="Python bindings for Gammu"
49 +HOMEPAGE="
50 + https://wammu.eu/python-gammu/
51 + https://github.com/gammu/python-gammu/
52 + https://pypi.org/project/python-gammu/
53 +"
54 +SRC_URI="
55 + https://github.com/gammu/python-gammu/archive/${PV}.tar.gz
56 + -> ${P}.gh.tar.gz
57 +"
58 +
59 +LICENSE="GPL-2+"
60 +SLOT="0"
61 +KEYWORDS="~amd64 ~x86"
62 +IUSE="examples test"
63 +RESTRICT="!test? ( test )"
64 +
65 +DEPEND="
66 + >=app-mobilephone/gammu-1.34.0
67 +"
68 +RDEPEND="
69 + ${DEPEND}
70 +"
71 +BDEPEND="
72 + virtual/pkgconfig
73 + test? (
74 + $(python_gen_impl_dep sqlite)
75 + app-mobilephone/gammu[dbi]
76 + )
77 +"
78 +
79 +DOCS=( AUTHORS NEWS.rst README.rst )
80 +
81 +distutils_enable_tests unittest
82 +
83 +python_test() {
84 + rm -rf gammu || die
85 + eunittest
86 +}
87 +
88 +python_install_all() {
89 + distutils-r1_python_install_all
90 + if use examples; then
91 + docompress -x /usr/share/doc/${P}/examples
92 + dodoc -r examples
93 + fi
94 +}