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