Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/python-xlib/
Date: Mon, 10 Oct 2016 07:39:25
Message-Id: 1476085151.309031fc6ffddceee447ce194bddcbe032e67acd.monsieurp@gentoo
1 commit: 309031fc6ffddceee447ce194bddcbe032e67acd
2 Author: Naohiro Aota <naota <AT> gentoo <DOT> org>
3 AuthorDate: Fri Oct 7 06:24:35 2016 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 10 07:39:11 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=309031fc
7
8 dev-python/python-xlib: version bump to 0.17.
9
10 - Project has moved to GitHub: https://github.com/python-xlib/python-xlib
11 - Support for Python 3 (3.3, 3.4 and 3.5) has been added.
12
13 Gentoo-Bug: https://bugs.gentoo.org/591292
14 Package-Manager: portage-2.3.1
15 Closes: https://github.com/gentoo/gentoo/pull/2502
16
17 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
18
19 dev-python/python-xlib/Manifest | 1 +
20 dev-python/python-xlib/python-xlib-0.17.ebuild | 52 ++++++++++++++++++++++++++
21 2 files changed, 53 insertions(+)
22
23 diff --git a/dev-python/python-xlib/Manifest b/dev-python/python-xlib/Manifest
24 index 1e3981c..cb4d523 100644
25 --- a/dev-python/python-xlib/Manifest
26 +++ b/dev-python/python-xlib/Manifest
27 @@ -1 +1,2 @@
28 DIST python-xlib-0.15rc1.tar.gz 188750 SHA256 823734489fc8c47113deb606fdc7142759d4c45546014255af8c5b8787b9accb SHA512 e27f56e0d76fac534e6754b1e64316636b49859eb6c9ceef5952c8b42cf53bc798a705fa54c283c896324d9a23778beec583cb62984a6a43b024643a70f3fe3a WHIRLPOOL bdca7c97cfbf438cce6297d5d035488986886d95f6f80014c9d9b1966720b98600b13f6dc09b6aed209787833e3174a0bf8444c3ba9c46e9f106051b978d322b
29 +DIST python-xlib-0.17.tar.bz2 185804 SHA256 600e820e340528184a873c5c4dccc67d7e4c34d658606fffadb02f32b5edd38a SHA512 0c3346de00304f8028492ef1eb7a9d0e22e750f9d51714e5a458e734218ef69760a07a5b3436eda70c9a952d52848757e1ead520bdaaefaf1b6575e0cc299b88 WHIRLPOOL 81d73930abe5277a0daa7ab2b245172315eff311d30dff532a9c10997d7d7ffd8de9d7f8a0ee2992b18f5ad58734511b30916c9c3f45ba34555f09750710c1e6
30
31 diff --git a/dev-python/python-xlib/python-xlib-0.17.ebuild b/dev-python/python-xlib/python-xlib-0.17.ebuild
32 new file mode 100644
33 index 00000000..2213985
34 --- /dev/null
35 +++ b/dev-python/python-xlib/python-xlib-0.17.ebuild
36 @@ -0,0 +1,52 @@
37 +# Copyright 1999-2016 Gentoo Foundation
38 +# Distributed under the terms of the GNU General Public License v2
39 +# $Id$
40 +
41 +EAPI=6
42 +
43 +PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy )
44 +
45 +inherit distutils-r1
46 +
47 +DESCRIPTION="A fully functional X client library for Python, written in Python"
48 +HOMEPAGE="https://github.com/python-xlib/python-xlib"
49 +SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.bz2"
50 +
51 +LICENSE="LGPL-2+"
52 +SLOT="0"
53 +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
54 +IUSE="doc"
55 +
56 +RDEPEND="dev-python/six[${PYTHON_USEDEP}]"
57 +DEPEND="${RDEPEND}
58 + dev-python/setuptools_scm[${PYTHON_USEDEP}]"
59 +
60 +# DISTUTILS_IN_SOURCE_BUILD=1
61 +
62 +python_prepare_all() {
63 + sed -e 's:make:$(MAKE):g' -i doc/Makefile || die
64 + cp -r "${FILESDIR}"/defs doc/src/ || die
65 +
66 + distutils-r1_python_prepare_all
67 +}
68 +
69 +python_compile_all() {
70 + if use doc; then
71 + cd doc || die
72 + VARTEXFONTS="${T}"/fonts emake html
73 + fi
74 +}
75 +
76 +python_test() {
77 + cd test || die
78 +
79 + local t
80 + for t in *.py; do
81 + "${EPYTHON}" "${t}" || die
82 + done
83 +}
84 +
85 +python_install_all() {
86 + use doc && local HTML_DOCS=( doc/html/. )
87 + distutils-r1_python_install_all
88 +}