summaryrefslogtreecommitdiff
path: root/math/py-matplotlib/files
diff options
context:
space:
mode:
Diffstat (limited to 'math/py-matplotlib/files')
-rw-r--r--math/py-matplotlib/files/patch-setup.cfg86
-rw-r--r--math/py-matplotlib/files/patch-setupext.py24
2 files changed, 98 insertions, 12 deletions
diff --git a/math/py-matplotlib/files/patch-setup.cfg b/math/py-matplotlib/files/patch-setup.cfg
new file mode 100644
index 000000000000..a780162a3181
--- /dev/null
+++ b/math/py-matplotlib/files/patch-setup.cfg
@@ -0,0 +1,86 @@
+--- setup.cfg 1969-12-31 19:00:00.000000000 -0500
++++ setup.cfg 2010-07-06 10:44:15.000000000 -0400
+@@ -0,0 +1,83 @@
++# Rename this file to setup.cfg to modify matplotlib's
++# build options.
++
++[egg_info]
++tag_svn_revision = 1
++
++[directories]
++# Uncomment to override the default basedir in setupext.py.
++# This can be a single directory or a space-delimited list of directories.
++#basedirlist = /usr
++
++[status]
++# To suppress display of the dependencies and their versions
++# at the top of the build log, uncomment the following line:
++#suppress = True
++#
++# Uncomment to insert lots of diagnostic prints in extension code
++#verbose = True
++
++[provide_packages]
++# By default, matplotlib checks for a few dependencies and
++# installs them if missing. This feature can be turned off
++# by uncommenting the following lines. Acceptible values are:
++# True: install, overwrite an existing installation
++# False: do not install
++# auto: install only if the package is unavailable. This
++# is the default behavior
++#
++## Date/timezone support:
++pytz = False
++dateutil = False
++
++[gui_support]
++# Matplotlib supports multiple GUI toolkits, including Cocoa,
++# GTK, Fltk, MacOSX, Qt, Qt4, Tk, and WX. Support for many of
++# these toolkits requires AGG, the Anti-Grain Geometry library,
++# which is provided by matplotlib and built by default.
++#
++# Some backends are written in pure Python, and others require
++# extension code to be compiled. By default, matplotlib checks
++# for these GUI toolkits during installation and, if present,
++# compiles the required extensions to support the toolkit. GTK
++# support requires the GTK runtime environment and PyGTK. Wx
++# support requires wxWidgets and wxPython. Tk support requires
++# Tk and Tkinter. The other GUI toolkits do not require any
++# extension code, and can be used as long as the libraries are
++# installed on your system.
++#
++# You can uncomment any the following lines if you know you do
++# not want to use the GUI toolkit. Acceptible values are:
++# True: build the extension. Exits with a warning if the
++# required dependencies are not available
++# False: do not build the extension
++# auto: build if the required dependencies are available,
++# otherwise skip silently. This is the default
++# behavior
++#
++gtk = %%GTK_BACKEND%%
++gtkagg = %%GTKAGG_BACKEND%%
++tkagg = %%TKAGG_BACKEND%%
++wxagg = %%WXAGG_BACKEND%%
++#macosx = False
++
++[rc_options]
++# User-configurable options
++#
++# Default backend, one of: Agg, Cairo, CocoaAgg, GTK, GTKAgg, GTKCairo,
++# FltkAgg, MacOSX, Pdf, Ps, QtAgg, Qt4Agg, SVG, TkAgg, WX, WXAgg.
++#
++# The Agg, Ps, Pdf and SVG backends do not require external
++# dependencies. Do not choose GTK, GTKAgg, GTKCairo, MacOSX, TkAgg or WXAgg
++# if you have disabled the relevent extension modules. Agg will be used
++# by default.
++#
++#backend = Agg
++#
++# The numerix module was historically used to provide
++# compatibility between the Numeric, numarray, and NumPy array
++# packages. Now that NumPy has emerge as the universal array
++# package for python, numerix is not really necessary and is
++# maintained to provide backward compatibility. Do not change
++# this unless you have a compelling reason to do so.
++#numerix = numpy
diff --git a/math/py-matplotlib/files/patch-setupext.py b/math/py-matplotlib/files/patch-setupext.py
index df1d514910b9..760facd283b8 100644
--- a/math/py-matplotlib/files/patch-setupext.py
+++ b/math/py-matplotlib/files/patch-setupext.py
@@ -1,6 +1,6 @@
---- setupext.py.orig 2009-08-02 03:15:24.000000000 +0800
-+++ setupext.py 2009-11-18 15:03:10.000000000 +0800
-@@ -55,6 +55,9 @@
+--- setupext.py.orig 2010-07-28 11:18:08.000000000 -0400
++++ setupext.py 2010-07-28 11:21:02.000000000 -0400
+@@ -68,6 +68,9 @@
'freebsd4' : ['/usr/local', '/usr'],
'freebsd5' : ['/usr/local', '/usr'],
'freebsd6' : ['/usr/local', '/usr'],
@@ -10,25 +10,25 @@
'sunos5' : [os.getenv('MPLIB_BASE') or '/usr/local',],
'gnukfreebsd5' : ['/usr/local', '/usr'],
'gnukfreebsd6' : ['/usr/local', '/usr'],
-@@ -756,7 +759,7 @@
+@@ -789,7 +792,7 @@
module.libraries.extend(wxlibs)
return
-
+
- get_pkgconfig(module, '', flags='--cppflags --libs', pkg_config_exec='wx-config')
+ get_pkgconfig(module, '', flags='--cppflags --libs', pkg_config_exec=wxconfig)
-
+
# Make sure you use the Tk version given by Tkinter.TkVersion
# or else you'll build for a wrong version of the Tcl
-@@ -1054,9 +1057,9 @@
-
+@@ -1092,9 +1095,9 @@
+
# Add final versions of directories and libraries to module lists
tcl_lib, tcl_inc, tk_lib, tk_inc = result
- module.include_dirs.extend([tcl_inc, tk_inc])
- module.library_dirs.extend([tcl_lib, tk_lib])
- module.libraries.extend(['tk' + tk_ver, 'tcl' + tk_ver])
-+ module.include_dirs.extend(["/usr/local/include/tcl8.5", "/usr/local/include/tk8.5"])
++ module.include_dirs.extend(["%%TCL_INCLUDEDIR%%", "%%TK_INCLUDEDIR%%"])
+ module.library_dirs.extend(["%%TCL_LIBDIR%%", "%%TK_LIBDIR%%"])
-+ module.libraries.extend(['tk85', 'tcl85'])
-
++ module.libraries.extend(['tk' + "%%TK_VER%%", 'tcl' + "%%TCL_VER%%"])
+
return message
-
+