[82592] trunk/dports/python/py-spyder

eborisch at macports.org eborisch at macports.org
Tue Aug 16 07:10:05 PDT 2011


Revision: 82592
          http://trac.macports.org/changeset/82592
Author:   eborisch at macports.org
Date:     2011-08-16 07:10:04 -0700 (Tue, 16 Aug 2011)
Log Message:
-----------
py-spyder: Fix home/end key behaviors. Upstream patch submitted. Renamed one file for consistency.

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

Added Paths:
-----------
    trunk/dports/python/py-spyder/Files/spyderlib_utils_programs.py.diff
    trunk/dports/python/py-spyder/Files/spyderlib_widgets_sourcecode_codeeditor.py.diff

Removed Paths:
-------------
    trunk/dports/python/py-spyder/Files/spyderlib_utils_programs.py.patch

Copied: trunk/dports/python/py-spyder/Files/spyderlib_utils_programs.py.diff (from rev 82590, trunk/dports/python/py-spyder/Files/spyderlib_utils_programs.py.patch)
===================================================================
--- trunk/dports/python/py-spyder/Files/spyderlib_utils_programs.py.diff	                        (rev 0)
+++ trunk/dports/python/py-spyder/Files/spyderlib_utils_programs.py.diff	2011-08-16 14:10:04 UTC (rev 82592)
@@ -0,0 +1,15 @@
+--- spyderlib/utils/programs.py.orig	2011-08-11 14:41:11.000000000 -0500
++++ spyderlib/utils/programs.py	2011-08-11 14:43:54.000000000 -0500
+@@ -29,6 +29,12 @@
+             else:
+                 return True
+     else:
++        abspath = "@@APPS_DIR@@/Qt4/" + basename + ".app/Contents/MacOS/" + basename
++        if osp.isfile(abspath):
++            if get_path:
++                return abspath
++            else:
++                return True
+         return False
+     
+ def run_program(name, args=[]):

Deleted: trunk/dports/python/py-spyder/Files/spyderlib_utils_programs.py.patch
===================================================================
--- trunk/dports/python/py-spyder/Files/spyderlib_utils_programs.py.patch	2011-08-16 14:01:24 UTC (rev 82591)
+++ trunk/dports/python/py-spyder/Files/spyderlib_utils_programs.py.patch	2011-08-16 14:10:04 UTC (rev 82592)
@@ -1,15 +0,0 @@
---- spyderlib/utils/programs.py.orig	2011-08-11 14:41:11.000000000 -0500
-+++ spyderlib/utils/programs.py	2011-08-11 14:43:54.000000000 -0500
-@@ -29,6 +29,12 @@
-             else:
-                 return True
-     else:
-+        abspath = "@@APPS_DIR@@/Qt4/" + basename + ".app/Contents/MacOS/" + basename
-+        if osp.isfile(abspath):
-+            if get_path:
-+                return abspath
-+            else:
-+                return True
-         return False
-     
- def run_program(name, args=[]):

Added: trunk/dports/python/py-spyder/Files/spyderlib_widgets_sourcecode_codeeditor.py.diff
===================================================================
--- trunk/dports/python/py-spyder/Files/spyderlib_widgets_sourcecode_codeeditor.py.diff	                        (rev 0)
+++ trunk/dports/python/py-spyder/Files/spyderlib_widgets_sourcecode_codeeditor.py.diff	2011-08-16 14:10:04 UTC (rev 82592)
@@ -0,0 +1,24 @@
+--- spyderlib/widgets/sourcecode/codeeditor.py.orig	2011-06-10 17:01:04.000000000 -0500
++++ spyderlib/widgets/sourcecode/codeeditor.py	2011-08-16 09:02:07.000000000 -0500
+@@ -1595,6 +1595,21 @@
+         elif key == Qt.Key_Home and not ctrl:
+             self.stdkey_home(shift)
+             event.accept()
++        elif key == Qt.Key_Home:
++            cursor = self.textCursor()
++            cursor.movePosition(QTextCursor.Start)
++            self.setTextCursor(cursor)
++            event.accept()
++        elif key == Qt.Key_End and not ctrl:
++            cursor = self.textCursor()
++            cursor.movePosition(QTextCursor.EndOfLine)
++            self.setTextCursor(cursor)
++            event.accept()
++        elif key == Qt.Key_End:
++            cursor = self.textCursor()
++            cursor.movePosition(QTextCursor.End)
++            self.setTextCursor(cursor)
++            event.accept()
+         elif text == '(' and not self.has_selected_text():
+             self.hide_completion_widget()
+             position = self.get_position('cursor')

Modified: trunk/dports/python/py-spyder/Portfile
===================================================================
--- trunk/dports/python/py-spyder/Portfile	2011-08-16 14:01:24 UTC (rev 82591)
+++ trunk/dports/python/py-spyder/Portfile	2011-08-16 14:10:04 UTC (rev 82592)
@@ -4,7 +4,7 @@
 PortSystem          1.0
 name                py-spyder
 version             2.0.12
-revision            4
+revision            5
 
 PortGroup           python 1.0
 
@@ -40,7 +40,8 @@
     set LINT_BIN_NAME   pylint-${python.branch}
     patchfiles          patch-widgets-pylintgui.py.diff \
                         spyderlib_spyder.py.diff \
-                        spyderlib_utils_programs.py.patch
+                        spyderlib_utils_programs.py.diff \
+                        spyderlib_widgets_sourcecode_codeeditor.py.diff
 
     post-patch {
         reinplace "s|@@LINT_BIN_NAME@@|${LINT_BIN_NAME}|g" \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110816/2571823c/attachment.html>


More information about the macports-changes mailing list