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

ram at macports.org ram at macports.org
Sat Nov 17 09:18:40 PST 2012


Revision: 99788
          https://trac.macports.org/changeset/99788
Author:   ram at macports.org
Date:     2012-11-17 09:18:40 -0800 (Sat, 17 Nov 2012)
Log Message:
-----------
python/py-matplotlib: python2{4,5} are no longer supported upstream

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

Modified: trunk/dports/python/py-matplotlib/Portfile
===================================================================
--- trunk/dports/python/py-matplotlib/Portfile	2012-11-17 17:14:23 UTC (rev 99787)
+++ trunk/dports/python/py-matplotlib/Portfile	2012-11-17 17:18:40 UTC (rev 99788)
@@ -22,27 +22,18 @@
 checksums          rmd160 ef8e5e83479633529e0cb60bb1033401fa9b390a \
                    sha256 3c22488acd6d4ed0721c1cfe0c3563aaec41c8cf1e06270d19841f8b2b46fdce
 
-python.versions    24 25 26 27
+python.versions    26 27
+python.default_version 27
 
-if {${subport} == "py24-matplotlib"} {
-  depends_lib-append port:py24-dateutil \
-                     port:py24-tz \
-                     port:py24-numpy \
-                     port:py-configobj \
-                     port:py-pyobjc2 \
-                     port:py-pyobjc2-cocoa
-} elseif {${subport} != ${name}} {
-  depends_lib-append port:py${python.version}-dateutil \
-                     port:py${python.version}-tz \
-                     port:py${python.version}-numpy \
-                     port:py${python.version}-configobj \
-                     port:py${python.version}-pyobjc-cocoa
-}
-
 if {$subport != $name} {
 
 depends_lib-append port:freetype \
-                   port:libpng
+                   port:libpng \
+                   port:py${python.version}-dateutil \
+                   port:py${python.version}-tz \
+                   port:py${python.version}-numpy \
+                   port:py${python.version}-configobj \
+                   port:py${python.version}-pyobjc-cocoa
 
 patchfiles         patch-setupext.py.diff \
                    patch-setup.cfg.diff
@@ -66,22 +57,14 @@
 }
 
 variant cairo description "Enable Cairo backends" {
-  if {${subport} == "py24-matplotlib"} {
-    depends_lib-append port:py-cairo
-  } elseif {${subport} != ${name}} {
-    depends_lib-append port:py${python.version}-cairo
-  }
+  depends_lib-append port:py${python.version}-cairo
   post-patch {
     reinplace "s|MP_Cairo=False|MP_Cairo=True|" ${worksrcpath}/setupext.py
   }
 }
 
 variant gtk2 description "Enable GTKAgg backend" {
-  if {${subport} == "py24-matplotlib"} {
-    depends_lib-append port:py-gtk2
-  } elseif {${subport} != ${name}} {
-    depends_lib-append port:py${python.version}-gtk
-  }
+  depends_lib-append port:py${python.version}-gtk
   post-patch {
     reinplace "s|^gtk=False|gtk=True|" ${worksrcpath}/setup.cfg
     reinplace "s|^gtkagg=False|gtkagg=True|" ${worksrcpath}/setup.cfg
@@ -96,11 +79,7 @@
 }
 
 variant wxpython description "Enable wxAgg backend" {
-  if {${subport} == "py24-matplotlib"} {
-    depends_lib-append port:py-wxpython
-  } elseif {${subport} != ${name}} {
-    depends_lib-append port:py${python.version}-wxpython
-  }
+  depends_lib-append port:py${python.version}-wxpython
   post-patch {
     reinplace "s|^wxagg=False|wxagg=True|" ${worksrcpath}/setup.cfg
   }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121117/21089c2b/attachment.html>


More information about the macports-changes mailing list