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

stromnov at macports.org stromnov at macports.org
Wed Aug 7 02:47:23 PDT 2013


Revision: 109050
          https://trac.macports.org/changeset/109050
Author:   stromnov at macports.org
Date:     2013-08-07 02:47:23 -0700 (Wed, 07 Aug 2013)
Log Message:
-----------
py-matplotlib: add modeline, reformat

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

Modified: trunk/dports/python/py-matplotlib/Portfile
===================================================================
--- trunk/dports/python/py-matplotlib/Portfile	2013-08-07 09:44:57 UTC (rev 109049)
+++ trunk/dports/python/py-matplotlib/Portfile	2013-08-07 09:47:23 UTC (rev 109050)
@@ -1,127 +1,131 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
 # $Id$
 
-PortSystem         1.0
-PortGroup          python 1.0
-PortGroup          github 1.0
+PortSystem          1.0
+PortGroup           python 1.0
+PortGroup           github 1.0
 
-categories-append  graphics math
-github.setup       matplotlib matplotlib 1.2.1 v
-name               py-matplotlib
-homepage           http://matplotlib.org/
-master_sites       https://downloads.sourceforge.net/project/matplotlib/matplotlib/matplotlib-1.2.1/
-maintainers        sean openmaintainer
-platforms          darwin
-license            {PSF BSD}
+github.setup        matplotlib matplotlib 1.2.1 v
 
-description        matlab-like syntax for creating plots in python
-long_description   Matplotlib is a pure python plotting library with the \
-                   goal of making publication quality plots using a syntax \
-                   familiar to matlab users. The library uses numpy for \
-                   handling large data sets and supports a variety of \
-                   output backends. This port provides variants for the \
-                   different GUIs (gtk2, tkinter, qt4, cairo, latex).
+name                py-matplotlib
+categories-append   graphics math
+platforms           darwin
+license             {PSF BSD}
 
-checksums          rmd160 c27142f1d6665bc6a748f601558045e7d801dbef \
-                   sha256 52e18972aed85f30b05cef41778ec77685df6012f0598cd216e996de9b9ea29b
+python.versions     26 27 31 32 33
 
-python.versions    26 27 31 32 33
+maintainers         sean openmaintainer
 
-if {$subport != $name} {
+description         Matplotlib is a python plotting library
 
-depends_build-append \
-                   port:pkgconfig
+long_description    Matplotlib strives to produce publication quality 2D \
+                    graphics for interactive graphing, scientific publishing, \
+                    user interface development and web application servers \
+                    targeting multiple user interfaces and hardcopy output \
+                    formats. There is a 'pylab' mode which emulates matlab \
+                    graphics. The library uses numpy for handling large data \
+                    sets and supports a variety of output backends. This port \
+                    provides variants for the different GUIs (gtk2, tkinter, \
+                    qt4, cairo, latex).
 
-depends_lib-append port:freetype \
-                   port:libpng \
-                   port:py${python.version}-dateutil \
-                   port:py${python.version}-tz \
-                   port:py${python.version}-numpy \
-                   port:py${python.version}-pyobjc-cocoa
+homepage            http://matplotlib.org/
 
-patchfiles         patch-setupext.py.diff \
-                   patch-setup.cfg.diff
+checksums           rmd160  c27142f1d6665bc6a748f601558045e7d801dbef \
+                    sha256  52e18972aed85f30b05cef41778ec77685df6012f0598cd216e996de9b9ea29b
 
-build.env          MPLIB_BASE="${prefix}" PKG_CONFIG_PATH="${python.prefix}/lib/pkgconfig/"
+if {${name} != ${subport}} {
+    depends_build-append \
+                        port:pkgconfig
 
-post-patch {
-  reinplace "s|@@MPORTS_PREFIX@@|${prefix}|" ${worksrcpath}/setupext.py
-  reinplace "s|@@PYTHON_BRANCH@@|${prefix}|" ${worksrcpath}/setupext.py
-}
+    depends_lib-append  port:freetype \
+                        port:libpng \
+                        port:py${python.version}-tz \
+                        port:py${python.version}-dateutil \
+                        port:py${python.version}-numpy \
+                        port:py${python.version}-pyobjc-cocoa
 
-# build fails with gcc-4.0 on Leopard, use gcc-4.2 (#37069)
-if {${configure.compiler} == "gcc-4.0"} {
-   configure.compiler gcc-4.2
-}
+    patchfiles          patch-setupext.py.diff \
+                        patch-setup.cfg.diff
 
-post-destroot {
-  if {${name} != ${subport}} {
-  xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport} \
-    ${destroot}${prefix}/share/${subport}
-  xinstall -m 644 -W ${worksrcpath} CHANGELOG README.txt TODO \
-    ${destroot}${prefix}/share/doc/${subport}
-  file copy ${worksrcpath}/examples \
-    ${destroot}${prefix}/share/${subport}
-  }
-}
+    build.env           MPLIB_BASE="${prefix}" PKG_CONFIG_PATH="${python.prefix}/lib/pkgconfig/"
 
-variant cairo description "Enable Cairo backends" {
-  depends_lib-append port:py${python.version}-cairo
-  post-patch {
-    reinplace "s|MP_Cairo=False|MP_Cairo=True|" ${worksrcpath}/setupext.py
-  }
-}
+    post-patch {
+        reinplace "s|@@MPORTS_PREFIX@@|${prefix}|" ${worksrcpath}/setupext.py
+        reinplace "s|@@PYTHON_BRANCH@@|${prefix}|" ${worksrcpath}/setupext.py
+    }
 
-variant gtk2 description "Enable GTKAgg backend" {
-  depends_lib-append port:py${python.version}-pygtk
-  post-patch {
-    reinplace "s|^gtk=False|gtk=True|" ${worksrcpath}/setup.cfg
-    reinplace "s|^gtkagg=False|gtkagg=True|" ${worksrcpath}/setup.cfg
-  }
-}
+    # build fails with gcc-4.0 on Leopard, use gcc-4.2 (#37069)
+    if {${configure.compiler} == "gcc-4.0"} {
+        configure.compiler gcc-4.2
+    }
 
-variant tkinter description "Enable tkAgg backend" {
-  depends_lib-append port:py${python.version}-tkinter
-  post-patch {
-    reinplace "s|^tkagg=False|tkagg=True|" ${worksrcpath}/setup.cfg
-  }
-}
+    post-destroot {
+        if {${name} != ${subport}} {
+            xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport} \
+                ${destroot}${prefix}/share/${subport}
+            xinstall -m 644 -W ${worksrcpath} CHANGELOG README.txt TODO \
+                ${destroot}${prefix}/share/doc/${subport}
+            file copy ${worksrcpath}/examples \
+                ${destroot}${prefix}/share/${subport}
+        }
+    }
 
