1 |
commit: ef3e1d11da683c79cf1131e978de1b4d7e288b15 |
2 |
Author: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 1 03:41:07 2020 +0000 |
4 |
Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 1 03:41:07 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef3e1d11 |
7 |
|
8 |
dev-python/wxpython: bump to 4.0.7 |
9 |
|
10 |
Package-Manager: Portage-2.3.89, Repoman-2.3.20 |
11 |
Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org> |
12 |
|
13 |
dev-python/wxpython/Manifest | 1 + |
14 |
dev-python/wxpython/wxpython-4.0.7.ebuild | 88 +++++++++++++++++++++++++++++++ |
15 |
2 files changed, 89 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/wxpython/Manifest b/dev-python/wxpython/Manifest |
18 |
index 1870b55b866..e88e0da4316 100644 |
19 |
--- a/dev-python/wxpython/Manifest |
20 |
+++ b/dev-python/wxpython/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST wxPython-4.0.6.tar.gz 68815031 BLAKE2B 49367f5d0867c28893c43d54c4ad6001807bdc95d81327082e3c88fd796e5e2daafcf6b70252828bdcfaaec8b42ba64e881575d209eb4f61a85f58ebd79e8ae4 SHA512 bfe799e1a0987cb57f2e31199cdb522471aaa08bb3b642fdf4130f4219b81487d4b6252f7a8afd3af7cdaeef2e992cecfc581e97d8b42307a4e0a8c9009db301 |
23 |
+DIST wxPython-4.0.7.post2.tar.gz 68891167 BLAKE2B 77eb69f7a59e5be81c3d17b64c76e09a43efc9226bd87fd058483185871a95ce05dbb65614ec8b003edf52cbe1cb1a115856c0d622170c51ecacbb952106fe22 SHA512 7af89db90a0f7e6b644d61c1ede01ec36a2c295e46d44692ae9dbc4af923310c1b498a52f45b02a89e8917d844c6abe67e5f3fdd9c1d51da3312899319a349e4 |
24 |
DIST wxPython-demo-3.0.2.0.tar.bz2 3992212 BLAKE2B 9defe133e3863be5ae07b7adb4bcb94688487e9dd9f5ab1f768d2f5942f30d05ff678f1ba74241d9bafde3584e3c68ffeae4978117aaa300e23165140e6a6d44 SHA512 361ecaa7dfe5bae0757e04215c564370eaf8e5260ead45007f9d70439c15701725c3cbcd76691a5191258bef24fd200ebd61347a3fd920d888137bfc98a16702 |
25 |
DIST wxPython-src-3.0.2.0.tar.bz2 58304944 BLAKE2B 1144acf2cfa0a18aa2f90aabe81aaeca54d3fe6139818267dbc031accbae38035478a64ec084fe8bb8b89126fb70ff96e68981026df8ad3fc82e81c6d0e22d1a SHA512 a3798e89ff19344253aac7d771971e519f7fa9723e82bd97e98f16fd7f1572e513170b02295b872dae0b1ae3fa95efc4ef34d078045b839694b4fdad3a27c9e4 |
26 |
|
27 |
diff --git a/dev-python/wxpython/wxpython-4.0.7.ebuild b/dev-python/wxpython/wxpython-4.0.7.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..d4171de07d4 |
30 |
--- /dev/null |
31 |
+++ b/dev-python/wxpython/wxpython-4.0.7.ebuild |
32 |
@@ -0,0 +1,88 @@ |
33 |
+# Copyright 1999-2020 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
38 |
+WX_GTK_VER="3.0-gtk3" |
39 |
+ |
40 |
+inherit distutils-r1 multiprocessing virtualx wxwidgets |
41 |
+ |
42 |
+MY_PN="wxPython" |
43 |
+MY_PV="${PV}.post2" |
44 |
+ |
45 |
+DESCRIPTION="A blending of the wxWindows C++ class library with Python" |
46 |
+HOMEPAGE="http://www.wxpython.org/" |
47 |
+SRC_URI="mirror://pypi/${P:0:1}/${MY_PN}/${MY_PN}-${MY_PV}.tar.gz" |
48 |
+ |
49 |
+LICENSE="wxWinLL-3" |
50 |
+SLOT="4.0" |
51 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sh ~sparc ~x86" |
52 |
+IUSE="test webkit" |
53 |
+RESTRICT="!test? ( test )" |
54 |
+ |
55 |
+# wxPython doesn't seem to be able to optionally disable features. webkit is |
56 |
+# optionally patched out because it's so huge, but other elements are not, |
57 |
+# which makes us have to require all features from wxGTK |
58 |
+RDEPEND=" |
59 |
+ >=x11-libs/wxGTK-3.0.4-r301:${WX_GTK_VER}=[gstreamer,libnotify,opengl,sdl,tiff,webkit?,X] |
60 |
+ media-libs/libpng:0= |
61 |
+ media-libs/tiff:0 |
62 |
+ virtual/jpeg:0" |
63 |
+ |
64 |
+DEPEND="${RDEPEND} |
65 |
+ app-doc/doxygen |
66 |
+ dev-python/pathlib2[${PYTHON_USEDEP}] |
67 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
68 |
+ dev-python/six[${PYTHON_USEDEP}] |
69 |
+ test? ( |
70 |
+ ${VIRTUALX_DEPEND} |
71 |
+ dev-python/appdirs[${PYTHON_USEDEP}] |
72 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
73 |
+ dev-python/pillow[${PYTHON_USEDEP}] |
74 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
75 |
+ )" |
76 |
+ |
77 |
+S="${WORKDIR}/${MY_PN}-${MY_PV}" |
78 |
+ |
79 |
+PATCHES=( |
80 |
+ "${FILESDIR}/${PN}-4.0.6-skip-broken-tests.patch" |
81 |
+) |
82 |
+ |
83 |
+python_prepare_all() { |
84 |
+ if ! use webkit; then |
85 |
+ eapply "${FILESDIR}/${PN}-4.0.6-no-webkit.patch" |
86 |
+ rm unittests/test_webview.py || die |
87 |
+ fi |
88 |
+ # Most of these tests disabled below fail because of the virtx/portage |
89 |
+ # environment, but some fail for unknown reasons. |
90 |
+ rm unittests/test_uiaction.py \ |
91 |
+ unittests/test_notifmsg.py \ |
92 |
+ unittests/test_mousemanager.py \ |
93 |
+ unittests/test_display.py \ |
94 |
+ unittests/test_pi_import.py \ |
95 |
+ unittests/test_lib_agw_thumbnailctrl.py \ |
96 |
+ unittests/test_sound.py || die |
97 |
+ |
98 |
+ distutils-r1_python_prepare_all |
99 |
+} |
100 |
+ |
101 |
+src_configure() { |
102 |
+ setup-wxwidgets |
103 |
+} |
104 |
+ |
105 |
+python_compile() { |
106 |
+ DOXYGEN=/usr/bin/doxygen ${PYTHON} build.py dox etg --nodoc || die |
107 |
+ ${PYTHON} build.py build_py \ |
108 |
+ --use_syswx \ |
109 |
+ --no_magic \ |
110 |
+ --jobs=$(makeopts_jobs) \ |
111 |
+ --release || die |
112 |
+} |
113 |
+ |
114 |
+python_install() { |
115 |
+ distutils-r1_python_install --skip-build |
116 |
+} |
117 |
+ |
118 |
+python_test() { |
119 |
+ virtx pytest -vv unittests |
120 |
+} |