Gentoo Archives: gentoo-commits

From: Sebastian Pipping <sping@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/python-xlib/
Date: Tue, 22 Jan 2019 13:49:28
Message-Id: 1548164951.8f066619c4ed9e17de9bdec08b00b6fd34550592.sping@gentoo
1 commit: 8f066619c4ed9e17de9bdec08b00b6fd34550592
2 Author: Sebastian Pipping <sping <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 22 13:41:18 2019 +0000
4 Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 22 13:49:11 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f066619
7
8 dev-python/python-xlib: Python 3.7
9
10 Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org>
11 Package-Manager: Portage-2.3.50, Repoman-2.3.11
12
13 dev-python/python-xlib/python-xlib-0.23-r1.ebuild | 41 +++++++++++++++++++++++
14 1 file changed, 41 insertions(+)
15
16 diff --git a/dev-python/python-xlib/python-xlib-0.23-r1.ebuild b/dev-python/python-xlib/python-xlib-0.23-r1.ebuild
17 new file mode 100644
18 index 00000000000..39686f93674
19 --- /dev/null
20 +++ b/dev-python/python-xlib/python-xlib-0.23-r1.ebuild
21 @@ -0,0 +1,41 @@
22 +# Copyright 1999-2019 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=6
26 +
27 +PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} pypy )
28 +
29 +inherit distutils-r1 virtualx
30 +
31 +DESCRIPTION="A fully functional X client library for Python, written in Python"
32 +HOMEPAGE="https://github.com/python-xlib/python-xlib"
33 +SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.bz2"
34 +
35 +LICENSE="LGPL-2+"
36 +SLOT="0"
37 +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
38 +IUSE="doc"
39 +
40 +RDEPEND="dev-python/six[${PYTHON_USEDEP}]"
41 +DEPEND="${RDEPEND}
42 + dev-python/setuptools_scm[${PYTHON_USEDEP}]
43 + doc? ( sys-apps/texinfo )"
44 +
45 +# DISTUTILS_IN_SOURCE_BUILD=1
46 +
47 +python_compile_all() {
48 + use doc && emake -C doc/info
49 +}
50 +
51 +src_test() {
52 + virtx distutils-r1_src_test
53 +}
54 +
55 +python_test() {
56 + "${EPYTHON}" -m unittest discover -v || die "Tests fail with ${EPYTHON}"
57 +}
58 +
59 +python_install_all() {
60 + use doc && doinfo doc/info/*.info
61 + distutils-r1_python_install_all
62 +}