1 |
commit: 02e6af52390f16a3f7b25744de303a0e69d724e3 |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 28 05:22:54 2022 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 28 05:23:12 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02e6af52 |
7 |
|
8 |
dev-python/python-xlib: fix with python[-tk] |
9 |
|
10 |
Closes: https://bugs.gentoo.org/881851 |
11 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
12 |
|
13 |
.../files/python-xlib-0.32-drop-unused-tkinter-import.patch | 9 +++++++++ |
14 |
.../{python-xlib-0.32.ebuild => python-xlib-0.32-r1.ebuild} | 4 ++++ |
15 |
2 files changed, 13 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/python-xlib/files/python-xlib-0.32-drop-unused-tkinter-import.patch b/dev-python/python-xlib/files/python-xlib-0.32-drop-unused-tkinter-import.patch |
18 |
new file mode 100644 |
19 |
index 000000000000..5a0272a867b9 |
20 |
--- /dev/null |
21 |
+++ b/dev-python/python-xlib/files/python-xlib-0.32-drop-unused-tkinter-import.patch |
22 |
@@ -0,0 +1,9 @@ |
23 |
+https://bugs.gentoo.org/881851 |
24 |
+https://github.com/python-xlib/python-xlib/issues/240 |
25 |
+https://github.com/python-xlib/python-xlib/pull/238 |
26 |
+--- a/Xlib/ext/randr.py |
27 |
++++ b/Xlib/ext/randr.py |
28 |
+@@ -36,3 +36,2 @@ |
29 |
+ |
30 |
+-from tkinter import W |
31 |
+ from Xlib import X |
32 |
|
33 |
diff --git a/dev-python/python-xlib/python-xlib-0.32.ebuild b/dev-python/python-xlib/python-xlib-0.32-r1.ebuild |
34 |
similarity index 93% |
35 |
rename from dev-python/python-xlib/python-xlib-0.32.ebuild |
36 |
rename to dev-python/python-xlib/python-xlib-0.32-r1.ebuild |
37 |
index 40de7abfe2c4..ca3e97705196 100644 |
38 |
--- a/dev-python/python-xlib/python-xlib-0.32.ebuild |
39 |
+++ b/dev-python/python-xlib/python-xlib-0.32-r1.ebuild |
40 |
@@ -34,6 +34,10 @@ BDEPEND=" |
41 |
|
42 |
distutils_enable_tests unittest |
43 |
|
44 |
+PATCHES=( |
45 |
+ "${FILESDIR}"/${P}-drop-unused-tkinter-import.patch |
46 |
+) |
47 |
+ |
48 |
python_compile_all() { |
49 |
use doc && emake -C doc/info |
50 |
} |