1 |
idella4 12/11/29 10:03:01 |
2 |
|
3 |
Added: matplotlib-1.2.0-ft-refcount.patch |
4 |
matplotlib-1.2.0-setup.patch |
5 |
Log: |
6 |
bump to 1.2.0, test phase upgraded, new ft-refcount.patch from upstream, python3 support but for USE doc requiring special treatment, ack to users Nicolas Bigaouette and Rafal Muzylo for patches in entered in Bug #443836 |
7 |
|
8 |
(Portage version: 2.1.11.30/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 dev-python/matplotlib/files/matplotlib-1.2.0-ft-refcount.patch |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/matplotlib/files/matplotlib-1.2.0-ft-refcount.patch?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/matplotlib/files/matplotlib-1.2.0-ft-refcount.patch?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: matplotlib-1.2.0-ft-refcount.patch |
17 |
=================================================================== |
18 |
Issue 532; https://github.com/mdboom/matplotlib/commit/81068e9967387ea69133277242a9804d646ea4ef |
19 |
diff -ur matplotlib-1.2.0.orig/src/ft2font.cpp matplotlib-1.2.0/src/ft2font.cpp |
20 |
--- src/ft2font.cpp 2012-10-31 08:11:14.000000000 +0800 |
21 |
+++ src/ft2font.cpp 2012-11-29 11:09:43.569808461 +0800 |
22 |
@@ -852,28 +852,24 @@ |
23 |
{ |
24 |
std::ostringstream s; |
25 |
s << "Could not load facefile " << facefile << "; Unknown_File_Format" << std::endl; |
26 |
- ob_refcnt--; |
27 |
throw Py::RuntimeError(s.str()); |
28 |
} |
29 |
else if (error == FT_Err_Cannot_Open_Resource) |
30 |
{ |
31 |
std::ostringstream s; |
32 |
s << "Could not open facefile " << facefile << "; Cannot_Open_Resource" << std::endl; |
33 |
- ob_refcnt--; |
34 |
throw Py::RuntimeError(s.str()); |
35 |
} |
36 |
else if (error == FT_Err_Invalid_File_Format) |
37 |
{ |
38 |
std::ostringstream s; |
39 |
s << "Could not open facefile " << facefile << "; Invalid_File_Format" << std::endl; |
40 |
- ob_refcnt--; |
41 |
throw Py::RuntimeError(s.str()); |
42 |
} |
43 |
else if (error) |
44 |
{ |
45 |
std::ostringstream s; |
46 |
s << "Could not open facefile " << facefile << "; freetype error code " << error << std::endl; |
47 |
- ob_refcnt--; |
48 |
throw Py::RuntimeError(s.str()); |
49 |
} |
50 |
|
51 |
@@ -891,7 +887,6 @@ |
52 |
{ |
53 |
std::ostringstream s; |
54 |
s << "Could not set the fontsize for facefile " << facefile << std::endl; |
55 |
- ob_refcnt--; |
56 |
throw Py::RuntimeError(s.str()); |
57 |
} |
58 |
|
59 |
|
60 |
|
61 |
|
62 |
1.1 dev-python/matplotlib/files/matplotlib-1.2.0-setup.patch |
63 |
|
64 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/matplotlib/files/matplotlib-1.2.0-setup.patch?rev=1.1&view=markup |
65 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/matplotlib/files/matplotlib-1.2.0-setup.patch?rev=1.1&content-type=text/plain |
66 |
|
67 |
Index: matplotlib-1.2.0-setup.patch |
68 |
=================================================================== |
69 |
diff -ur matplotlib-1.2.0.orig/setup.py matplotlib-1.2.0/setup.py |
70 |
--- setup.py 2012-11-08 10:24:12.000000000 +0800 |
71 |
+++ setup.py 2012-11-25 06:55:27.531042898 +0800 |
72 |
@@ -176,15 +176,12 @@ |
73 |
build_tkagg(ext_modules, packages) |
74 |
rc['backend'] = 'TkAgg' |
75 |
|
76 |
-hasgtk = check_for_gtk() |
77 |
-if options['build_gtk']: |
78 |
- if hasgtk or (options['build_gtk'] is True): |
79 |
- build_gdk(ext_modules, packages) |
80 |
-if options['build_gtkagg']: |
81 |
- if hasgtk or (options['build_gtkagg'] is True): |
82 |
- options['build_agg'] = 1 |
83 |
- build_gtkagg(ext_modules, packages) |
84 |
- rc['backend'] = 'GTKAgg' |
85 |
+hasgtk = False if sys.version_info[0] >= 3 else True |
86 |
+if hasgtk and (options['build_gtk'] is True): |
87 |
+ build_gdk(ext_modules, packages) |
88 |
+ options['build_agg'] = 1 |
89 |
+ build_gtkagg(ext_modules, packages) |
90 |
+ rc['backend'] = 'GTKAgg' |
91 |
|
92 |
if options['build_macosx']: |
93 |
if check_for_macosx() or (options['build_macosx'] is True): |