[82247] trunk/dports/python

eborisch at macports.org eborisch at macports.org
Thu Aug 11 10:25:59 PDT 2011


Revision: 82247
          http://trac.macports.org/changeset/82247
Author:   eborisch at macports.org
Date:     2011-08-11 10:25:58 -0700 (Thu, 11 Aug 2011)
Log Message:
-----------
py-spyder: New unified spyder port. Currently only 25 and 27 versions enabled; waiting for maintainer action on py26-spyder.

Modified Paths:
--------------
    trunk/dports/python/py-spyder/Files/patch-widgets-pylintgui.py.diff
    trunk/dports/python/py-spyder/Portfile

Added Paths:
-----------
    trunk/dports/python/py-spyder/

Removed Paths:
-------------
    trunk/dports/python/py27-spyder/

Modified: trunk/dports/python/py-spyder/Files/patch-widgets-pylintgui.py.diff
===================================================================
--- trunk/dports/python/py27-spyder/Files/patch-widgets-pylintgui.py.diff	2011-08-11 13:38:25 UTC (rev 82241)
+++ trunk/dports/python/py-spyder/Files/patch-widgets-pylintgui.py.diff	2011-08-11 17:25:58 UTC (rev 82247)
@@ -5,7 +5,7 @@
  _ = get_translation("p_pylint", dirname="spyderplugins")
  
 -PYLINT_PATH = programs.get_nt_program_name('pylint')
-+PYLINT_PATH = programs.get_nt_program_name('pylint-2.7')
++PYLINT_PATH = programs.get_nt_program_name('@@LINT_BIN_NAME@@')
  
  def is_pylint_installed():
      return programs.is_program_installed(PYLINT_PATH)

Modified: trunk/dports/python/py-spyder/Portfile
===================================================================
--- trunk/dports/python/py27-spyder/Portfile	2011-08-11 13:38:25 UTC (rev 82241)
+++ trunk/dports/python/py-spyder/Portfile	2011-08-11 17:25:58 UTC (rev 82247)
@@ -1,13 +1,19 @@
-# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
+# -*- 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           python27 1.0
+name                py-spyder
+version             2.0.12
+revision            2
+
+PortGroup           python 1.0
+
+#Waiting for py26-spyder maintainer to either take over or abandon
+#python.versions    25 26 27
+python.versions     25 27
+python.default_version 27
+
 PortGroup           qt4 1.0
-
-name                py27-spyder
-version             2.0.12
-revision            1
 categories          python devel
 platforms           darwin
 maintainers         nomaintainer
@@ -25,22 +31,38 @@
 distname            spyder-${version}
 use_zip             yes
 
-depends_lib-append  port:py27-pyqt4 \
-                    port:py27-lint \
-                    port:py27-numpy \
-                    port:py27-scipy \
-                    port:py27-matplotlib \
-                    port:py27-sphinx
+#pyNN-pyqt4 doesn't want to build universal
+universal_variant   no 
 
 checksums           md5     035852cfc6109541d72003111cf31bb3 \
                     sha1    a592caf81f4c1f72d637a5269f5c60f8f43e57ee
 
-patchfiles          patch-widgets-pylintgui.py.diff
+if {${subport} != ${name}} {
+    # Set the pylint executable name
+    set LINT_BIN_NAME   pylint-${python.branch}
+    patchfiles          patch-widgets-pylintgui.py.diff
 
-post-destroot {
-  ln -s ${python.prefix}/bin/spyder ${destroot}${prefix}/bin/
+    post-patch {
+        reinplace "s|@@LINT_BIN_NAME@@|${LINT_BIN_NAME}|g" \
+            ${worksrcpath}/spyderplugins/widgets/pylintgui.py
+    }
+
+    depends_lib-append  port:py${python.version}-pyqt4 \
+                        port:py${python.version}-lint \
+                        port:py${python.version}-scipy \
+                        port:py${python.version}-matplotlib \
+                        port:py${python.version}-sphinx \
+                        port:py${python.version}-pyflakes \
+                        port:py${python.version}-ipython \
+                        port:py${python.version}-rope
+
+    if {${python.version} == ${python.default_version}} {
+        post-destroot {
+          ln -s ${python.prefix}/bin/spyder ${destroot}${prefix}/bin/
+        }
+    }
 }
 
 livecheck.type      regex
 livecheck.url       http://code.google.com/p/spyderlib/
-livecheck.regex     spyder-(0\.\[0-9\]+\.\[0-9\]+)
+livecheck.regex     spyder-(\[0-9\]+\.\[0-9\]+(\.\[0-9\]+)?)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110811/3cef3cfd/attachment-0001.html>


More information about the macports-changes mailing list