[87015] trunk/dports/python
eborisch at macports.org
eborisch at macports.org
Mon Nov 7 18:36:03 PST 2011
Revision: 87015
http://trac.macports.org/changeset/87015
Author: eborisch at macports.org
Date: 2011-11-07 18:36:00 -0800 (Mon, 07 Nov 2011)
Log Message:
-----------
py-spyder: Upgrade to 2.1.1; set replaced_by in py-spyder-beta
Modified Paths:
--------------
trunk/dports/python/py-spyder/Portfile
trunk/dports/python/py-spyder/files/patch-widgets-pylintgui.py.diff
trunk/dports/python/py-spyder/files/spyderlib_spyder.py.diff
trunk/dports/python/py-spyder/files/spyderlib_utils_programs.py.diff
trunk/dports/python/py-spyder/files/spyderlib_widgets_sourcecode_codeeditor.py.diff
trunk/dports/python/py-spyder-beta/Portfile
Added Paths:
-----------
trunk/dports/python/py-spyder/files/spyderlib_plugins_editor.py.diff
Removed Paths:
-------------
trunk/dports/python/py-spyder/files/spyderlib_plugins_externalconsole.py.diff
trunk/dports/python/py-spyder/files/spyderlib_widgets_editor.py.diff
trunk/dports/python/py-spyder-beta/files/
Modified: trunk/dports/python/py-spyder/Portfile
===================================================================
--- trunk/dports/python/py-spyder/Portfile 2011-11-08 01:45:15 UTC (rev 87014)
+++ trunk/dports/python/py-spyder/Portfile 2011-11-08 02:36:00 UTC (rev 87015)
@@ -3,49 +3,60 @@
PortSystem 1.0
name py-spyder
-version 2.0.12
-revision 7
+version 2.1.1
+epoch 20111101
PortGroup python 1.0
-python.versions 25 26 27
+python.versions 26 27
python.default_version 27
PortGroup qt4 1.0
categories python devel
platforms darwin
-maintainers nomaintainer
+maintainers eborisch openmaintainer
license MIT
homepage http://packages.python.org/spyder/
-description development environment with advanced editing, \
+description Spyder is the Scientific PYthon Development EnviRonment
+long_description ${description}. \
+ Spyder provides a powerful interactive development \
+ environment for the Python language with advanced \
+ editing, interactive testing, debugging and introspection \
+ features as well as a numerical computing environment \
+ thanks to the support of IPython (enhanced interactive \
+ Python interpreter) and popular Python libraries such as \
+ NumPy (linear algebra), SciPy (signal and image \
+ processing) or matplotlib (interactive 2D/3D plotting) \
+ development environment with advanced editing, \
interactive testing, debugging and introspection features.
-long_description ${description} It is especially recommended for \
- scientific computing thanks to NumPy (linear algebra), \
- SciPy (signal and image processing), matplotlib \
- (interactive 2D/3D plotting) and MayaVi’s mlab \
- (interactive 3D visualization) support.
master_sites googlecode:spyderlib
distname spyder-${version}
use_zip yes
+supported_archs noarch
-#pyNN-pyqt4 doesn't want to build universal
+#pyNN-scipy doesn't build universal
universal_variant no
-checksums md5 035852cfc6109541d72003111cf31bb3 \
- sha1 a592caf81f4c1f72d637a5269f5c60f8f43e57ee
+checksums md5 75cae70e0064bb4349004b983d387ad7 \
+ sha1 fd6a0dc49724d8c7fff85a88699163af6969a53b \
+ rmd160 30cd8e38d0ae031bc64644f3c248eebc3df03ad6
if {${subport} != ${name}} {
+ conflicts port:py${python.version}-spyder-beta
+
# Set the pylint executable name
set LINT_BIN_NAME pylint-${python.branch}
+ set WINPDB_BIN_NAME winpdb-${python.branch}
patchfiles patch-widgets-pylintgui.py.diff \
+ spyderlib_plugins_editor.py.diff \
spyderlib_spyder.py.diff \
spyderlib_utils_programs.py.diff \
- spyderlib_widgets_sourcecode_codeeditor.py.diff \
- spyderlib_plugins_externalconsole.py.diff \
- spyderlib_widgets_editor.py.diff
+ spyderlib_widgets_sourcecode_codeeditor.py.diff
post-patch {
+ reinplace "s|@@WINPDB_BIN_NAME@@|${WINPDB_BIN_NAME}|g" \
+ ${worksrcpath}/spyderlib/plugins/editor.py
reinplace "s|@@LINT_BIN_NAME@@|${LINT_BIN_NAME}|g" \
${worksrcpath}/spyderplugins/widgets/pylintgui.py
reinplace "s|\"assistant\"|\"Assistant\"|g" \
@@ -71,12 +82,21 @@
port:py${python.version}-pyflakes \
port:py${python.version}-ipython \
port:py${python.version}-rope \
- port:py${python.version}-htmldocs
+ port:py${python.version}-pil \
+ port:py${python.version}-htmldocs \
+ port:py${python.version}-h5py
- if {${python.version} == ${python.default_version}} {
- post-destroot {
+ 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} &&" \
+ "./spyder --optimize"]
+
+ file mkdir ${destroot}/tmp/spyder
+ system "cd ${destroot}${python.prefix}/bin && ${OPTCMD}"
+ file delete -force ${destroot}/tmp/spyder
}
}
Modified: trunk/dports/python/py-spyder/files/patch-widgets-pylintgui.py.diff
===================================================================
--- trunk/dports/python/py-spyder/files/patch-widgets-pylintgui.py.diff 2011-11-08 01:45:15 UTC (rev 87014)
+++ trunk/dports/python/py-spyder/files/patch-widgets-pylintgui.py.diff 2011-11-08 02:36:00 UTC (rev 87015)
@@ -1,23 +1,11 @@
---- spyderplugins/widgets/pylintgui.py.orig 2011-06-10 17:01:04.000000000 -0500
-+++ spyderplugins/widgets/pylintgui.py 2011-08-10 11:27:23.000000000 -0500
-@@ -42,7 +42,7 @@
- from spyderlib.utils.translations import get_translation
+--- spyderplugins/widgets/pylintgui.py.orig 2011-09-08 08:45:35.000000000 -0500
++++ spyderplugins/widgets/pylintgui.py 2011-09-08 08:46:52.000000000 -0500
+@@ -40,7 +40,7 @@
+ is_module_or_package)
_ = get_translation("p_pylint", dirname="spyderplugins")
--PYLINT_PATH = programs.get_nt_program_name('pylint')
-+PYLINT_PATH = programs.get_nt_program_name('@@LINT_BIN_NAME@@')
+-PYLINT_PATH = programs.find_program('pylint')
++PYLINT_PATH = programs.find_program('@@LINT_BIN_NAME@@')
- def is_pylint_installed():
- return programs.is_program_installed(PYLINT_PATH)
-@@ -353,7 +353,10 @@
- i2 = line.find(':', i1+1)
- if i2 == -1:
- continue
-- line_nb = line[i1+1:i2].strip()
-+ i3 = line.find(',', i1+1)
-+ if i3 == -1:
-+ continue
-+ line_nb = line[i1+1:i3].strip()
- if not line_nb:
- continue
- line_nb = int(line_nb)
+
+ #TODO: display results on 3 columns instead of 1: msg_id, lineno, message
Added: trunk/dports/python/py-spyder/files/spyderlib_plugins_editor.py.diff
===================================================================
--- trunk/dports/python/py-spyder/files/spyderlib_plugins_editor.py.diff (rev 0)
+++ trunk/dports/python/py-spyder/files/spyderlib_plugins_editor.py.diff 2011-11-08 02:36:00 UTC (rev 87015)
@@ -0,0 +1,11 @@
+--- spyderlib/plugins/editor.py.orig 2011-10-12 11:11:49.000000000 -0500
++++ spyderlib/plugins/editor.py 2011-10-12 11:12:53.000000000 -0500
+@@ -68,7 +68,7 @@
+ CONF.set('run', 'breakpoints', {})
+
+
+-WINPDB_PATH = programs.find_program('winpdb')
++WINPDB_PATH = programs.find_program('@@WINPDB_BIN_NAME@@')
+
+
+ class EditorConfigPage(PluginConfigPage):
Deleted: trunk/dports/python/py-spyder/files/spyderlib_plugins_externalconsole.py.diff
===================================================================
--- trunk/dports/python/py-spyder/files/spyderlib_plugins_externalconsole.py.diff 2011-11-08 01:45:15 UTC (rev 87014)
+++ trunk/dports/python/py-spyder/files/spyderlib_plugins_externalconsole.py.diff 2011-11-08 02:36:00 UTC (rev 87015)
@@ -1,13 +0,0 @@
---- spyderlib/plugins/externalconsole.py.orig 2011-08-16 10:18:36.000000000 -0500
-+++ spyderlib/plugins/externalconsole.py 2011-08-16 10:18:56.000000000 -0500
-@@ -326,8 +326,8 @@
-
- layout = QVBoxLayout()
- self.tabwidget = Tabs(self, self.menu_actions)
-- if hasattr(self.tabwidget, 'setDocumentMode'):
-- self.tabwidget.setDocumentMode(True)
-+ #if hasattr(self.tabwidget, 'setDocumentMode'):
-+ # self.tabwidget.setDocumentMode(True)
- self.connect(self.tabwidget, SIGNAL('currentChanged(int)'),
- self.refresh_plugin)
- self.connect(self.tabwidget, SIGNAL('move_data(int,int)'),
Modified: trunk/dports/python/py-spyder/files/spyderlib_spyder.py.diff
===================================================================
--- trunk/dports/python/py-spyder/files/spyderlib_spyder.py.diff 2011-11-08 01:45:15 UTC (rev 87014)
+++ trunk/dports/python/py-spyder/files/spyderlib_spyder.py.diff 2011-11-08 02:36:00 UTC (rev 87015)
@@ -1,6 +1,6 @@
---- spyderlib/spyder.py.orig 2011-08-11 13:54:43.000000000 -0500
-+++ spyderlib/spyder.py 2011-08-11 13:58:55.000000000 -0500
-@@ -101,9 +101,9 @@
+--- spyderlib/spyder.py.orig 2011-09-05 18:29:00.000000000 -0500
++++ spyderlib/spyder.py 2011-09-08 08:36:55.000000000 -0500
+@@ -142,7 +142,7 @@
return osp.join(doc_path, python_chm[0])
else:
vinf = sys.version_info
@@ -8,16 +8,4 @@
+ doc_path = '@@PREFIX@@/share/doc/python%d%d-doc' % (vinf[0], vinf[1])
python_doc = osp.join(doc_path, "index.html")
if osp.isfile(python_doc):
-- return python_doc
-+ return 'file://' + python_doc
-
- def open_python_doc():
-@@ -651,6 +651,8 @@
- spyder_doc = osp.join(osp.dirname(__file__), os.pardir,
- 'build', 'lib', 'spyderlib', 'doc',
- "index.html")
-+ else:
-+ spyder_doc = "file://" + spyder_doc
- doc_action = create_bookmark_action(self, spyder_doc,
- _("Spyder documentation"), shortcut="F1",
- icon=get_std_icon('DialogHelpButton'))
+ return python_doc
Modified: trunk/dports/python/py-spyder/files/spyderlib_utils_programs.py.diff
===================================================================
--- trunk/dports/python/py-spyder/files/spyderlib_utils_programs.py.diff 2011-11-08 01:45:15 UTC (rev 87014)
+++ trunk/dports/python/py-spyder/files/spyderlib_utils_programs.py.diff 2011-11-08 02:36:00 UTC (rev 87015)
@@ -1,15 +1,13 @@
---- 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:
+--- spyderlib/utils/programs.py.orig 2011-10-12 11:06:09.000000000 -0500
++++ spyderlib/utils/programs.py 2011-10-12 11:07:28.000000000 -0500
+@@ -20,6 +20,10 @@
+ abspath = osp.join(path, basename)
+ if osp.isfile(abspath):
+ return abspath
++ else:
++ abspath = "@@APPS_DIR@@/Qt4/" + basename + ".app/Contents/MacOS/" + basename
++ if osp.isfile(abspath):
+ return abspath
-+ else:
-+ return True
- return False
-
- def run_program(name, args=[]):
+
+
+ def find_program(basename):
Deleted: trunk/dports/python/py-spyder/files/spyderlib_widgets_editor.py.diff
===================================================================
--- trunk/dports/python/py-spyder/files/spyderlib_widgets_editor.py.diff 2011-11-08 01:45:15 UTC (rev 87014)
+++ trunk/dports/python/py-spyder/files/spyderlib_widgets_editor.py.diff 2011-11-08 02:36:00 UTC (rev 87015)
@@ -1,13 +0,0 @@
---- spyderlib/widgets/editor.py.orig 2011-08-16 10:19:49.000000000 -0500
-+++ spyderlib/widgets/editor.py 2011-08-16 10:20:03.000000000 -0500
-@@ -562,8 +562,8 @@
- self.tabs = BaseTabs(self, menu=self.menu, menu_use_tooltips=True,
- corner_widgets=corner_widgets)
- self.tabs.set_close_function(self.close_file)
-- if hasattr(self.tabs, 'setDocumentMode'):
-- self.tabs.setDocumentMode(True)
-+ #if hasattr(self.tabs, 'setDocumentMode'):
-+ # self.tabs.setDocumentMode(True)
- self.connect(self.tabs, SIGNAL('currentChanged(int)'),
- self.current_changed)
- layout.addWidget(self.tabs)
Modified: trunk/dports/python/py-spyder/files/spyderlib_widgets_sourcecode_codeeditor.py.diff
===================================================================
--- trunk/dports/python/py-spyder/files/spyderlib_widgets_sourcecode_codeeditor.py.diff 2011-11-08 01:45:15 UTC (rev 87014)
+++ trunk/dports/python/py-spyder/files/spyderlib_widgets_sourcecode_codeeditor.py.diff 2011-11-08 02:36:00 UTC (rev 87015)
@@ -1,24 +1,21 @@
---- 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 @@
+--- spyderlib/widgets/sourcecode/codeeditor.py.orig 2011-09-05 18:29:00.000000000 -0500
++++ spyderlib/widgets/sourcecode/codeeditor.py 2011-09-08 08:51:36.000000000 -0500
+@@ -2038,6 +2038,18 @@
+ self.emit(SIGNAL('trigger_code_completion(bool)'), True)
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-beta/Portfile
===================================================================
--- trunk/dports/python/py-spyder-beta/Portfile 2011-11-08 01:45:15 UTC (rev 87014)
+++ trunk/dports/python/py-spyder-beta/Portfile 2011-11-08 02:36:00 UTC (rev 87015)
@@ -4,7 +4,7 @@
PortSystem 1.0
name py-spyder-beta
version 2.1.1
-epoch 20111101
+epoch 20111107
PortGroup python 1.0
@@ -30,76 +30,17 @@
development environment with advanced editing, \
interactive testing, debugging and introspection features.
-master_sites googlecode:spyderlib
distname spyder-${version}
use_zip yes
supported_archs noarch
-#pyNN-scipy doesn't build universal
-universal_variant no
-
-checksums md5 75cae70e0064bb4349004b983d387ad7 \
- sha1 fd6a0dc49724d8c7fff85a88699163af6969a53b \
- rmd160 30cd8e38d0ae031bc64644f3c248eebc3df03ad6
-
if {${subport} != ${name}} {
- conflicts port:py${python.version}-spyder
-
- # Set the pylint executable name
- set LINT_BIN_NAME pylint-${python.branch}
- set WINPDB_BIN_NAME winpdb-${python.branch}
- patchfiles patch-widgets-pylintgui.py.diff \
- spyderlib_plugins_editor.py.diff \
- spyderlib_spyder.py.diff \
- spyderlib_utils_programs.py.diff \
- spyderlib_widgets_sourcecode_codeeditor.py.diff
-
- post-patch {
- reinplace "s|@@WINPDB_BIN_NAME@@|${WINPDB_BIN_NAME}|g" \
- ${worksrcpath}/spyderlib/plugins/editor.py
- reinplace "s|@@LINT_BIN_NAME@@|${LINT_BIN_NAME}|g" \
- ${worksrcpath}/spyderplugins/widgets/pylintgui.py
- reinplace "s|\"assistant\"|\"Assistant\"|g" \
- ${worksrcpath}/spyderlib/spyder.py
- reinplace "s|\"linguist\"|\"Linguist\"|g" \
- ${worksrcpath}/spyderlib/spyder.py
- reinplace "s|\"designer\"|\"Designer\"|g" \
- ${worksrcpath}/spyderlib/spyder.py
- reinplace "s|@@PREFIX@@|${prefix}|g" \
- ${worksrcpath}/spyderlib/spyder.py
- reinplace "s|@@APPS_DIR@@|${applications_dir}|g" \
- ${worksrcpath}/spyderlib/utils/programs.py
- # Windows newlines in the file cause compile() (in 2.6) to choke
- reinplace "s|\r||g" \
- ${worksrcpath}/doc/conf.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 \
- port:py${python.version}-pil \
- port:py${python.version}-htmldocs \
- port:py${python.version}-h5py
-
- 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} &&" \
- "./spyder --optimize"]
-
- file mkdir ${destroot}/tmp/spyder
- system "cd ${destroot}${python.prefix}/bin && ${OPTCMD}"
- file delete -force ${destroot}/tmp/spyder
- }
+ replaced_by port:py${python.version}-spyder
+ distfiles
+ pre-configure {
+ ui_error "Please do not install this port since it has been replaced by 'py${python.version}-spyder'."
+ return -code error
+ }
}
-livecheck.type regex
-livecheck.url http://code.google.com/p/spyderlib/
-livecheck.regex spyder-(\[0-9\]+\.\[0-9\]+(\.\[0-9\]+)?)
+livecheck.type none
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111107/2c120df4/attachment-0001.html>
More information about the macports-changes
mailing list