1 |
commit: 1b1ccef7b21635b4e62c77f15329e82886330349 |
2 |
Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 31 21:34:09 2016 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 31 21:34:09 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b1ccef7 |
7 |
|
8 |
dev-python/pyudev: Version bump to 0.20.0 |
9 |
|
10 |
Package-Manager: portage-2.3.0_rc1 |
11 |
|
12 |
dev-python/pyudev/Manifest | 1 + |
13 |
dev-python/pyudev/pyudev-0.20.0.ebuild | 62 ++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 63 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/pyudev/Manifest b/dev-python/pyudev/Manifest |
17 |
index 25e94a8..584ff00 100644 |
18 |
--- a/dev-python/pyudev/Manifest |
19 |
+++ b/dev-python/pyudev/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST pyudev-0.16.1.tar.gz 74953 SHA256 765d1c14bd9bd031f64e2612225621984cb2bbb8cbc0c03538bcc4c735ff1c95 SHA512 7f62c6794027411583f874bdf746de457f19048955867d30008bc1ee0d30040a97f73b9e52ae3645d469fc401128703d4e703e294b85481e927ffaba27e45e6a WHIRLPOOL 4c366a1eed92bf274ef84eab6242beb09cd6e906556f6ccb24113fafec2dcc47b8da94487505473fc6f7b39539cdc2809cef2d07a1ab8c0616fc73efba9b2e1a |
22 |
DIST pyudev-0.19.0.tar.gz 96556 SHA256 5abcbd03e4965110d1fedcbdd5532974cb4638ceef34337aa2d5758eceb54ad3 SHA512 7faee69e8e3512e27b0d9271191d4b2906652b2c7f3a803be026a10499d184c1fc41db80624dec9f33ee890d71a695214c6bfd47f6cc41b979f71f619836f3f8 WHIRLPOOL 6b496f0f977b97247a13ba4f9f8efe24624d932c6cfc7616922473d8839a90500f60d3b238bbab4a9c9cdd6c5997606ee41de63669e3b2fa868d1b6f28ae492b |
23 |
+DIST pyudev-0.20.0.tar.gz 93217 SHA256 14d85bc9611dbf798732996cb7107858f58a3a1b9d246e4063c7a20ade65842a SHA512 e86a776a2b6d29f206cdd0057c6f9b1e705d981ec8c2de49259887647856531af68238b80751102a3ffc8cea6f234cc520d62c8bc2da686e453ed010da3ebb02 WHIRLPOOL 8344c668c1cc2e7971a67d0e628e3ce96254648ad06b48f260dd4ee54e3e205e533e59b692169b38dd656c08d8cd615d0c7c518b5c2a785553b8c6468e70520c |
24 |
|
25 |
diff --git a/dev-python/pyudev/pyudev-0.20.0.ebuild b/dev-python/pyudev/pyudev-0.20.0.ebuild |
26 |
new file mode 100644 |
27 |
index 0000000..d4561cf |
28 |
--- /dev/null |
29 |
+++ b/dev-python/pyudev/pyudev-0.20.0.ebuild |
30 |
@@ -0,0 +1,62 @@ |
31 |
+# Copyright 1999-2016 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+# $Id$ |
34 |
+ |
35 |
+EAPI=6 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python{2_7,3_3,3_4} ) |
38 |
+ |
39 |
+inherit distutils-r1 |
40 |
+ |
41 |
+DESCRIPTION="Python binding to libudev" |
42 |
+HOMEPAGE="http://pyudev.readthedocs.org https://github.com/pyudev/pyudev" |
43 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="LGPL-2.1" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
48 |
+IUSE="pygobject pyqt4 pyside test" |
49 |
+ |
50 |
+RDEPEND="virtual/udev |
51 |
+ dev-python/six[${PYTHON_USEDEP}] |
52 |
+ pygobject? ( dev-python/pygobject:2[$(python_gen_usedep 'python2*')] ) |
53 |
+ pyqt4? ( dev-python/PyQt4[${PYTHON_USEDEP}] ) |
54 |
+ pyside? ( dev-python/pyside[$(python_gen_usedep '!(python3_3)')] )" |
55 |
+DEPEND="${RDEPEND} |
56 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
57 |
+ test? ( |
58 |
+ dev-python/docutils[${PYTHON_USEDEP}] |
59 |
+ dev-python/hypothesis[${PYTHON_USEDEP}] |
60 |
+ dev-python/mock[${PYTHON_USEDEP}] |
61 |
+ >=dev-python/pytest-2.8[${PYTHON_USEDEP}] |
62 |
+ )" |
63 |
+ |
64 |
+DOCS=( CHANGES.rst README.rst ) |
65 |
+ |
66 |
+PATCHES=( |
67 |
+ "${FILESDIR}/${PN}-0.19.0-skip-non-deterministic-test.patch" |
68 |
+) |
69 |
+ |
70 |
+REQUIRED_USE="pygobject? ( || ( $(python_gen_useflags 'python2*') ) ) |
71 |
+ pyside? ( $(python_gen_useflags '!(python3_3)') )" |
72 |
+ |
73 |
+python_prepare_all() { |
74 |
+ if use test; then |
75 |
+ ewarn "If your PORTAGE_TMPDIR is longer in length then '/var/tmp/'," |
76 |
+ ewarn "change it to /var/tmp to ensure tests will pass." |
77 |
+ fi |
78 |
+ |
79 |
+ # tests are known to pass then fail on alternate runs |
80 |
+ # tests: fix run_path |
81 |
+ sed -i -e "s|== \('/run/udev'\)|in (\1,'/dev/.udev')|g" \ |
82 |
+ tests/test_core.py || die |
83 |
+ |
84 |
+ # test needs needs newer dev-cpp/gccxml |
85 |
+ rm -f tests/test_libudev.py |
86 |
+ |
87 |
+ distutils-r1_python_prepare_all |
88 |
+} |
89 |
+ |
90 |
+python_test() { |
91 |
+ py.test || die "Tests fail with ${EPYTHON}" |
92 |
+} |