[114490] trunk/dports/python/py-matplotlib/Portfile

sean at macports.org sean at macports.org
Mon Dec 9 11:03:33 PST 2013


Revision: 114490
          https://trac.macports.org/changeset/114490
Author:   sean at macports.org
Date:     2013-12-09 11:03:33 -0800 (Mon, 09 Dec 2013)
Log Message:
-----------
py-matplotlib: add gtk3 variant

Modified Paths:
--------------
    trunk/dports/python/py-matplotlib/Portfile

Modified: trunk/dports/python/py-matplotlib/Portfile
===================================================================
--- trunk/dports/python/py-matplotlib/Portfile	2013-12-09 19:03:14 UTC (rev 114489)
+++ trunk/dports/python/py-matplotlib/Portfile	2013-12-09 19:03:33 UTC (rev 114490)
@@ -92,6 +92,15 @@
         }
     }
 
+    if {${python.version} > 26} {
+        variant gtk3 description "Enable GTK3Agg backend" {
+            depends_lib-append  port:py${python.version}-gobject3
+            post-patch {
+                reinplace "s|^gtk3agg=False|gtk3agg=True|" ${worksrcpath}/setup.cfg
+            }
+        }
+    }
+
     variant qt4 description "Enable QT4Agg backend" {
         # Can use either py*-pyqt4 or py*-pyqt4-devel.
         depends_lib-append  path:share/py${python.version}-sip/PyQt4:py${python.version}-pyqt4
@@ -137,6 +146,9 @@
 
     post-patch {
         reinplace "s|^agg=False|agg=True|" ${worksrcpath}/setup.cfg
+        if {[variant_isset gtk3] && [variant_isset cairo]} {
+            reinplace "s|^gtk3cairo=False|gtk3cairo=True|" ${worksrcpath}/setup.cfg
+        }
     }
 
     livecheck.type      none
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131209/8c10bbc8/attachment.html>


More information about the macports-changes mailing list