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/pycups/
Date: Sat, 29 Jan 2022 21:19:32
Message-Id: 1643490629.5344a32bb90b493c57bb834e7009d4516386773c.mgorny@gentoo
1 commit: 5344a32bb90b493c57bb834e7009d4516386773c
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 29 21:10:29 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 29 21:10:29 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5344a32b
7
8 dev-python/pycups: Switch to PEP 517 build
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pycups/pycups-2.0.1-r1.ebuild | 34 ++++++++++++++++++++++++++++++++
13 1 file changed, 34 insertions(+)
14
15 diff --git a/dev-python/pycups/pycups-2.0.1-r1.ebuild b/dev-python/pycups/pycups-2.0.1-r1.ebuild
16 new file mode 100644
17 index 000000000000..5ee0c6ba6147
18 --- /dev/null
19 +++ b/dev-python/pycups/pycups-2.0.1-r1.ebuild
20 @@ -0,0 +1,34 @@
21 +# Copyright 1999-2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +DISTUTILS_USE_PEP517=setuptools
27 +PYTHON_COMPAT=( python3_{8..10} )
28 +
29 +inherit distutils-r1
30 +
31 +DESCRIPTION="Python bindings for the CUPS API"
32 +HOMEPAGE="https://github.com/OpenPrinting/pycups"
33 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
34 +
35 +LICENSE="GPL-2"
36 +SLOT="0"
37 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
38 +IUSE="examples"
39 +
40 +RDEPEND="net-print/cups"
41 +DEPEND="${RDEPEND}"
42 +
43 +PATCHES=(
44 + # https://github.com/OpenPrinting/pycups/commit/8cbf6d40a0132764ad51e7416aa7034966875091
45 + "${FILESDIR}/${P}-py3.10.patch"
46 +)
47 +
48 +python_install_all() {
49 + if use examples; then
50 + dodoc -r examples
51 + docompress -x /usr/share/doc/${PF}/examples
52 + fi
53 + distutils-r1_python_install_all
54 +}