1 |
commit: 2db83b84afe556b558059dcd6ad430d39987cbfe |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jul 31 05:30:51 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 31 06:20:53 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2db83b84 |
7 |
|
8 |
dev-python/matplotlib: Remove old |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/matplotlib/Manifest | 2 - |
13 |
dev-python/matplotlib/matplotlib-3.1.2.ebuild | 229 ---------------------- |
14 |
dev-python/matplotlib/matplotlib-3.2.1.ebuild | 271 -------------------------- |
15 |
3 files changed, 502 deletions(-) |
16 |
|
17 |
diff --git a/dev-python/matplotlib/Manifest b/dev-python/matplotlib/Manifest |
18 |
index d1bbfd7ce26..b162274d1bf 100644 |
19 |
--- a/dev-python/matplotlib/Manifest |
20 |
+++ b/dev-python/matplotlib/Manifest |
21 |
@@ -1,7 +1,5 @@ |
22 |
DIST freetype-2.6.1.tar.gz 2302080 BLAKE2B 6a5fb98e5fa6cf4b7d7533ad44e364227d8c2f7dded4c552d6e22e204c32b7858f20d41d1e809ecdad6e5353d6cec81bea0e0b06a4533363a41ecab83ce3f7ca SHA512 ff2daed64d712737085924c50e75862fafbcbb24eef6d72dac9eaae63bb656d7245397fd828f5d3e47ac847f7ff83d73dedfdd61fde1f7d6e0f0cdeb49bcf83b |
23 |
DIST matplotlib-2.2.2.tar.gz 37317332 BLAKE2B 4120265263c5b1e4ab57f7c0eb7a477b4071a5f219d1d6328d6ed51d44460217c7c4da82a4b7d13c6ba9f80308406a217f2dbcfa310f3137cbe8bc56a9ef0eef SHA512 1d21ef821190f22354098f8f0db6449f237acbf3c1419ab3815ecd4e9c6922fd3f00c4a8f60858e319b55b6fb2e8fe2922c0bf8e72b204e7edff0b409cf76320 |
24 |
DIST matplotlib-2.2.4.tar.gz 36974286 BLAKE2B 9c4c69163a23ff02107ee155f72e142dcf31ba965f6a20f468b96f3f4b70b95ff6caade6b14bcbacd5b231848d2000ce6af9f113feefb41d6e186725349490d3 SHA512 968f5731b8a9a2c5575403c60d5b0a98a452b33094e520be44f4d901f892d082babc8fc1d73c519e1ff2baf756f3cb7652f4b796e166d66dfda31f7e50c58139 |
25 |
-DIST matplotlib-3.1.2.tar.gz 40909582 BLAKE2B 670907670335ca13ec01f3acf036fd502ce34abd12666b2e0d10867c6115a0fe80039326cee89099471aa6b3bbd25f1ca4aa837072dea624ee41984da9f647be SHA512 2eff3c0525d01824ed758a87f50a3f6094767b580fca1eae4e9dbc2cc972af3d0cc3ac9615e576c5685e8bfc1ec90754bc826635f4f2a919d0b26bbb686cccab |
26 |
-DIST matplotlib-3.2.1.tar.gz 40325615 BLAKE2B 7fd299f7d3948987e341e4313ed82d15de286a05c9819893e099ccd6c1f861ce5548ec85588a382603011e7710d08d6fc9a4f168f0b5705b0873b97e40d2dd39 SHA512 d6497a3c47eaff9c0d981bc03de5894a3f4a5413cbe320924b1df6d68eb421e548cf4247c035fd636a4403cd2d50071633e6906e795b74ec7d9c4816193e42be |
27 |
DIST matplotlib-3.2.2.tar.gz 40295831 BLAKE2B 32fb34b95d1df928f949fd7b04909da2494b56efbe543f75bffedf1d9d85a0089a50cd27b82a28ac75361b56fe3f2a6c95b7d9e777778ce46f1d2805e5dae9df SHA512 4b8080fddc717f311a87b6ef1a279304da2931ef2d6de85688c153f14da5009351f42d9533c44695ca43ce1496bb642927aca822a7946a2d50d40a7d25224b31 |
28 |
DIST matplotlib-3.3.0.tar.gz 38782487 BLAKE2B 97330d93b8d8a64a1296ccb173e44ebcc54c61e22aacdd73cc38a46fb2d22fbfe7334fb3c6993be001c475724c47f530243affddd71ec647232ac093db6e3135 SHA512 2ffd9e79e300a37092ab4b5a7156c2f57e408975818abd413c74477ad622030c7636695467aab821c9996564cddec57e26ba6a8004f6639070964fcb7a510a75 |
29 |
|
30 |
diff --git a/dev-python/matplotlib/matplotlib-3.1.2.ebuild b/dev-python/matplotlib/matplotlib-3.1.2.ebuild |
31 |
deleted file mode 100644 |
32 |
index a70af567221..00000000000 |
33 |
--- a/dev-python/matplotlib/matplotlib-3.1.2.ebuild |
34 |
+++ /dev/null |
35 |
@@ -1,229 +0,0 @@ |
36 |
-# Copyright 1999-2020 Gentoo Authors |
37 |
-# Distributed under the terms of the GNU General Public License v2 |
38 |
- |
39 |
-EAPI=7 |
40 |
- |
41 |
-PYTHON_COMPAT=( python3_{6,7} ) |
42 |
-PYTHON_REQ_USE='tk?,threads(+)' |
43 |
- |
44 |
-inherit distutils-r1 flag-o-matic virtualx toolchain-funcs prefix |
45 |
- |
46 |
-DESCRIPTION="Pure python plotting library with matlab like syntax" |
47 |
-HOMEPAGE="https://matplotlib.org/" |
48 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
49 |
- |
50 |
-# Main license: matplotlib |
51 |
-# Some modules: BSD |
52 |
-# matplotlib/backends/qt4_editor: MIT |
53 |
-# Fonts: BitstreamVera, OFL-1.1 |
54 |
-LICENSE="BitstreamVera BSD matplotlib MIT OFL-1.1" |
55 |
-SLOT="0" |
56 |
-KEYWORDS="amd64 ~arm arm64 ~ppc ~ppc64 x86" |
57 |
-IUSE="cairo doc excel examples gtk3 latex qt5 test tk wxwidgets" |
58 |
-REQUIRED_USE="test? ( cairo gtk3 latex qt5 tk )" |
59 |
-# tests are fixed in 3.2.1, this version is beyond repair |
60 |
-RESTRICT="test" |
61 |
- |
62 |
-# internal copy of pycxx highly patched |
63 |
-# dev-python/pycxx |
64 |
-COMMON_DEPEND=" |
65 |
- dev-python/cycler[${PYTHON_USEDEP}] |
66 |
- >=dev-python/numpy-1.7.1[${PYTHON_USEDEP}] |
67 |
- dev-python/python-dateutil:0[${PYTHON_USEDEP}] |
68 |
- dev-python/pytz[${PYTHON_USEDEP}] |
69 |
- >=dev-python/six-1.10[${PYTHON_USEDEP}] |
70 |
- media-fonts/stix-fonts |
71 |
- media-libs/freetype:2 |
72 |
- media-libs/libpng:0 |
73 |
- >=media-libs/qhull-2013 |
74 |
- >=dev-python/kiwisolver-1.0.0[${PYTHON_USEDEP}] |
75 |
- cairo? ( dev-python/cairocffi[${PYTHON_USEDEP}] ) |
76 |
- wxwidgets? ( dev-python/wxpython:*[${PYTHON_USEDEP}] )" |
77 |
- |
78 |
-DEPEND="${COMMON_DEPEND} |
79 |
- dev-python/versioneer[${PYTHON_USEDEP}] |
80 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
81 |
- virtual/pkgconfig |
82 |
- doc? ( |
83 |
- app-text/dvipng |
84 |
- dev-python/colorspacious[${PYTHON_USEDEP}] |
85 |
- dev-python/pillow[${PYTHON_USEDEP}] |
86 |
- dev-python/ipython[${PYTHON_USEDEP}] |
87 |
- >=dev-python/numpydoc-0.8[${PYTHON_USEDEP}] |
88 |
- <dev-python/numpydoc-0.9 |
89 |
- sci-libs/scipy[${PYTHON_USEDEP}] |
90 |
- >=dev-python/sphinx-1.3.0[${PYTHON_USEDEP}] |
91 |
- >=dev-python/sphinx-gallery-0.3.1[${PYTHON_USEDEP}] |
92 |
- dev-python/xlwt[${PYTHON_USEDEP}] |
93 |
- dev-texlive/texlive-latexextra |
94 |
- dev-texlive/texlive-fontsrecommended |
95 |
- dev-texlive/texlive-latexrecommended |
96 |
- media-gfx/graphviz[cairo] |
97 |
- ) |
98 |
- test? ( |
99 |
- dev-python/mock[${PYTHON_USEDEP}] |
100 |
- >=dev-python/nose-0.11.1[${PYTHON_USEDEP}] |
101 |
- )" |
102 |
- |
103 |
-RDEPEND="${COMMON_DEPEND} |
104 |
- >=dev-python/pyparsing-1.5.6[${PYTHON_USEDEP}] |
105 |
- excel? ( dev-python/xlwt[${PYTHON_USEDEP}] ) |
106 |
- gtk3? ( |
107 |
- dev-python/pygobject:3[cairo?,${PYTHON_USEDEP}] |
108 |
- x11-libs/gtk+:3[introspection] ) |
109 |
- latex? ( |
110 |
- virtual/latex-base |
111 |
- app-text/ghostscript-gpl |
112 |
- app-text/dvipng |
113 |
- app-text/poppler[utils] |
114 |
- dev-texlive/texlive-fontsrecommended |
115 |
- dev-texlive/texlive-latexextra |
116 |
- dev-texlive/texlive-xetex |
117 |
- ) |
118 |
- qt5? ( dev-python/PyQt5[gui,widgets,${PYTHON_USEDEP}] )" |
119 |
- |
120 |
-# A few C++ source files are written to srcdir. |
121 |
-# Other than that, the ebuild shall be fit for out-of-source build. |
122 |
-DISTUTILS_IN_SOURCE_BUILD=1 |
123 |
- |
124 |
-pkg_setup() { |
125 |
- unset DISPLAY # bug #278524 |
126 |
-} |
127 |
- |
128 |
-use_setup() { |
129 |
- local uword="${2:-${1}}" |
130 |
- if use ${1}; then |
131 |
- echo "${uword} = True" |
132 |
- echo "${uword}agg = True" |
133 |
- else |
134 |
- echo "${uword} = False" |
135 |
- echo "${uword}agg = False" |
136 |
- fi |
137 |
-} |
138 |
- |
139 |
-python_prepare_all() { |
140 |
-# Generates test failures, but fedora does it |
141 |
-# local PATCHES=( |
142 |
-# "${FILESDIR}"/${P}-unbundle-pycxx.patch |
143 |
-# "${FILESDIR}"/${P}-unbundle-agg.patch |
144 |
-# ) |
145 |
-# rm -r agg24 CXX || die |
146 |
-# rm -r agg24 || die |
147 |
- |
148 |
-# cat > lib/${PN}/externals/six.py <<-EOF |
149 |
-# from __future__ import absolute_import |
150 |
-# from six import * |
151 |
-# EOF |
152 |
- |
153 |
- local PATCHES=( |
154 |
- "${FILESDIR}"/${PN}-3.1.2-no-jqueryui-download.patch |
155 |
- "${FILESDIR}"/${PN}-3.1.2-qhull.patch |
156 |
- ) |
157 |
- |
158 |
- sed \ |
159 |
- -e 's/matplotlib.pyparsing_py[23]/pyparsing/g' \ |
160 |
- -i lib/matplotlib/{mathtext,fontconfig_pattern}.py \ |
161 |
- || die "sed pyparsing failed" |
162 |
- |
163 |
- hprefixify setupext.py |
164 |
- |
165 |
- rm -rf libqhull || die |
166 |
- |
167 |
- export XDG_RUNTIME_DIR="${T}/runtime-dir" |
168 |
- mkdir "${XDG_RUNTIME_DIR}" || die |
169 |
- chmod 0700 "${XDG_RUNTIME_DIR}" || die |
170 |
- |
171 |
- distutils-r1_python_prepare_all |
172 |
-} |
173 |
- |
174 |
-python_configure_all() { |
175 |
- append-flags -fno-strict-aliasing |
176 |
- append-cppflags -DNDEBUG # or get old trying to do triangulation |
177 |
- tc-export PKG_CONFIG |
178 |
-} |
179 |
- |
180 |
-python_configure() { |
181 |
- mkdir -p "${BUILD_DIR}" || die |
182 |
- |
183 |
- # create setup.cfg (see setup.cfg.template for any changes). |
184 |
- |
185 |
- # common switches. |
186 |
- cat > "${BUILD_DIR}"/setup.cfg <<- EOF || die |
187 |
- [directories] |
188 |
- basedirlist = ${EPREFIX}/usr |
189 |
- [provide_packages] |
190 |
- pytz = False |
191 |
- dateutil = False |
192 |
- [packages] |
193 |
- tests = $(usex test True False) |
194 |
- [gui_support] |
195 |
- agg = True |
196 |
- gtk = False |
197 |
- gtkagg = False |
198 |
- pyside = False |
199 |
- pysideagg = False |
200 |
- qt4 = False |
201 |
- qt4agg = False |
202 |
- $(use_setup cairo) |
203 |
- $(use_setup gtk3) |
204 |
- $(use_setup qt5) |
205 |
- $(use_setup tk) |
206 |
- $(use_setup wxwidgets wx) |
207 |
- EOF |
208 |
- |
209 |
- if use gtk3 && use cairo; then |
210 |
- echo "gtk3cairo = True" >> "${BUILD_DIR}"/setup.cfg || die |
211 |
- else |
212 |
- echo "gtk3cairo = False" >> "${BUILD_DIR}"/setup.cfg || die |
213 |
- fi |
214 |
-} |
215 |
- |
216 |
-wrap_setup() { |
217 |
- local MAKEOPTS=-j1 |
218 |
- local -x MPLSETUPCFG="${BUILD_DIR}"/setup.cfg |
219 |
- unset DISPLAY |
220 |
- "$@" |
221 |
-} |
222 |
- |
223 |
-python_compile() { |
224 |
- wrap_setup distutils-r1_python_compile --build-lib="${BUILD_DIR}"/lib |
225 |
-} |
226 |
- |
227 |
-python_compile_all() { |
228 |
- if use doc; then |
229 |
- cd doc || die |
230 |
- |
231 |
- # necessary for in-source build |
232 |
- local -x PYTHONPATH="${BUILD_DIR}"/build/lib:${PYTHONPATH} |
233 |
- |
234 |
- VARTEXFONTS="${T}"/fonts \ |
235 |
- emake SPHINXOPTS= O=-Dplot_formats=png:100 html |
236 |
- fi |
237 |
-} |
238 |
- |
239 |
-python_test() { |
240 |
- wrap_setup distutils_install_for_testing |
241 |
- |
242 |
- virtx "${EPYTHON}" -c "import sys, matplotlib as m; sys.exit(0 if m.test(verbosity=2) else 1)" |
243 |
-} |
244 |
- |
245 |
-python_install() { |
246 |
- wrap_setup distutils-r1_python_install |
247 |
- |
248 |
- # mpl_toolkits namespace |
249 |
- python_moduleinto mpl_toolkits |
250 |
- python_domodule lib/mpl_toolkits/__init__.py |
251 |
-} |
252 |
- |
253 |
-python_install_all() { |
254 |
- use doc && local HTML_DOCS=( doc/build/html/. ) |
255 |
- |
256 |
- distutils-r1_python_install_all |
257 |
- |
258 |
- if use examples; then |
259 |
- dodoc -r examples |
260 |
- docompress -x /usr/share/doc/${PF}/examples |
261 |
- fi |
262 |
- |
263 |
- find "${D}" -name '*.pth' -delete || die |
264 |
-} |
265 |
|
266 |
diff --git a/dev-python/matplotlib/matplotlib-3.2.1.ebuild b/dev-python/matplotlib/matplotlib-3.2.1.ebuild |
267 |
deleted file mode 100644 |
268 |
index 33f602a189d..00000000000 |
269 |
--- a/dev-python/matplotlib/matplotlib-3.2.1.ebuild |
270 |
+++ /dev/null |
271 |
@@ -1,271 +0,0 @@ |
272 |
-# Copyright 1999-2020 Gentoo Authors |
273 |
-# Distributed under the terms of the GNU General Public License v2 |
274 |
- |
275 |
-EAPI=7 |
276 |
- |
277 |
-PYTHON_COMPAT=( python3_{6..9} ) |
278 |
-PYTHON_REQ_USE='tk?,threads(+)' |
279 |
- |
280 |
-DISTUTILS_USE_SETUPTOOLS=bdepend |
281 |
-inherit distutils-r1 flag-o-matic virtualx toolchain-funcs prefix |
282 |
- |
283 |
-FT_PV=2.6.1 |
284 |
-DESCRIPTION="Pure python plotting library with matlab like syntax" |
285 |
-HOMEPAGE="https://matplotlib.org/" |
286 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz |
287 |
- test? ( |
288 |
- https://downloads.sourceforge.net/project/freetype/freetype2/${FT_PV}/freetype-${FT_PV}.tar.gz |
289 |
- )" |
290 |
- |
291 |
-# Main license: matplotlib |
292 |
-# Some modules: BSD |
293 |
-# matplotlib/backends/qt4_editor: MIT |
294 |
-# Fonts: BitstreamVera, OFL-1.1 |
295 |
-LICENSE="BitstreamVera BSD matplotlib MIT OFL-1.1" |
296 |
-SLOT="0" |
297 |
-KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" |
298 |
-IUSE="cairo doc excel examples gtk3 latex qt5 tk wxwidgets" |
299 |
- |
300 |
-# internal copy of pycxx highly patched |
301 |
-# dev-python/pycxx |
302 |
-RDEPEND=" |
303 |
- >=dev-python/cycler-0.10.0-r1[${PYTHON_USEDEP}] |
304 |
- >=dev-python/kiwisolver-1.2.0[${PYTHON_USEDEP}] |
305 |
- >=dev-python/numpy-1.18.2[${PYTHON_USEDEP}] |
306 |
- >=dev-python/pyparsing-1.5.6[${PYTHON_USEDEP}] |
307 |
- dev-python/python-dateutil:0[${PYTHON_USEDEP}] |
308 |
- >=dev-python/pytz-2019.3[${PYTHON_USEDEP}] |
309 |
- >=dev-python/six-1.14.0[${PYTHON_USEDEP}] |
310 |
- dev-python/versioneer[${PYTHON_USEDEP}] |
311 |
- media-fonts/dejavu |
312 |
- media-fonts/stix-fonts |
313 |
- media-libs/freetype:2 |
314 |
- media-libs/libpng:0 |
315 |
- >=media-libs/qhull-2013 |
316 |
- >=www-servers/tornado-6.0.4[${PYTHON_USEDEP}] |
317 |
- cairo? ( |
318 |
- dev-python/cairocffi[${PYTHON_USEDEP}] |
319 |
- ) |
320 |
- excel? ( |
321 |
- dev-python/xlwt[${PYTHON_USEDEP}] |
322 |
- ) |
323 |
- gtk3? ( |
324 |
- dev-python/pygobject:3[cairo?,${PYTHON_USEDEP}] |
325 |
- x11-libs/gtk+:3[introspection] |
326 |
- ) |
327 |
- latex? ( |
328 |
- virtual/latex-base |
329 |
- app-text/dvipng |
330 |
- app-text/ghostscript-gpl |
331 |
- app-text/poppler[utils] |
332 |
- dev-texlive/texlive-fontsrecommended |
333 |
- dev-texlive/texlive-latexextra |
334 |
- dev-texlive/texlive-xetex |
335 |
- ) |
336 |
- qt5? ( |
337 |
- dev-python/PyQt5[gui,widgets,${PYTHON_USEDEP}] |
338 |
- ) |
339 |
- wxwidgets? ( |
340 |
- $(python_gen_cond_dep ' |
341 |
- dev-python/wxpython:*[${PYTHON_USEDEP}] |
342 |
- ' python3_{6,7,8}) |
343 |
- ) |
344 |
-" |
345 |
- |
346 |
-BDEPEND=" |
347 |
- ${RDEPEND} |
348 |
- virtual/pkgconfig |
349 |
- doc? ( |
350 |
- >=app-text/dvipng-1.15-r1 |
351 |
- >=dev-python/colorspacious-1.1.2[${PYTHON_USEDEP}] |
352 |
- >=dev-python/pillow-7.1.1[${PYTHON_USEDEP}] |
353 |
- >=dev-python/ipython-1.18.2[${PYTHON_USEDEP}] |
354 |
- >=dev-python/numpydoc-0.9.2[${PYTHON_USEDEP}] |
355 |
- >=sci-libs/scipy-1.4.1[${PYTHON_USEDEP}] |
356 |
- >=dev-python/sphinx-1.3.1[${PYTHON_USEDEP}] |
357 |
- >=dev-python/sphinx-gallery-0.3.1-r1[${PYTHON_USEDEP}] |
358 |
- >=dev-python/xlwt-1.3.0-r1[${PYTHON_USEDEP}] |
359 |
- dev-texlive/texlive-latexextra |
360 |
- dev-texlive/texlive-fontsrecommended |
361 |
- dev-texlive/texlive-latexrecommended |
362 |
- >=media-gfx/graphviz-2.42.3[cairo] |
363 |
- ) |
364 |
- test? ( |
365 |
- dev-python/flaky[${PYTHON_USEDEP}] |
366 |
- dev-python/mock[${PYTHON_USEDEP}] |
367 |
- dev-python/pygobject:3[cairo?,${PYTHON_USEDEP}] |
368 |
- x11-libs/gtk+:3[introspection] |
369 |
- ) |
370 |
-" |
371 |
- |
372 |
-# A few C++ source files are written to srcdir. |
373 |
-# Other than that, the ebuild shall be fit for out-of-source build. |
374 |
-DISTUTILS_IN_SOURCE_BUILD=1 |
375 |
- |
376 |
-distutils_enable_tests pytest |
377 |
- |
378 |
-pkg_setup() { |
379 |
- unset DISPLAY # bug #278524 |
380 |
-} |
381 |
- |
382 |
-use_supported() { |
383 |
- case ${1} in |
384 |
- wxwidgets) |
385 |
- [[ ${EPYTHON} == python3.[678] ]] |
386 |
- ;; |
387 |
- esac |
388 |
- |
389 |
- return 0 |
390 |
-} |
391 |
- |
392 |
-use_setup() { |
393 |
- local uword="${2:-${1}}" |
394 |
- if use_supported "${1}" && use "${1}"; then |
395 |
- echo "${uword} = True" |
396 |
- echo "${uword}agg = True" |
397 |
- else |
398 |
- echo "${uword} = False" |
399 |
- echo "${uword}agg = False" |
400 |
- fi |
401 |
-} |
402 |
- |
403 |
-python_prepare_all() { |
404 |
-# Generates test failures, but fedora does it |
405 |
-# local PATCHES=( |
406 |
-# "${FILESDIR}"/${P}-unbundle-pycxx.patch |
407 |
-# "${FILESDIR}"/${P}-unbundle-agg.patch |
408 |
-# ) |
409 |
-# rm -r agg24 CXX || die |
410 |
-# rm -r agg24 || die |
411 |
- |
412 |
-# cat > lib/${PN}/externals/six.py <<-EOF |
413 |
-# from __future__ import absolute_import |
414 |
-# from six import * |
415 |
-# EOF |
416 |
- |
417 |
- local PATCHES=( |
418 |
- "${FILESDIR}"/matplotlib-3.1.2-qhull.patch |
419 |
- "${FILESDIR}"/matplotlib-3.2.1-test.patch |
420 |
- ) |
421 |
- |
422 |
- # requires jupyter-nbconvert |
423 |
- rm lib/matplotlib/tests/test_backend_nbagg.py || die |
424 |
- |
425 |
- sed \ |
426 |
- -e 's/matplotlib.pyparsing_py[23]/pyparsing/g' \ |
427 |
- -i lib/matplotlib/{mathtext,fontconfig_pattern}.py \ |
428 |
- || die "sed pyparsing failed" |
429 |
- |
430 |
- sed -e 's:\(@pytest.mark.flaky\)(reruns=3):\1:' \ |
431 |
- -i lib/matplotlib/tests/test_*.py || die |
432 |
- |
433 |
- hprefixify setupext.py |
434 |
- |
435 |
- rm -rf libqhull || die |
436 |
- |
437 |
- export XDG_RUNTIME_DIR="${T}/runtime-dir" |
438 |
- mkdir "${XDG_RUNTIME_DIR}" || die |
439 |
- chmod 0700 "${XDG_RUNTIME_DIR}" || die |
440 |
- |
441 |
- distutils-r1_python_prepare_all |
442 |
-} |
443 |
- |
444 |
-python_configure_all() { |
445 |
- append-flags -fno-strict-aliasing |
446 |
- append-cppflags -DNDEBUG # or get old trying to do triangulation |
447 |
- tc-export PKG_CONFIG |
448 |
-} |
449 |
- |
450 |
-python_configure() { |
451 |
- mkdir -p "${BUILD_DIR}" || die |
452 |
- |
453 |
- # create setup.cfg (see setup.cfg.template for any changes). |
454 |
- |
455 |
- # common switches. |
456 |
- cat > "${BUILD_DIR}"/setup.cfg <<- EOF || die |
457 |
- [directories] |
458 |
- basedirlist = ${EPREFIX}/usr |
459 |
- [provide_packages] |
460 |
- pytz = False |
461 |
- dateutil = False |
462 |
- [packages] |
463 |
- tests = $(usex test True False) |
464 |
- [gui_support] |
465 |
- agg = True |
466 |
- gtk = False |
467 |
- gtkagg = False |
468 |
- pyside = False |
469 |
- pysideagg = False |
470 |
- qt4 = False |
471 |
- qt4agg = False |
472 |
- $(use_setup cairo) |
473 |
- $(use_setup gtk3) |
474 |
- $(use_setup qt5) |
475 |
- $(use_setup tk) |
476 |
- $(use_setup wxwidgets wx) |
477 |
- EOF |
478 |
- |
479 |
- if use gtk3 && use cairo; then |
480 |
- echo "gtk3cairo = True" >> "${BUILD_DIR}"/setup.cfg || die |
481 |
- else |
482 |
- echo "gtk3cairo = False" >> "${BUILD_DIR}"/setup.cfg || die |
483 |
- fi |
484 |
-} |
485 |
- |
486 |
-wrap_setup() { |
487 |
- local MAKEOPTS=-j1 |
488 |
- local -x MPLSETUPCFG="${BUILD_DIR}"/setup.cfg |
489 |
- "$@" |
490 |
-} |
491 |
- |
492 |
-python_compile() { |
493 |
- wrap_setup distutils-r1_python_compile --build-lib="${BUILD_DIR}"/lib |
494 |
-} |
495 |
- |
496 |
-python_compile_all() { |
497 |
- if use doc; then |
498 |
- cd doc || die |
499 |
- |
500 |
- # necessary for in-source build |
501 |
- local -x PYTHONPATH="${BUILD_DIR}"/build/lib:${PYTHONPATH} |
502 |
- |
503 |
- VARTEXFONTS="${T}"/fonts \ |
504 |
- emake SPHINXOPTS= O=-Dplot_formats=png:100 html |
505 |
- fi |
506 |
-} |
507 |
- |
508 |
-src_test() { |
509 |
- virtx distutils-r1_src_test |
510 |
-} |
511 |
- |
512 |
-python_test() { |
513 |
- # we need to rebuild mpl against bundled freetype, otherwise |
514 |
- # over 1000 tests will fail because of mismatched font rendering |
515 |
- local -x MPLLOCALFREETYPE=1 |
516 |
- ln -s "${WORKDIR}/freetype-${FT_PV}" "${BUILD_DIR}" || die |
517 |
- wrap_setup distutils-r1_python_compile --build-lib="${BUILD_DIR}"/test-lib |
518 |
- local -x PYTHONPATH=${BUILD_DIR}/test-lib:${PYTHONPATH} |
519 |
- |
520 |
- "${EPYTHON}" -c "import sys, matplotlib as m; sys.exit(m.test(verbosity=2))" || die |
521 |
-} |
522 |
- |
523 |
-python_install() { |
524 |
- wrap_setup distutils-r1_python_install |
525 |
- |
526 |
- # mpl_toolkits namespace |
527 |
- python_moduleinto mpl_toolkits |
528 |
- python_domodule lib/mpl_toolkits/__init__.py |
529 |
-} |
530 |
- |
531 |
-python_install_all() { |
532 |
- use doc && local HTML_DOCS=( doc/build/html/. ) |
533 |
- |
534 |
- distutils-r1_python_install_all |
535 |
- |
536 |
- if use examples; then |
537 |
- dodoc -r examples |
538 |
- docompress -x /usr/share/doc/${PF}/examples |
539 |
- fi |
540 |
- |
541 |
- find "${D}" -name '*.pth' -delete || die |
542 |
-} |