[144224] trunk/dports/python/py-matplotlib
sean at macports.org
sean at macports.org
Mon Jan 4 16:49:18 PST 2016
Revision: 144224
https://trac.macports.org/changeset/144224
Author: sean at macports.org
Date: 2016-01-04 16:49:18 -0800 (Mon, 04 Jan 2016)
Log Message:
-----------
py-matplotlib: add patch for ppc; fixes #49607
Modified Paths:
--------------
trunk/dports/python/py-matplotlib/Portfile
Added Paths:
-----------
trunk/dports/python/py-matplotlib/files/patch-src-macosx.m.diff
Modified: trunk/dports/python/py-matplotlib/Portfile
===================================================================
--- trunk/dports/python/py-matplotlib/Portfile 2016-01-05 00:49:16 UTC (rev 144223)
+++ trunk/dports/python/py-matplotlib/Portfile 2016-01-05 00:49:18 UTC (rev 144224)
@@ -6,6 +6,7 @@
PortGroup github 1.0
github.setup matplotlib matplotlib 1.5.0 v
+revision 1
name py-matplotlib
categories-append graphics math
@@ -50,7 +51,8 @@
port:py${python.version}-cycler
patchfiles-append patch-setup.cfg.diff \
- patch-setupext.py.diff
+ patch-setupext.py.diff \
+ patch-src-macosx.m.diff
build.env PKG_CONFIG_PATH="${python.prefix}/lib/pkgconfig"
Added: trunk/dports/python/py-matplotlib/files/patch-src-macosx.m.diff
===================================================================
--- trunk/dports/python/py-matplotlib/files/patch-src-macosx.m.diff (rev 0)
+++ trunk/dports/python/py-matplotlib/files/patch-src-macosx.m.diff 2016-01-05 00:49:18 UTC (rev 144224)
@@ -0,0 +1,11 @@
+--- src/_macosx.m.orig 2015-11-29 10:44:55.000000000 -0700
++++ src/_macosx.m 2015-11-29 11:02:16.000000000 -0700
+@@ -1,5 +1,8 @@
+ #include <Cocoa/Cocoa.h>
+ #include <ApplicationServices/ApplicationServices.h>
++#ifndef kCTForegroundColorFromContextAttributeName
++extern const CFStringRef kCTForegroundColorFromContextAttributeName AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER;
++#endif
+ #include <sys/socket.h>
+ #include <Python.h>
+ #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160104/c77e03fc/attachment.html>
More information about the macports-changes
mailing list