1 |
commit: c009f3d53f64f0d278afede7ae74a33b64f512c1 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 10 08:15:16 2018 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 10 08:21:53 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c009f3d5 |
7 |
|
8 |
dev-python/pyudev: Drop USE=qt4 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/610826 |
11 |
Package-Manager: Portage-2.3.36, Repoman-2.3.9 |
12 |
|
13 |
dev-python/pyudev/pyudev-0.20.0-r1.ebuild | 59 +++++++++++++++++++++++++++++++ |
14 |
1 file changed, 59 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/pyudev/pyudev-0.20.0-r1.ebuild b/dev-python/pyudev/pyudev-0.20.0-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..1bc6bf6e811 |
19 |
--- /dev/null |
20 |
+++ b/dev-python/pyudev/pyudev-0.20.0-r1.ebuild |
21 |
@@ -0,0 +1,59 @@ |
22 |
+# Copyright 1999-2018 Gentoo Foundation |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=6 |
26 |
+ |
27 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
28 |
+ |
29 |
+inherit distutils-r1 |
30 |
+ |
31 |
+DESCRIPTION="Python binding to libudev" |
32 |
+HOMEPAGE="https://pyudev.readthedocs.io/en/latest/ https://github.com/pyudev/pyudev" |
33 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
34 |
+ |
35 |
+LICENSE="LGPL-2.1" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="amd64 arm ~arm64 x86" |
38 |
+IUSE="pygobject test" |
39 |
+ |
40 |
+RDEPEND=" |
41 |
+ dev-python/six[${PYTHON_USEDEP}] |
42 |
+ virtual/udev |
43 |
+ pygobject? ( dev-python/pygobject:2[$(python_gen_usedep 'python2*')] )" |
44 |
+DEPEND="${RDEPEND} |
45 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
46 |
+ test? ( |
47 |
+ dev-python/docutils[${PYTHON_USEDEP}] |
48 |
+ dev-python/hypothesis[${PYTHON_USEDEP}] |
49 |
+ dev-python/mock[${PYTHON_USEDEP}] |
50 |
+ >=dev-python/pytest-2.8[${PYTHON_USEDEP}] |
51 |
+ )" |
52 |
+ |
53 |
+DOCS=( CHANGES.rst README.rst ) |
54 |
+ |
55 |
+PATCHES=( |
56 |
+ "${FILESDIR}/${PN}-0.19.0-skip-non-deterministic-test.patch" |
57 |
+) |
58 |
+ |
59 |
+REQUIRED_USE="pygobject? ( || ( $(python_gen_useflags 'python2*') ) )" |
60 |
+ |
61 |
+python_prepare_all() { |
62 |
+ if use test; then |
63 |
+ ewarn "If your PORTAGE_TMPDIR is longer in length then '/var/tmp/'," |
64 |
+ ewarn "change it to /var/tmp to ensure tests will pass." |
65 |
+ fi |
66 |
+ |
67 |
+ # tests are known to pass then fail on alternate runs |
68 |
+ # tests: fix run_path |
69 |
+ sed -i -e "s|== \('/run/udev'\)|in (\1,'/dev/.udev')|g" \ |
70 |
+ tests/test_core.py || die |
71 |
+ |
72 |
+ # test needs needs newer dev-cpp/gccxml |
73 |
+ rm -f tests/test_libudev.py |
74 |
+ |
75 |
+ distutils-r1_python_prepare_all |
76 |
+} |
77 |
+ |
78 |
+python_test() { |
79 |
+ py.test || die "Tests fail with ${EPYTHON}" |
80 |
+} |