-variant qt4 description "Enable QT4Agg backend" {
-  depends_lib-append port:py${python.version}-pyqt4
-  post-patch {
-    reinplace "s|MP_QT4=False|MP_QT4=True|" ${worksrcpath}/setupext.py
-  }
-}
+    variant cairo description "Enable Cairo backends" {
+        depends_lib-append  port:py${python.version}-cairo
+        post-patch {
+            reinplace "s|MP_Cairo=False|MP_Cairo=True|" ${worksrcpath}/setupext.py
+        }
+    }
 
-variant latex description "Enable LaTeX support" {
-  depends_lib-append bin:latex:texlive
-  post-patch {
-    reinplace "s|MP_LaTeX=False|MP_LaTeX=True|" ${worksrcpath}/setupext.py
-  }
-}
+    variant gtk2 description "Enable GTKAgg backend" {
+        depends_lib-append  port:py${python.version}-pygtk
+        post-patch {
+            reinplace "s|^gtk=False|gtk=True|" ${worksrcpath}/setup.cfg
+            reinplace "s|^gtkagg=False|gtkagg=True|" ${worksrcpath}/setup.cfg
+        }
+    }
 
-variant ghostscript description "Enable GhostScript support" {
-  depends_lib-append port:ghostscript
-  post-patch {
-    reinplace "s|MP_GhostScript=False|MP_GhostScript=True|" ${worksrcpath}/setupext.py
-  }
-}
+    variant tkinter description "Enable tkAgg backend" {
+        depends_lib-append  port:py${python.version}-tkinter
+        post-patch {
+            reinplace "s|^tkagg=False|tkagg=True|" ${worksrcpath}/setup.cfg
+        }
+    }
 
-if { ![variant_isset gtk2] && ![variant_isset tkinter] && ![variant_isset qt4] } {
-  default_variants   +tkinter
-}
+    variant qt4 description "Enable QT4Agg backend" {
+        depends_lib-append  port:py${python.version}-pyqt4
+        post-patch {
+            reinplace "s|MP_QT4=False|MP_QT4=True|" ${worksrcpath}/setupext.py
+        }
+    }
 
-}
+    variant latex description "Enable LaTeX support" {
+        depends_lib-append  bin:latex:texlive
+        post-patch {
+            reinplace "s|MP_LaTeX=False|MP_LaTeX=True|" ${worksrcpath}/setupext.py
+        }
+    }
 
-if {${name} == ${subport}} {
-  livecheck.regex    archive/[join ${github.tag_prefix} ""](\[\\d+(?:\\.\\d+)*"\]+)${extract.suffix}"
-} else {
-  livecheck.type     none
-  notes "
+    variant ghostscript description "Enable GhostScript support" {
+        depends_lib-append  port:ghostscript
+        post-patch {
+            reinplace "s|MP_GhostScript=False|MP_GhostScript=True|" ${worksrcpath}/setupext.py
+        }
+    }
+
+    if { ![variant_isset gtk2] && ![variant_isset tkinter] && ![variant_isset qt4] } {
+        default_variants    +tkinter
+    }
+
+    livecheck.type      none
+
+    notes "
 The default backend is the interactive Mac OS X backend. Different\
 backends can be specified using the ~/.matplotlib/matplotlibrc file.\
 More details regarding backends can be found in the matplotlib FAQ:
 
 http://matplotlib.sourceforge.net/faq/installing_faq.html#what-is-a-backend
 "
+} else {
+    livecheck.regex     archive/[join ${github.tag_prefix} ""](\[\\d+(?:\\.\\d+)*"\]+)${extract.suffix}"
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130807/ab29fb46/attachment-0001.html>


More information about the macports-changes mailing list