[43887] trunk/dports/python/py25-matplotlib

ram at macports.org ram at macports.org
Tue Dec 16 08:54:39 PST 2008


Revision: 43887
          http://trac.macports.org/changeset/43887
Author:   ram at macports.org
Date:     2008-12-16 08:54:38 -0800 (Tue, 16 Dec 2008)
Log Message:
-----------
python/py25-matplotlib: update to 0.98.5, allow multiple interactive
backends to be enabled, always enable the new MacOSX backend

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

Added Paths:
-----------
    trunk/dports/python/py25-matplotlib/files/patch-setup.cfg.diff

Modified: trunk/dports/python/py25-matplotlib/Portfile
===================================================================
--- trunk/dports/python/py25-matplotlib/Portfile	2008-12-16 14:52:10 UTC (rev 43886)
+++ trunk/dports/python/py25-matplotlib/Portfile	2008-12-16 16:54:38 UTC (rev 43887)
@@ -5,7 +5,7 @@
 
 categories-append  graphics math
 name               py25-matplotlib
-version            0.98.3
+version            0.98.5
 maintainers        ram openmaintainer
 platforms          darwin
 
@@ -21,9 +21,9 @@
 master_sites       sourceforge:matplotlib
 distname           matplotlib-${version}
 
-checksums          md5 d6b579f52705df584650fb6f61302f92 \
-                   sha1 9d3ded193cdbebf7d02aaf48372359eb3621a3eb \
-                   rmd160 960356e1822aec9f196f60337730c0bc6d3531d6
+checksums          md5 67fd0128bade1ee38a6faac8ca679be1 \
+                   sha1 b494ccceba1d9f7ab531dca80446f81a52e6430e \
+                   rmd160 7a5bb9367e5d9398c1a869f92b7839ce4a2edcaa
 
 depends_lib-append port:freetype \
                    port:libpng \
@@ -31,38 +31,11 @@
                    port:py25-tz \
                    port:py25-numpy
 
-patchfiles         patch-setupext.py.diff
+patchfiles         patch-setupext.py.diff \
+                   patch-setup.cfg.diff
 
 build.env          MPLIB_BASE="${prefix}"
 
-post-extract {
-  if {[variant_isset gtk2]} {
-    reinplace "s|^BUILD_GTKAGG\[\[:space:\]\]*=\[\[:space:\]\]*'auto'|BUILD_GTKAGG=1|" \
-      ${worksrcpath}/setup.py
-    reinplace "s|^BUILD_GTK\[\[:space:\]\]*=\[\[:space:\]\]*'auto'|BUILD_GTK=1|" \
-      ${worksrcpath}/setup.py
-  } else {
-    reinplace "s|^BUILD_GTKAGG\[\[:space:\]\]*=\[\[:space:\]\]*'auto'|BUILD_GTKAGG=0|" \
-      ${worksrcpath}/setup.py
-    reinplace "s|^BUILD_GTK\[\[:space:\]\]*=\[\[:space:\]\]*'auto'|BUILD_GTK=0|" \
-      ${worksrcpath}/setup.py
-  }
-  if {[variant_isset tkinter]} {
-    reinplace "s|^BUILD_TKAGG\[\[:space:\]\]*=\[\[:space:\]\]*'auto'|BUILD_TKAGG=1|" \
-      ${worksrcpath}/setup.py
-  } else {
-    reinplace "s|^BUILD_TKAGG\[\[:space:\]\]*=\[\[:space:\]\]*'auto'|BUILD_TKAGG=0|" \
-      ${worksrcpath}/setup.py
-  }
-  if {[variant_isset wxpython]} {
-    reinplace "s|^BUILD_WXAGG\[\[:space:\]\]*=\[\[:space:\]\]*'auto'|BUILD_WXAGG=1|" \
-      ${worksrcpath}/setup.py
-  } else {
-    reinplace "s|^BUILD_WXAGG\[\[:space:\]\]*=\[\[:space:\]\]*'auto'|BUILD_WXAGG=0|" \
-      ${worksrcpath}/setup.py
-  }
-}
-
 post-patch {
   reinplace "s|@@MPORTS_PREFIX@@|${prefix}|" ${worksrcpath}/setupext.py
 }
@@ -70,7 +43,7 @@
 post-destroot {
   xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} \
     ${destroot}${prefix}/share/${name}
-  xinstall -m 644 -W ${worksrcpath} API_CHANGES CHANGELOG INSTALL \
+  xinstall -m 644 -W ${worksrcpath} CHANGELOG INSTALL \
     INTERACTIVE KNOWN_BUGS README.txt TODO \
     ${destroot}${prefix}/share/doc/${name}
   file copy ${worksrcpath}/license \
@@ -82,15 +55,29 @@
 variant cairo description "Allow to use cairo for interactive plotting" {
   depends_lib-append port:py25-cairo
 }
-variant gtk2 conflicts tkinter wxpython description "Use GTKAgg for interactive plotting" {
+
+variant gtk2 description "Enable GTKAgg backend" {
   depends_lib-append port:py25-gtk
+  post-patch {
+    reinplace "s|^gtk=False|gtk=True|" ${worksrcpath}/setup.cfg
+    reinplace "s|^gtkagg=False|gtkagg=True|" ${worksrcpath}/setup.cfg
+  }
 }
-variant tkinter conflicts gtk2 wxpython description "Use tkAgg for interactive plotting" {
+
+variant tkinter description "Enable tkAgg backend" {
   depends_lib-append port:py25-tkinter
+  post-patch {
+    reinplace "s|^tkagg=False|tkagg=True|" ${worksrcpath}/setup.cfg
+  }
 }
-variant wxpython conflicts gtk2 tkinter description "Use wxAgg for interactive plotting" {
+
+variant wxpython description "Enable wxAgg backend" {
   depends_lib-append port:py25-wxpython
+  post-patch {
+    reinplace "s|^wxagg=False|wxagg=True|" ${worksrcpath}/setup.cfg
+  }
 }
+
 if { ![variant_isset gtk2] && ![variant_isset tkinter] && ![variant_isset wxpython] } {
   default_variants   +tkinter
 }

Added: trunk/dports/python/py25-matplotlib/files/patch-setup.cfg.diff
===================================================================
--- trunk/dports/python/py25-matplotlib/files/patch-setup.cfg.diff	                        (rev 0)
+++ trunk/dports/python/py25-matplotlib/files/patch-setup.cfg.diff	2008-12-16 16:54:38 UTC (rev 43887)
@@ -0,0 +1,12 @@
+--- setup.cfg	1970-01-01 01:00:00.000000000 +0100
++++ setup.cfg	2008-12-16 12:27:37.000000000 +0000
+@@ -0,0 +1,9 @@
++[gui_support]
++gtk=False
++gtkagg=False
++tkagg=False
++wxagg=False
++macosx=True
++
++[rc_options]
++backend=Agg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081216/fd783bf5/attachment.html>


More information about the macports-changes mailing list