1 |
commit: 77d25c2e6c43eecf7805a3635188e3b9c57b81f3 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 10 11:46:15 2018 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 10 14:10:23 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77d25c2e |
7 |
|
8 |
dev-python/matplotlib: Drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.36, Repoman-2.3.9 |
11 |
|
12 |
dev-python/matplotlib/Manifest | 1 - |
13 |
.../matplotlib-1.4.3-backport-GH5291-2462.patch | 126 ---------- |
14 |
.../files/matplotlib-1.4.3-cross-compile-1.patch | 50 ---- |
15 |
.../files/matplotlib-1.4.3-cross-compile-2.patch | 54 ----- |
16 |
.../files/matplotlib-1.4.3-cross-compile-3.patch | 58 ----- |
17 |
.../files/matplotlib-2.2.0-doc-make.patch | 10 - |
18 |
dev-python/matplotlib/matplotlib-2.2.0.ebuild | 257 --------------------- |
19 |
dev-python/matplotlib/matplotlib-2.2.2.ebuild | 257 --------------------- |
20 |
8 files changed, 813 deletions(-) |
21 |
|
22 |
diff --git a/dev-python/matplotlib/Manifest b/dev-python/matplotlib/Manifest |
23 |
index 39b41fe50aa..1eded76c0c5 100644 |
24 |
--- a/dev-python/matplotlib/Manifest |
25 |
+++ b/dev-python/matplotlib/Manifest |
26 |
@@ -1,3 +1,2 @@ |
27 |
DIST matplotlib-2.1.2.tar.bz2 33422388 BLAKE2B cb4826b563e9820a17e568de78044cb81af6fbe86221505fe9cfbab7e06fb95cc3a4eff8772443197cdddf6e49b4b59d204fab39054e627b95f0169b74f630a4 SHA512 861354363f625a45f40ce7b31263088c950c8664b8ef13f8019da222ba4a8df7d0a8ee048a1bd84102e472ec48318cfea9df905d58a28efb788ba59cd5348061 |
28 |
-DIST matplotlib-2.2.0.tar.gz 37246563 BLAKE2B 98d0b2cd6221f7e35d6d023b9c580733370b2def914e1ea879245a10399767f6269d81da561630518d1663da4b8afadf801c627b4c713cc37ad628a917cc446a SHA512 70932e4511e6748cc97c1c6b55705d31e93c1c2bd91b163158a4585dd916318337243ba89e6a62319c628fba955bb768bb73380991f6b7ed8678ef61413926e5 |
29 |
DIST matplotlib-2.2.2.tar.gz 37317332 BLAKE2B 4120265263c5b1e4ab57f7c0eb7a477b4071a5f219d1d6328d6ed51d44460217c7c4da82a4b7d13c6ba9f80308406a217f2dbcfa310f3137cbe8bc56a9ef0eef SHA512 1d21ef821190f22354098f8f0db6449f237acbf3c1419ab3815ecd4e9c6922fd3f00c4a8f60858e319b55b6fb2e8fe2922c0bf8e72b204e7edff0b409cf76320 |
30 |
|
31 |
diff --git a/dev-python/matplotlib/files/matplotlib-1.4.3-backport-GH5291-2462.patch b/dev-python/matplotlib/files/matplotlib-1.4.3-backport-GH5291-2462.patch |
32 |
deleted file mode 100644 |
33 |
index d6b2ae86003..00000000000 |
34 |
--- a/dev-python/matplotlib/files/matplotlib-1.4.3-backport-GH5291-2462.patch |
35 |
+++ /dev/null |
36 |
@@ -1,126 +0,0 @@ |
37 |
-commit f98c4846dc3c15b3d24aafb973764cb9b860d935 |
38 |
-Author: Thomas A Caswell <tcaswell@×××××.com> |
39 |
-Date: Sat Jan 10 16:10:29 2015 -0500 |
40 |
- |
41 |
- MNT : removed deprecated method/kwargs from patheffects |
42 |
- |
43 |
- Deprecated in #2462 / 84e0063bd37c629f129d36c548e8ce3a30692cae |
44 |
- |
45 |
- attn @pelson had to known-fail a test which was using the |
46 |
- proxy renderer to verify that PathEffectRender was working |
47 |
- correctly. |
48 |
- |
49 |
-diff --git a/lib/matplotlib/patheffects.py b/lib/matplotlib/patheffects.py |
50 |
-index 13f8ce0..19e1c4a 100644 |
51 |
---- a/lib/matplotlib/patheffects.py |
52 |
-+++ b/lib/matplotlib/patheffects.py |
53 |
-@@ -10,9 +10,7 @@ from __future__ import (absolute_import, division, print_function, |
54 |
- import six |
55 |
- |
56 |
- from matplotlib.backend_bases import RendererBase |
57 |
--from matplotlib.backends.backend_mixed import MixedModeRenderer |
58 |
- import matplotlib.transforms as mtransforms |
59 |
--import matplotlib.cbook as cbook |
60 |
- from matplotlib.colors import colorConverter |
61 |
- import matplotlib.patches as mpatches |
62 |
- |
63 |
-@@ -42,12 +40,6 @@ class AbstractPathEffect(object): |
64 |
- return transform + self._offset_trans.clear().translate(offset_x, |
65 |
- offset_y) |
66 |
- |
67 |
-- def get_proxy_renderer(self, renderer): |
68 |
-- """Return a PathEffectRenderer instance for this PathEffect.""" |
69 |
-- cbook.deprecated('v1.4', name='get_proxy_renderer', |
70 |
-- alternative='PathEffectRenderer') |
71 |
-- return PathEffectRenderer([self], renderer) |
72 |
-- |
73 |
- def _update_gc(self, gc, new_gc_dict): |
74 |
- """ |
75 |
- Update the given GraphicsCollection with the given |
76 |
-@@ -219,9 +211,9 @@ class withStroke(Stroke): |
77 |
- |
78 |
- class SimplePatchShadow(AbstractPathEffect): |
79 |
- """A simple shadow via a filled patch.""" |
80 |
-- def __init__(self, offset=(2,-2), |
81 |
-- shadow_rgbFace=None, alpha=None, patch_alpha=None, |
82 |
-- rho=0.3, offset_xy=None, **kwargs): |
83 |
-+ def __init__(self, offset=(2, -2), |
84 |
-+ shadow_rgbFace=None, alpha=None, |
85 |
-+ rho=0.3, **kwargs): |
86 |
- """ |
87 |
- Parameters |
88 |
- ---------- |
89 |
-@@ -241,24 +233,12 @@ class SimplePatchShadow(AbstractPathEffect): |
90 |
- :meth:`AbstractPathEffect._update_gc`. |
91 |
- |
92 |
- """ |
93 |
-- if offset_xy is not None: |
94 |
-- cbook.deprecated('v1.4', 'The offset_xy keyword is deprecated. ' |
95 |
-- 'Use the offset keyword instead.') |
96 |
-- offset = offset_xy |
97 |
- super(SimplePatchShadow, self).__init__(offset) |
98 |
- |
99 |
- if shadow_rgbFace is None: |
100 |
- self._shadow_rgbFace = shadow_rgbFace |
101 |
- else: |
102 |
- self._shadow_rgbFace = colorConverter.to_rgba(shadow_rgbFace) |
103 |
-- if patch_alpha is not None: |
104 |
-- cbook.deprecated('v1.4', 'The patch_alpha keyword is deprecated. ' |
105 |
-- 'Use the alpha keyword instead. Transform your ' |
106 |
-- 'patch_alpha by alpha = 1 - patch_alpha') |
107 |
-- if alpha is not None: |
108 |
-- raise ValueError("Both alpha and patch_alpha were set. " |
109 |
-- "Just use alpha.") |
110 |
-- alpha = 1 - patch_alpha |
111 |
- |
112 |
- if alpha is None: |
113 |
- alpha = 0.3 |
114 |
-diff --git a/lib/matplotlib/tests/test_patheffects.py b/lib/matplotlib/tests/test_patheffects.py |
115 |
-index 8298ceb..5af71e5 100644 |
116 |
---- a/lib/matplotlib/tests/test_patheffects.py |
117 |
-+++ b/lib/matplotlib/tests/test_patheffects.py |
118 |
-@@ -5,7 +5,8 @@ import six |
119 |
- |
120 |
- import numpy as np |
121 |
- |
122 |
--from matplotlib.testing.decorators import image_comparison, cleanup |
123 |
-+from matplotlib.testing.decorators import (image_comparison, cleanup, |
124 |
-+ knownfailureif) |
125 |
- import matplotlib.pyplot as plt |
126 |
- import matplotlib.patheffects as path_effects |
127 |
- |
128 |
-@@ -84,19 +85,7 @@ def test_patheffect3(): |
129 |
- |
130 |
- |
131 |
- @cleanup |
132 |
--def test_PathEffect_get_proxy(): |
133 |
-- pe = path_effects.AbstractPathEffect() |
134 |
-- fig = plt.gcf() |
135 |
-- renderer = fig.canvas.get_renderer() |
136 |
-- |
137 |
-- with mock.patch('matplotlib.cbook.deprecated') as dep: |
138 |
-- proxy_renderer = pe.get_proxy_renderer(renderer) |
139 |
-- assert_equal(proxy_renderer._renderer, renderer) |
140 |
-- assert_equal(proxy_renderer._path_effects, [pe]) |
141 |
-- dep.assert_called() |
142 |
-- |
143 |
-- |
144 |
--@cleanup |
145 |
-+@knownfailureif(True) |
146 |
- def test_PathEffect_points_to_pixels(): |
147 |
- fig = plt.figure(dpi=150) |
148 |
- p1, = plt.plot(range(10)) |
149 |
-@@ -116,11 +105,9 @@ def test_PathEffect_points_to_pixels(): |
150 |
- pe_renderer.points_to_pixels(15)) |
151 |
- |
152 |
- |
153 |
--def test_SimplePatchShadow_offset_xy(): |
154 |
-- with mock.patch('matplotlib.cbook.deprecated') as dep: |
155 |
-- pe = path_effects.SimplePatchShadow(offset_xy=(4, 5)) |
156 |
-+def test_SimplePatchShadow_offset(): |
157 |
-+ pe = path_effects.SimplePatchShadow(offset=(4, 5)) |
158 |
- assert_equal(pe._offset, (4, 5)) |
159 |
-- dep.assert_called() |
160 |
- |
161 |
- |
162 |
- @image_comparison(baseline_images=['collection']) |
163 |
|
164 |
diff --git a/dev-python/matplotlib/files/matplotlib-1.4.3-cross-compile-1.patch b/dev-python/matplotlib/files/matplotlib-1.4.3-cross-compile-1.patch |
165 |
deleted file mode 100644 |
166 |
index 06573144131..00000000000 |
167 |
--- a/dev-python/matplotlib/files/matplotlib-1.4.3-cross-compile-1.patch |
168 |
+++ /dev/null |
169 |
@@ -1,50 +0,0 @@ |
170 |
-https://github.com/matplotlib/matplotlib/pull/4430 |
171 |
- |
172 |
-From 08d26a80859023963bc2ffb41a0b6aed942685a9 Mon Sep 17 00:00:00 2001 |
173 |
-From: Mike Frysinger <vapier@××××××××.org> |
174 |
-Date: Fri, 15 May 2015 03:36:45 -0400 |
175 |
-Subject: [PATCH 1/3] setupext: respect $PKG_CONFIG |
176 |
- |
177 |
-When cross-compiling, it is common to set the PKG_CONFIG env var to a |
178 |
-custom pkg-config that knows about the target. Make sure we respect |
179 |
-that just like the standard pkg-config tools suggest (pkg.m4). If it |
180 |
-isn't set, we use the same default as today -- "pkg-config". |
181 |
---- |
182 |
- setupext.py | 7 ++++--- |
183 |
- 1 file changed, 4 insertions(+), 3 deletions(-) |
184 |
- |
185 |
-diff --git a/setupext.py b/setupext.py |
186 |
-index 80b2a6c..29cddf9 100755 |
187 |
---- a/setupext.py |
188 |
-+++ b/setupext.py |
189 |
-@@ -253,7 +253,8 @@ class PkgConfig(object): |
190 |
- self.has_pkgconfig = False |
191 |
- else: |
192 |
- self.set_pkgconfig_path() |
193 |
-- status, output = getstatusoutput("pkg-config --help") |
194 |
-+ self.pkgconfig = os.environ.get('PKG_CONFIG', 'pkg-config') |
195 |
-+ status, output = getstatusoutput("%s --help" % self.pkgconfig) |
196 |
- self.has_pkgconfig = (status == 0) |
197 |
- if not self.has_pkgconfig: |
198 |
- print("IMPORTANT WARNING:") |
199 |
-@@ -286,7 +287,7 @@ class PkgConfig(object): |
200 |
- |
201 |
- executable = alt_exec |
202 |
- if self.has_pkgconfig: |
203 |
-- executable = 'pkg-config {0}'.format(package) |
204 |
-+ executable = '%s %s' % (self.pkgconfig, package) |
205 |
- |
206 |
- use_defaults = True |
207 |
- |
208 |
-@@ -330,7 +331,7 @@ class PkgConfig(object): |
209 |
- return None |
210 |
- |
211 |
- status, output = getstatusoutput( |
212 |
-- "pkg-config %s --modversion" % (package)) |
213 |
-+ '%s %s --modversion' % (self.pkgconfig, package)) |
214 |
- if status == 0: |
215 |
- return output |
216 |
- return None |
217 |
--- |
218 |
-2.4.0 |
219 |
- |
220 |
|
221 |
diff --git a/dev-python/matplotlib/files/matplotlib-1.4.3-cross-compile-2.patch b/dev-python/matplotlib/files/matplotlib-1.4.3-cross-compile-2.patch |
222 |
deleted file mode 100644 |
223 |
index 9580c70b2ae..00000000000 |
224 |
--- a/dev-python/matplotlib/files/matplotlib-1.4.3-cross-compile-2.patch |
225 |
+++ /dev/null |
226 |
@@ -1,54 +0,0 @@ |
227 |
-https://github.com/matplotlib/matplotlib/pull/4430 |
228 |
- |
229 |
-From 3761303016cab0542891374032eca87e74d585bf Mon Sep 17 00:00:00 2001 |
230 |
-From: Mike Frysinger <vapier@××××××××.org> |
231 |
-Date: Fri, 15 May 2015 03:43:17 -0400 |
232 |
-Subject: [PATCH 2/3] setupext: do not mess with PKG_CONFIG_PATH |
233 |
- |
234 |
-The current code always sets PKG_CONFIG_PATH to build paths in / which |
235 |
-breaks cross-compiling -- things like /usr/lib are for the build system |
236 |
-(e.g. x86) and not for the target (e.g. arm). Since we're adding paths |
237 |
-that are already the default for pkg-config, there's no point in trying |
238 |
-to be smart here. Just punt the code. |
239 |
- |
240 |
-This basically reverts commit 101beb975d3a1218350f02bf68dc2a43ac8ff148. |
241 |
---- |
242 |
- setupext.py | 15 --------------- |
243 |
- 1 file changed, 15 deletions(-) |
244 |
- |
245 |
-diff --git a/setupext.py b/setupext.py |
246 |
-index 29cddf9..57d80e7 100755 |
247 |
---- a/setupext.py |
248 |
-+++ b/setupext.py |
249 |
-@@ -252,7 +252,6 @@ class PkgConfig(object): |
250 |
- if sys.platform == 'win32': |
251 |
- self.has_pkgconfig = False |
252 |
- else: |
253 |
-- self.set_pkgconfig_path() |
254 |
- self.pkgconfig = os.environ.get('PKG_CONFIG', 'pkg-config') |
255 |
- status, output = getstatusoutput("%s --help" % self.pkgconfig) |
256 |
- self.has_pkgconfig = (status == 0) |
257 |
-@@ -262,20 +261,6 @@ class PkgConfig(object): |
258 |
- " pkg-config is not installed.\n" |
259 |
- " matplotlib may not be able to find some of its dependencies") |
260 |
- |
261 |
-- def set_pkgconfig_path(self): |
262 |
-- pkgconfig_path = sysconfig.get_config_var('LIBDIR') |
263 |
-- if pkgconfig_path is None: |
264 |
-- return |
265 |
-- |
266 |
-- pkgconfig_path = os.path.join(pkgconfig_path, 'pkgconfig') |
267 |
-- if not os.path.isdir(pkgconfig_path): |
268 |
-- return |
269 |
-- |
270 |
-- try: |
271 |
-- os.environ['PKG_CONFIG_PATH'] += ':' + pkgconfig_path |
272 |
-- except KeyError: |
273 |
-- os.environ['PKG_CONFIG_PATH'] = pkgconfig_path |
274 |
-- |
275 |
- def setup_extension(self, ext, package, default_include_dirs=[], |
276 |
- default_library_dirs=[], default_libraries=[], |
277 |
- alt_exec=None): |
278 |
--- |
279 |
-2.4.0 |
280 |
- |
281 |
|
282 |
diff --git a/dev-python/matplotlib/files/matplotlib-1.4.3-cross-compile-3.patch b/dev-python/matplotlib/files/matplotlib-1.4.3-cross-compile-3.patch |
283 |
deleted file mode 100644 |
284 |
index 21fdf128863..00000000000 |
285 |
--- a/dev-python/matplotlib/files/matplotlib-1.4.3-cross-compile-3.patch |
286 |
+++ /dev/null |
287 |
@@ -1,58 +0,0 @@ |
288 |
-https://github.com/matplotlib/matplotlib/pull/4430 |
289 |
- |
290 |
-From d077e49be318c851f6bbd64708efeed78a3ece3f Mon Sep 17 00:00:00 2001 |
291 |
-From: Mike Frysinger <vapier@××××××××.org> |
292 |
-Date: Fri, 15 May 2015 03:49:02 -0400 |
293 |
-Subject: [PATCH 3/3] setupext: do not hardcode system -I/-L paths |
294 |
- |
295 |
-The native compiler should already know the right paths to look for |
296 |
-includes and libraries. Hardcoding a specific list of those paths |
297 |
-breaks both cross-compiling and multilib. In the former, paths like |
298 |
-/usr/include and /usr/lib are for x86 but when you want to build for |
299 |
-arm, mixing them leads to bad failures. In the latter, paths like |
300 |
-/usr/lib typically hold 32it libraries, but when you're building for |
301 |
-64bit, you want the libs from /usr/lib64. This goes even further as |
302 |
-there are other mixed ABIs like /usr/libx32 and /usr/lib32, neither |
303 |
-of which are handled here. |
304 |
- |
305 |
-Instead, delete the code entirely and rely on the compiler being |
306 |
-properly configured. If you want to use a misconfigured compiler, |
307 |
-you can always set CFLAGS/CPPFLAGS/LDFLAGS to include the -I/-L |
308 |
-that your system needs. |
309 |
---- |
310 |
- setupext.py | 12 +----------- |
311 |
- 1 file changed, 1 insertion(+), 11 deletions(-) |
312 |
- |
313 |
-diff --git a/setupext.py b/setupext.py |
314 |
-index 57d80e7..7473e3a 100755 |
315 |
---- a/setupext.py |
316 |
-+++ b/setupext.py |
317 |
-@@ -216,9 +216,7 @@ sysconfig.customize_compiler = my_customize_compiler |
318 |
- |
319 |
- def make_extension(name, files, *args, **kwargs): |
320 |
- """ |
321 |
-- Make a new extension. Automatically sets include_dirs and |
322 |
-- library_dirs to the base directories appropriate for this |
323 |
-- platform. |
324 |
-+ Make a new extension. |
325 |
- |
326 |
- `name` is the name of the extension. |
327 |
- |
328 |
-@@ -228,14 +226,6 @@ def make_extension(name, files, *args, **kwargs): |
329 |
- `distutils.core.Extension` constructor. |
330 |
- """ |
331 |
- ext = DelayedExtension(name, files, *args, **kwargs) |
332 |
-- for dir in get_base_dirs(): |
333 |
-- include_dir = os.path.join(dir, 'include') |
334 |
-- if os.path.exists(include_dir): |
335 |
-- ext.include_dirs.append(include_dir) |
336 |
-- for lib in ('lib', 'lib64'): |
337 |
-- lib_dir = os.path.join(dir, lib) |
338 |
-- if os.path.exists(lib_dir): |
339 |
-- ext.library_dirs.append(lib_dir) |
340 |
- ext.include_dirs.append('.') |
341 |
- |
342 |
- return ext |
343 |
--- |
344 |
-2.4.0 |
345 |
- |
346 |
|
347 |
diff --git a/dev-python/matplotlib/files/matplotlib-2.2.0-doc-make.patch b/dev-python/matplotlib/files/matplotlib-2.2.0-doc-make.patch |
348 |
deleted file mode 100644 |
349 |
index 7ca0c697423..00000000000 |
350 |
--- a/dev-python/matplotlib/files/matplotlib-2.2.0-doc-make.patch |
351 |
+++ /dev/null |
352 |
@@ -1,10 +0,0 @@ |
353 |
-diff -r -U2 matplotlib-2.1.2.orig/doc/conf.py matplotlib-2.1.2/doc/conf.py |
354 |
---- matplotlib-2.1.2.orig/doc/conf.py 2018-01-19 11:07:49.000000000 +0700 |
355 |
-+++ matplotlib-2.1.2/doc/conf.py 2018-01-21 20:06:44.120901546 +0700 |
356 |
-@@ -136,5 +136,5 @@ |
357 |
- } |
358 |
- |
359 |
--plot_gallery = 'True' |
360 |
-+plot_gallery = True |
361 |
- |
362 |
- # Add any paths that contain templates here, relative to this directory. |
363 |
|
364 |
diff --git a/dev-python/matplotlib/matplotlib-2.2.0.ebuild b/dev-python/matplotlib/matplotlib-2.2.0.ebuild |
365 |
deleted file mode 100644 |
366 |
index d1fc0c28597..00000000000 |
367 |
--- a/dev-python/matplotlib/matplotlib-2.2.0.ebuild |
368 |
+++ /dev/null |
369 |
@@ -1,257 +0,0 @@ |
370 |
-# Copyright 1999-2018 Gentoo Foundation |
371 |
-# Distributed under the terms of the GNU General Public License v2 |
372 |
- |
373 |
-EAPI=6 |
374 |
- |
375 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) |
376 |
-PYTHON_REQ_USE='tk?,threads(+)' |
377 |
- |
378 |
-inherit distutils-r1 flag-o-matic virtualx toolchain-funcs prefix |
379 |
- |
380 |
-DESCRIPTION="Pure python plotting library with matlab like syntax" |
381 |
-HOMEPAGE="https://matplotlib.org/" |
382 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
383 |
- |
384 |
-SLOT="0" |
385 |
-# Main license: matplotlib |
386 |
-# Some modules: BSD |
387 |
-# matplotlib/backends/qt4_editor: MIT |
388 |
-# Fonts: BitstreamVera, OFL-1.1 |
389 |
-LICENSE="BitstreamVera BSD matplotlib MIT OFL-1.1" |
390 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" |
391 |
-IUSE="cairo doc excel examples gtk2 gtk3 latex pyside qt5 test tk wxwidgets" |
392 |
- |
393 |
-PY2_FLAGS="|| ( $(python_gen_useflags python2_7) )" |
394 |
-REQUIRED_USE=" |
395 |
- doc? ( ${PY2_FLAGS} ) |
396 |
- excel? ( ${PY2_FLAGS} ) |
397 |
- gtk2? ( ${PY2_FLAGS} ) |
398 |
- wxwidgets? ( ${PY2_FLAGS} ) |
399 |
- test? ( |
400 |
- cairo latex qt5 tk wxwidgets |
401 |
- || ( gtk2 gtk3 ) |
402 |
- )" |
403 |
- |
404 |
-# #456704 -- a lot of py2-only deps |
405 |
-PY2_USEDEP=$(python_gen_usedep python2_7) |
406 |
-PY2_DEPEND=" |
407 |
- $(python_gen_cond_dep 'dev-python/functools32[${PYTHON_USEDEP}]' python2_7) |
408 |
- $(python_gen_cond_dep 'dev-python/subprocess32[${PYTHON_USEDEP}]' python2_7) |
409 |
- $(python_gen_cond_dep 'dev-python/backports-functools-lru-cache[${PYTHON_USEDEP}]' python2_7)" |
410 |
-COMMON_DEPEND=" |
411 |
- dev-python/cycler[${PYTHON_USEDEP}] |
412 |
- >=dev-python/numpy-1.7.1[${PYTHON_USEDEP}] |
413 |
- dev-python/python-dateutil:0[${PYTHON_USEDEP}] |
414 |
- dev-python/pytz[${PYTHON_USEDEP}] |
415 |
- >=dev-python/six-1.10[${PYTHON_USEDEP}] |
416 |
- media-fonts/stix-fonts |
417 |
- media-libs/freetype:2 |
418 |
- media-libs/libpng:0 |
419 |
- >=media-libs/qhull-2013 |
420 |
- >=dev-python/kiwisolver-1.0.0[${PYTHON_USEDEP}] |
421 |
- cairo? ( dev-python/cairocffi[${PYTHON_USEDEP}] ) |
422 |
- gtk2? ( |
423 |
- dev-libs/glib:2= |
424 |
- x11-libs/gdk-pixbuf |
425 |
- x11-libs/gtk+:2 |
426 |
- dev-python/pygtk[${PY2_USEDEP}] ) |
427 |
- wxwidgets? ( >=dev-python/wxpython-2.8:*[${PY2_USEDEP}] )" |
428 |
- |
429 |
-# internal copy of pycxx highly patched |
430 |
-# dev-python/pycxx |
431 |
- |
432 |
-DEPEND="${COMMON_DEPEND} |
433 |
- ${PY2_DEPEND} |
434 |
- dev-python/versioneer[${PYTHON_USEDEP}] |
435 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
436 |
- virtual/pkgconfig |
437 |
- doc? ( |
438 |
- app-text/dvipng |
439 |
- dev-python/colorspacious[${PYTHON_USEDEP}] |
440 |
- dev-python/pillow[${PYTHON_USEDEP}] |
441 |
- dev-python/ipython[${PYTHON_USEDEP}] |
442 |
- dev-python/mock[${PY2_USEDEP}] |
443 |
- dev-python/numpydoc[${PYTHON_USEDEP}] |
444 |
- sci-libs/scipy[${PYTHON_USEDEP}] |
445 |
- >=dev-python/sphinx-1.3.0[${PYTHON_USEDEP}] |
446 |
- >=dev-python/sphinx-gallery-0.1.12[${PYTHON_USEDEP}] |
447 |
- dev-python/xlwt[${PYTHON_USEDEP}] |
448 |
- dev-texlive/texlive-latexextra |
449 |
- dev-texlive/texlive-fontsrecommended |
450 |
- dev-texlive/texlive-latexrecommended |
451 |
- media-gfx/graphviz[cairo] |
452 |
- ) |
453 |
- test? ( |
454 |
- dev-python/mock[${PYTHON_USEDEP}] |
455 |
- >=dev-python/nose-0.11.1[${PYTHON_USEDEP}] |
456 |
- )" |
457 |
- |
458 |
-RDEPEND="${COMMON_DEPEND} |
459 |
- ${PY2_DEPEND} |
460 |
- >=dev-python/pyparsing-1.5.6[${PYTHON_USEDEP}] |
461 |
- excel? ( dev-python/xlwt[${PYTHON_USEDEP}] ) |
462 |
- gtk3? ( |
463 |
- dev-python/pygobject:3[${PYTHON_USEDEP}] |
464 |
- x11-libs/gtk+:3[introspection] ) |
465 |
- latex? ( |
466 |
- virtual/latex-base |
467 |
- app-text/ghostscript-gpl |
468 |
- app-text/dvipng |
469 |
- app-text/poppler[utils] |
470 |
- dev-texlive/texlive-fontsrecommended |
471 |
- dev-texlive/texlive-latexextra |
472 |
- dev-texlive/texlive-xetex |
473 |
- ) |
474 |
- pyside? ( dev-python/pyside[X,${PYTHON_USEDEP}] ) |
475 |
- qt5? ( dev-python/PyQt5[gui,widgets,${PYTHON_USEDEP}] ) |
476 |
- " |
477 |
- |
478 |
-# A few C++ source files are written to srcdir. |
479 |
-# Other than that, the ebuild shall be fit for out-of-source build. |
480 |
-DISTUTILS_IN_SOURCE_BUILD=1 |
481 |
- |
482 |
-pkg_setup() { |
483 |
- unset DISPLAY # bug #278524 |
484 |
-} |
485 |
- |
486 |
-use_setup() { |
487 |
- local uword="${2:-${1}}" |
488 |
- if use ${1}; then |
489 |
- echo "${uword} = True" |
490 |
- echo "${uword}agg = True" |
491 |
- else |
492 |
- echo "${uword} = False" |
493 |
- echo "${uword}agg = False" |
494 |
- fi |
495 |
-} |
496 |
- |
497 |
-python_prepare_all() { |
498 |
-# Generates test failures, but fedora does it |
499 |
-# local PATCHES=( |
500 |
-# "${FILESDIR}"/${P}-unbundle-pycxx.patch |
501 |
-# "${FILESDIR}"/${P}-unbundle-agg.patch |
502 |
-# ) |
503 |
-# rm -r agg24 CXX || die |
504 |
-# rm -r agg24 || die |
505 |
- |
506 |
-# cat > lib/${PN}/externals/six.py <<-EOF |
507 |
-# from __future__ import absolute_import |
508 |
-# from six import * |
509 |
-# EOF |
510 |
- |
511 |
- local PATCHES=( "${FILESDIR}"/${P}-doc-make.patch ) |
512 |
- |
513 |
- sed \ |
514 |
- -e 's/matplotlib.pyparsing_py[23]/pyparsing/g' \ |
515 |
- -i lib/matplotlib/{mathtext,fontconfig_pattern}.py \ |
516 |
- || die "sed pyparsing failed" |
517 |
- |
518 |
- hprefixify setupext.py |
519 |
- |
520 |
- export XDG_RUNTIME_DIR="${T}/runtime-dir" |
521 |
- mkdir "${XDG_RUNTIME_DIR}" || die |
522 |
- chmod 0700 "${XDG_RUNTIME_DIR}" || die |
523 |
- |
524 |
- distutils-r1_python_prepare_all |
525 |
-} |
526 |
- |
527 |
-python_configure_all() { |
528 |
- append-flags -fno-strict-aliasing |
529 |
- append-cppflags -DNDEBUG # or get old trying to do triangulation |
530 |
- tc-export PKG_CONFIG |
531 |
-} |
532 |
- |
533 |
-python_configure() { |
534 |
- mkdir -p "${BUILD_DIR}" || die |
535 |
- |
536 |
- # create setup.cfg (see setup.cfg.template for any changes). |
537 |
- |
538 |
- # common switches. |
539 |
- cat > "${BUILD_DIR}"/setup.cfg <<- EOF || die |
540 |
- [directories] |
541 |
- basedirlist = ${EPREFIX}/usr |
542 |
- [provide_packages] |
543 |
- pytz = False |
544 |
- dateutil = False |
545 |
- [packages] |
546 |
- tests = $(usex test True False) |
547 |
- [gui_support] |
548 |
- agg = True |
549 |
- qt4 = False |
550 |
- qt4agg = False |
551 |
- $(use_setup cairo) |
552 |
- $(use_setup gtk3) |
553 |
- $(use_setup pyside) |
554 |
- $(use_setup qt5) |
555 |
- $(use_setup tk) |
556 |
- EOF |
557 |
- |
558 |
- if use gtk3 && use cairo; then |
559 |
- echo "gtk3cairo = True" >> "${BUILD_DIR}"/setup.cfg || die |
560 |
- else |
561 |
- echo "gtk3cairo = False" >> "${BUILD_DIR}"/setup.cfg || die |
562 |
- fi |
563 |
- |
564 |
- if python_is_python3; then |
565 |
- cat >> "${BUILD_DIR}"/setup.cfg <<- EOF || die |
566 |
- gtk = False |
567 |
- gtkagg = False |
568 |
- wx = False |
569 |
- wxagg = False |
570 |
- EOF |
571 |
- else |
572 |
- cat >> "${BUILD_DIR}"/setup.cfg <<-EOF || die |
573 |
- $(use_setup gtk2 gtk) |
574 |
- $(use_setup wxwidgets wx) |
575 |
- EOF |
576 |
- fi |
577 |
-} |
578 |
- |
579 |
-wrap_setup() { |
580 |
- local -x MPLSETUPCFG=${BUILD_DIR}/setup.cfg |
581 |
- unset DISPLAY |
582 |
- "$@" |
583 |
-} |
584 |
- |
585 |
-python_compile() { |
586 |
- wrap_setup distutils-r1_python_compile --build-lib="${BUILD_DIR}"/lib |
587 |
-} |
588 |
- |
589 |
-python_compile_all() { |
590 |
- if use doc; then |
591 |
- cd doc || die |
592 |
- |
593 |
- # necessary for in-source build |
594 |
- local -x PYTHONPATH="${BUILD_DIR}"/build/lib:${PYTHONPATH} |
595 |
- |
596 |
- VARTEXFONTS="${T}"/fonts \ |
597 |
- emake SPHINXOPTS= O=-Dplot_formats=png:100 html |
598 |
- fi |
599 |
-} |
600 |
- |
601 |
-python_test() { |
602 |
- wrap_setup distutils_install_for_testing |
603 |
- |
604 |
- virtx "${EPYTHON}" -c "import sys, matplotlib as m; sys.exit(0 if m.test(verbosity=2) else 1)" |
605 |
-} |
606 |
- |
607 |
-python_install() { |
608 |
- wrap_setup distutils-r1_python_install |
609 |
- |
610 |
- # mpl_toolkits namespace |
611 |
- python_moduleinto mpl_toolkits |
612 |
- python_domodule lib/mpl_toolkits/__init__.py |
613 |
-} |
614 |
- |
615 |
-python_install_all() { |
616 |
- use doc && local HTML_DOCS=( doc/build/html/. ) |
617 |
- |
618 |
- distutils-r1_python_install_all |
619 |
- |
620 |
- if use examples; then |
621 |
- dodoc -r examples |
622 |
- docompress -x /usr/share/doc/${PF}/examples |
623 |
- fi |
624 |
- |
625 |
- find "${D}" -name '*.pth' -delete || die |
626 |
-} |
627 |
|
628 |
diff --git a/dev-python/matplotlib/matplotlib-2.2.2.ebuild b/dev-python/matplotlib/matplotlib-2.2.2.ebuild |
629 |
deleted file mode 100644 |
630 |
index d1fc0c28597..00000000000 |
631 |
--- a/dev-python/matplotlib/matplotlib-2.2.2.ebuild |
632 |
+++ /dev/null |
633 |
@@ -1,257 +0,0 @@ |
634 |
-# Copyright 1999-2018 Gentoo Foundation |
635 |
-# Distributed under the terms of the GNU General Public License v2 |
636 |
- |
637 |
-EAPI=6 |
638 |
- |
639 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) |
640 |
-PYTHON_REQ_USE='tk?,threads(+)' |
641 |
- |
642 |
-inherit distutils-r1 flag-o-matic virtualx toolchain-funcs prefix |
643 |
- |
644 |
-DESCRIPTION="Pure python plotting library with matlab like syntax" |
645 |
-HOMEPAGE="https://matplotlib.org/" |
646 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
647 |
- |
648 |
-SLOT="0" |
649 |
-# Main license: matplotlib |
650 |
-# Some modules: BSD |
651 |
-# matplotlib/backends/qt4_editor: MIT |
652 |
-# Fonts: BitstreamVera, OFL-1.1 |
653 |
-LICENSE="BitstreamVera BSD matplotlib MIT OFL-1.1" |
654 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" |
655 |
-IUSE="cairo doc excel examples gtk2 gtk3 latex pyside qt5 test tk wxwidgets" |
656 |
- |
657 |
-PY2_FLAGS="|| ( $(python_gen_useflags python2_7) )" |
658 |
-REQUIRED_USE=" |
659 |
- doc? ( ${PY2_FLAGS} ) |
660 |
- excel? ( ${PY2_FLAGS} ) |
661 |
- gtk2? ( ${PY2_FLAGS} ) |
662 |
- wxwidgets? ( ${PY2_FLAGS} ) |
663 |
- test? ( |
664 |
- cairo latex qt5 tk wxwidgets |
665 |
- || ( gtk2 gtk3 ) |
666 |
- )" |
667 |
- |
668 |
-# #456704 -- a lot of py2-only deps |
669 |
-PY2_USEDEP=$(python_gen_usedep python2_7) |
670 |
-PY2_DEPEND=" |
671 |
- $(python_gen_cond_dep 'dev-python/functools32[${PYTHON_USEDEP}]' python2_7) |
672 |
- $(python_gen_cond_dep 'dev-python/subprocess32[${PYTHON_USEDEP}]' python2_7) |
673 |
- $(python_gen_cond_dep 'dev-python/backports-functools-lru-cache[${PYTHON_USEDEP}]' python2_7)" |
674 |
-COMMON_DEPEND=" |
675 |
- dev-python/cycler[${PYTHON_USEDEP}] |
676 |
- >=dev-python/numpy-1.7.1[${PYTHON_USEDEP}] |
677 |
- dev-python/python-dateutil:0[${PYTHON_USEDEP}] |
678 |
- dev-python/pytz[${PYTHON_USEDEP}] |
679 |
- >=dev-python/six-1.10[${PYTHON_USEDEP}] |
680 |
- media-fonts/stix-fonts |
681 |
- media-libs/freetype:2 |
682 |
- media-libs/libpng:0 |
683 |
- >=media-libs/qhull-2013 |
684 |
- >=dev-python/kiwisolver-1.0.0[${PYTHON_USEDEP}] |
685 |
- cairo? ( dev-python/cairocffi[${PYTHON_USEDEP}] ) |
686 |
- gtk2? ( |
687 |
- dev-libs/glib:2= |
688 |
- x11-libs/gdk-pixbuf |
689 |
- x11-libs/gtk+:2 |
690 |
- dev-python/pygtk[${PY2_USEDEP}] ) |
691 |
- wxwidgets? ( >=dev-python/wxpython-2.8:*[${PY2_USEDEP}] )" |
692 |
- |
693 |
-# internal copy of pycxx highly patched |
694 |
-# dev-python/pycxx |
695 |
- |
696 |
-DEPEND="${COMMON_DEPEND} |
697 |
- ${PY2_DEPEND} |
698 |
- dev-python/versioneer[${PYTHON_USEDEP}] |
699 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
700 |
- virtual/pkgconfig |
701 |
- doc? ( |
702 |
- app-text/dvipng |
703 |
- dev-python/colorspacious[${PYTHON_USEDEP}] |
704 |
- dev-python/pillow[${PYTHON_USEDEP}] |
705 |
- dev-python/ipython[${PYTHON_USEDEP}] |
706 |
- dev-python/mock[${PY2_USEDEP}] |
707 |
- dev-python/numpydoc[${PYTHON_USEDEP}] |
708 |
- sci-libs/scipy[${PYTHON_USEDEP}] |
709 |
- >=dev-python/sphinx-1.3.0[${PYTHON_USEDEP}] |
710 |
- >=dev-python/sphinx-gallery-0.1.12[${PYTHON_USEDEP}] |
711 |
- dev-python/xlwt[${PYTHON_USEDEP}] |
712 |
- dev-texlive/texlive-latexextra |
713 |
- dev-texlive/texlive-fontsrecommended |
714 |
- dev-texlive/texlive-latexrecommended |
715 |
- media-gfx/graphviz[cairo] |
716 |
- ) |
717 |
- test? ( |
718 |
- dev-python/mock[${PYTHON_USEDEP}] |
719 |
- >=dev-python/nose-0.11.1[${PYTHON_USEDEP}] |
720 |
- )" |
721 |
- |
722 |
-RDEPEND="${COMMON_DEPEND} |
723 |
- ${PY2_DEPEND} |
724 |
- >=dev-python/pyparsing-1.5.6[${PYTHON_USEDEP}] |
725 |
- excel? ( dev-python/xlwt[${PYTHON_USEDEP}] ) |
726 |
- gtk3? ( |
727 |
- dev-python/pygobject:3[${PYTHON_USEDEP}] |
728 |
- x11-libs/gtk+:3[introspection] ) |
729 |
- latex? ( |
730 |
- virtual/latex-base |
731 |
- app-text/ghostscript-gpl |
732 |
- app-text/dvipng |
733 |
- app-text/poppler[utils] |
734 |
- dev-texlive/texlive-fontsrecommended |
735 |
- dev-texlive/texlive-latexextra |
736 |
- dev-texlive/texlive-xetex |
737 |
- ) |
738 |
- pyside? ( dev-python/pyside[X,${PYTHON_USEDEP}] ) |
739 |
- qt5? ( dev-python/PyQt5[gui,widgets,${PYTHON_USEDEP}] ) |
740 |
- " |
741 |
- |
742 |
-# A few C++ source files are written to srcdir. |
743 |
-# Other than that, the ebuild shall be fit for out-of-source build. |
744 |
-DISTUTILS_IN_SOURCE_BUILD=1 |
745 |
- |
746 |
-pkg_setup() { |
747 |
- unset DISPLAY # bug #278524 |
748 |
-} |
749 |
- |
750 |
-use_setup() { |
751 |
- local uword="${2:-${1}}" |
752 |
- if use ${1}; then |
753 |
- echo "${uword} = True" |
754 |
- echo "${uword}agg = True" |
755 |
- else |
756 |
- echo "${uword} = False" |
757 |
- echo "${uword}agg = False" |
758 |
- fi |
759 |
-} |
760 |
- |
761 |
-python_prepare_all() { |
762 |
-# Generates test failures, but fedora does it |
763 |
-# local PATCHES=( |
764 |
-# "${FILESDIR}"/${P}-unbundle-pycxx.patch |
765 |
-# "${FILESDIR}"/${P}-unbundle-agg.patch |
766 |
-# ) |
767 |
-# rm -r agg24 CXX || die |
768 |
-# rm -r agg24 || die |
769 |
- |
770 |
-# cat > lib/${PN}/externals/six.py <<-EOF |
771 |
-# from __future__ import absolute_import |
772 |
-# from six import * |
773 |
-# EOF |
774 |
- |
775 |
- local PATCHES=( "${FILESDIR}"/${P}-doc-make.patch ) |
776 |
- |
777 |
- sed \ |
778 |
- -e 's/matplotlib.pyparsing_py[23]/pyparsing/g' \ |
779 |
- -i lib/matplotlib/{mathtext,fontconfig_pattern}.py \ |
780 |
- || die "sed pyparsing failed" |
781 |
- |
782 |
- hprefixify setupext.py |
783 |
- |
784 |
- export XDG_RUNTIME_DIR="${T}/runtime-dir" |
785 |
- mkdir "${XDG_RUNTIME_DIR}" || die |
786 |
- chmod 0700 "${XDG_RUNTIME_DIR}" || die |
787 |
- |
788 |
- distutils-r1_python_prepare_all |
789 |
-} |
790 |
- |
791 |
-python_configure_all() { |
792 |
- append-flags -fno-strict-aliasing |
793 |
- append-cppflags -DNDEBUG # or get old trying to do triangulation |
794 |
- tc-export PKG_CONFIG |
795 |
-} |
796 |
- |
797 |
-python_configure() { |
798 |
- mkdir -p "${BUILD_DIR}" || die |
799 |
- |
800 |
- # create setup.cfg (see setup.cfg.template for any changes). |
801 |
- |
802 |
- # common switches. |
803 |
- cat > "${BUILD_DIR}"/setup.cfg <<- EOF || die |
804 |
- [directories] |
805 |
- basedirlist = ${EPREFIX}/usr |
806 |
- [provide_packages] |
807 |
- pytz = False |
808 |
- dateutil = False |
809 |
- [packages] |
810 |
- tests = $(usex test True False) |
811 |
- [gui_support] |
812 |
- agg = True |
813 |
- qt4 = False |
814 |
- qt4agg = False |
815 |
- $(use_setup cairo) |
816 |
- $(use_setup gtk3) |
817 |
- $(use_setup pyside) |
818 |
- $(use_setup qt5) |
819 |
- $(use_setup tk) |
820 |
- EOF |
821 |
- |
822 |
- if use gtk3 && use cairo; then |
823 |
- echo "gtk3cairo = True" >> "${BUILD_DIR}"/setup.cfg || die |
824 |
- else |
825 |
- echo "gtk3cairo = False" >> "${BUILD_DIR}"/setup.cfg || die |
826 |
- fi |
827 |
- |
828 |
- if python_is_python3; then |
829 |
- cat >> "${BUILD_DIR}"/setup.cfg <<- EOF || die |
830 |
- gtk = False |
831 |
- gtkagg = False |
832 |
- wx = False |
833 |
- wxagg = False |
834 |
- EOF |
835 |
- else |
836 |
- cat >> "${BUILD_DIR}"/setup.cfg <<-EOF || die |
837 |
- $(use_setup gtk2 gtk) |
838 |
- $(use_setup wxwidgets wx) |
839 |
- EOF |
840 |
- fi |
841 |
-} |
842 |
- |
843 |
-wrap_setup() { |
844 |
- local -x MPLSETUPCFG=${BUILD_DIR}/setup.cfg |
845 |
- unset DISPLAY |
846 |
- "$@" |
847 |
-} |
848 |
- |
849 |
-python_compile() { |
850 |
- wrap_setup distutils-r1_python_compile --build-lib="${BUILD_DIR}"/lib |
851 |
-} |
852 |
- |
853 |
-python_compile_all() { |
854 |
- if use doc; then |
855 |
- cd doc || die |
856 |
- |
857 |
- # necessary for in-source build |
858 |
- local -x PYTHONPATH="${BUILD_DIR}"/build/lib:${PYTHONPATH} |
859 |
- |
860 |
- VARTEXFONTS="${T}"/fonts \ |
861 |
- emake SPHINXOPTS= O=-Dplot_formats=png:100 html |
862 |
- fi |
863 |
-} |
864 |
- |
865 |
-python_test() { |
866 |
- wrap_setup distutils_install_for_testing |
867 |
- |
868 |
- virtx "${EPYTHON}" -c "import sys, matplotlib as m; sys.exit(0 if m.test(verbosity=2) else 1)" |
869 |
-} |
870 |
- |
871 |
-python_install() { |
872 |
- wrap_setup distutils-r1_python_install |
873 |
- |
874 |
- # mpl_toolkits namespace |
875 |
- python_moduleinto mpl_toolkits |
876 |
- python_domodule lib/mpl_toolkits/__init__.py |
877 |
-} |
878 |
- |
879 |
-python_install_all() { |
880 |
- use doc && local HTML_DOCS=( doc/build/html/. ) |
881 |
- |
882 |
- distutils-r1_python_install_all |
883 |
- |
884 |
- if use examples; then |
885 |
- dodoc -r examples |
886 |
- docompress -x /usr/share/doc/${PF}/examples |
887 |
- fi |
888 |
- |
889 |
- find "${D}" -name '*.pth' -delete || die |
890 |
-} |