1 |
commit: 530156324d4c5acd0aa63fb6b520453c576b09c4 |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 24 15:42:23 2020 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 24 22:56:18 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53015632 |
7 |
|
8 |
dev-python/pyqtgraph: bump to 0.11.0_rc0 and EAPI-7 |
9 |
|
10 |
The only version to date with python3_8 support. Ostensibly a release |
11 |
candidate but if it's good enough for Debian to package then it's good |
12 |
enough for me! |
13 |
|
14 |
Committed with kind permission of mgorny on behalf of the Python |
15 |
project. |
16 |
|
17 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
18 |
|
19 |
dev-python/pyqtgraph/Manifest | 1 + |
20 |
.../files/pyqtgraph-0.11.0-qt5_only.patch | 11 +++++ |
21 |
dev-python/pyqtgraph/pyqtgraph-0.11.0_rc0.ebuild | 48 ++++++++++++++++++++++ |
22 |
3 files changed, 60 insertions(+) |
23 |
|
24 |
diff --git a/dev-python/pyqtgraph/Manifest b/dev-python/pyqtgraph/Manifest |
25 |
index ae3b55682a0..5b078024ea7 100644 |
26 |
--- a/dev-python/pyqtgraph/Manifest |
27 |
+++ b/dev-python/pyqtgraph/Manifest |
28 |
@@ -1 +1,2 @@ |
29 |
DIST pyqtgraph-0.10.0.tar.gz 704972 BLAKE2B cb1295608536b06de32ea72503b2df2be7f4ae3065b42431542539feec5eb37412e3a7697e2ee97309594b9aecc19c692ef7b45f843f37bd50148a3c0b6e1d31 SHA512 d995da7b4f13ae0009582aebe3f753dc78566dc50ba9314d3a2d37ad4ed8f2fd8bb497a01bb8b37b6d96bf14c071aad018bcbc7224d9dd9b47589a7b5b640d30 |
30 |
+DIST pyqtgraph-0.11.0_rc0.tar.gz 755973 BLAKE2B 845c57a16c71d449419cca452ac70468eb21f198b3aebe39204e8ac1408ebd4471a95b24cbd91cd4c745439c17a805738e50a29f8690de5d84f86c2597310aea SHA512 6eb5573b19c7fc0bc263bdc5d75a9a7a5d86d5ce525e406fcbd8f4215a8b2a0a9a7d4839d177fb10ff62a5feacdf088347828900daa9f60ae84e54824b98f470 |
31 |
|
32 |
diff --git a/dev-python/pyqtgraph/files/pyqtgraph-0.11.0-qt5_only.patch b/dev-python/pyqtgraph/files/pyqtgraph-0.11.0-qt5_only.patch |
33 |
new file mode 100644 |
34 |
index 00000000000..1e65b0de926 |
35 |
--- /dev/null |
36 |
+++ b/dev-python/pyqtgraph/files/pyqtgraph-0.11.0-qt5_only.patch |
37 |
@@ -0,0 +1,11 @@ |
38 |
+--- a/pyqtgraph/Qt.py |
39 |
++++ b/pyqtgraph/Qt.py |
40 |
+@@ -25,7 +25,7 @@ |
41 |
+ ## This is done by first checking to see whether one of the libraries |
42 |
+ ## is already imported. If not, then attempt to import PyQt4, then PySide. |
43 |
+ if QT_LIB is None: |
44 |
+- libOrder = [PYQT4, PYSIDE, PYQT5, PYSIDE2] |
45 |
++ libOrder = [PYQT5] |
46 |
+ |
47 |
+ for lib in libOrder: |
48 |
+ if lib in sys.modules: |
49 |
|
50 |
diff --git a/dev-python/pyqtgraph/pyqtgraph-0.11.0_rc0.ebuild b/dev-python/pyqtgraph/pyqtgraph-0.11.0_rc0.ebuild |
51 |
new file mode 100644 |
52 |
index 00000000000..f13ada12b64 |
53 |
--- /dev/null |
54 |
+++ b/dev-python/pyqtgraph/pyqtgraph-0.11.0_rc0.ebuild |
55 |
@@ -0,0 +1,48 @@ |
56 |
+# Copyright 1999-2020 Gentoo Authors |
57 |
+# Distributed under the terms of the GNU General Public License v2 |
58 |
+ |
59 |
+EAPI=7 |
60 |
+ |
61 |
+PYTHON_COMPAT=( python3_{7,8} ) |
62 |
+ |
63 |
+inherit distutils-r1 |
64 |
+ |
65 |
+MY_PV=$(ver_rs 3 "") |
66 |
+MY_P="${PN}-${MY_PV}" |
67 |
+ |
68 |
+DESCRIPTION="A pure-python graphics and GUI library built on PyQt and numpy" |
69 |
+HOMEPAGE="http://www.pyqtgraph.org/ https://pypi.org/project/pyqtgraph/" |
70 |
+SRC_URI="https://github.com/${PN}/${PN}/archive/${MY_P}.tar.gz -> ${P}.tar.gz" |
71 |
+ |
72 |
+LICENSE="MIT" |
73 |
+SLOT="0" |
74 |
+KEYWORDS="~amd64 ~x86" |
75 |
+IUSE="examples opengl svg" |
76 |
+ |
77 |
+RDEPEND="dev-python/numpy[${PYTHON_USEDEP}] |
78 |
+ sci-libs/scipy[${PYTHON_USEDEP}] |
79 |
+ dev-python/PyQt5[gui,widgets,opengl=,svg=,${PYTHON_USEDEP}] |
80 |
+ opengl? ( dev-python/pyopengl[${PYTHON_USEDEP}] )" |
81 |
+ |
82 |
+PATCHES=( |
83 |
+ "${FILESDIR}"/${PN}-0.11.0-qt5_only.patch |
84 |
+) |
85 |
+ |
86 |
+DOCS=( CHANGELOG README.md ) |
87 |
+ |
88 |
+S="${WORKDIR}"/${PN}-${MY_P} |
89 |
+ |
90 |
+distutils_enable_sphinx doc/source |
91 |
+ |
92 |
+python_prepare_all() { |
93 |
+ distutils-r1_python_prepare_all |
94 |
+ |
95 |
+ if ! use opengl; then |
96 |
+ rm -r pyqtgraph/opengl || die |
97 |
+ fi |
98 |
+} |
99 |
+ |
100 |
+python_install_all() { |
101 |
+ use examples && DOCS+=( examples/ ) |
102 |
+ distutils-r1_python_install_all |
103 |
+} |