[105862] trunk/dports/python/py-spyder/Portfile

eborisch at macports.org eborisch at macports.org
Wed May 8 09:28:03 PDT 2013


Revision: 105862
          https://trac.macports.org/changeset/105862
Author:   eborisch at macports.org
Date:     2013-05-08 09:28:03 -0700 (Wed, 08 May 2013)
Log Message:
-----------
py-spyder: Update to 2.2.0

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

Modified: trunk/dports/python/py-spyder/Portfile
===================================================================
--- trunk/dports/python/py-spyder/Portfile	2013-05-08 16:18:33 UTC (rev 105861)
+++ trunk/dports/python/py-spyder/Portfile	2013-05-08 16:28:03 UTC (rev 105862)
@@ -3,7 +3,7 @@
 
 PortSystem          1.0
 name                py-spyder
-version             2.1.13.1
+version             2.2.0
 revision            0
 epoch               20111202
 
@@ -40,8 +40,9 @@
 universal_variant   no 
 
 checksums \
-    rmd160  27365f75b68a47283a330dbfda82f97bfd262d39 \
-    sha256  ca9f6380e50f977fbdc93f9b82067916fb4ba0aa234c2448d9621abea146e8e9
+    rmd160  367cc156ba883ede164ea86c414c666f629f2ac9 \
+    sha256  1d00120fe54e5d139cfe957093c13290778d8dfdff7f978bbf9e64263ff150e9 \
+    sha1    946b14d71931218baf10105f820eaeb4d317ab80
 
 if {${subport} != ${name}} {
     conflicts           py${python.version}-spyder-devel
@@ -49,13 +50,11 @@
     # Set the pylint executable name
     set LINT_BIN_NAME   pylint-${python.branch}
     set WINPDB_BIN_NAME winpdb-${python.branch}
-    patchfiles          ipython_checks.diff \
-                        patch-widgets-pylintgui.py.diff \
+    patchfiles          patch-widgets-pylintgui.py.diff \
                         spyderlib_baseconfig.py.diff \
                         spyderlib_plugins_editor.py.diff \
                         spyderlib_spyder.py.diff \
-                        spyderlib_utils_programs.py.diff \
-                        spyderlib_widgets_shell.py.diff 
+                        spyderlib_utils_programs.py.diff
 
     post-patch {
         reinplace "s|@@WINPDB_BIN_NAME@@|${WINPDB_BIN_NAME}|g" \
@@ -108,6 +107,7 @@
         depends_lib-append \
             path:${python.pkgd}/h5py/__init__.py:py${python.version}-h5py \
             port:py${python.version}-ipython \
+            port:py${python.version}-zmq \
             port:py${python.version}-matplotlib \
             port:py${python.version}-scipy
     }
@@ -119,30 +119,42 @@
             port:py${python.version}-pil
     }
 
+    post-extract {
+      fs-traverse f ${worksrcpath} {
+        touch $f
+      }
+    }
+    
     post-destroot {
         if {${python.version} == ${python.default_version}} {
           ln -s ${python.prefix}/bin/spyder ${destroot}${prefix}/bin/
         }
-        set OPTCMD    [concat "export HOME=${destroot}/tmp/spyder &&" \
-                       "export PYTHONPATH=${destroot}${python.pkgd} &&" \
+
+        set OPTCMD    [concat "HOME=${destroot}/tmp/spyder "  \
+                       "PYTHONPATH=${destroot}${python.pkgd} "  \
                        "./spyder --optimize"]
         
         file mkdir ${destroot}/tmp/spyder
         system "cd ${destroot}${python.prefix}/bin && ${OPTCMD}"
-        file delete -force ${destroot}/tmp/spyder
+        delete ${destroot}/tmp/spyder
+        delete \
+          ${destroot}${prefix}/bin/spyder_win_post_install.py-${python.branch}
+        delete ${destroot}${python.prefix}/bin/spyder_win_post_install.py
     }
 
+    if {${python.version} == ${python.default_version}} {
+        set EXENAME   "'spyder'    "
+    } else {
+        set EXENAME   "'spyder-${python.branch}'"
+    }
+    
     notes \
-"If you have previously installed ${subport}, be advised that the user's\
-preferences directory has moved from ~/.spyder2 to ~/.spyder2-${python.version}\
-to enable multiple pyNN-spyder installations to work independently. Please have\
-users rename or copy the existing directory to retain preferences if desired.
-
+"
 ##############################################################
-### Spyder is launched from the terminal with 'spyder-${python.branch}' ###
+### Spyder is launched from the terminal with ${EXENAME} ###
 ##############################################################"
 }
 
 livecheck.type      regex
-livecheck.url       http://code.google.com/p/spyderlib/
-livecheck.regex     spyder-(\[0-9\]+\.\[0-9\]+(\.\[0-9\]+)?)\.zip
+livecheck.url       http://code.google.com/p/spyderlib/downloads/list
+livecheck.regex     spyder-(\[0-9\]+(\.\[0-9]+)*)\.zip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130508/83b5758b/attachment.html>


More information about the macports-changes mailing list