[101064] trunk/dports/python/py-chaco

macsforever2000 at macports.org macsforever2000 at macports.org
Thu Jan 3 13:27:47 PST 2013


Revision: 101064
          https://trac.macports.org/changeset/101064
Author:   macsforever2000 at macports.org
Date:     2013-01-03 13:27:47 -0800 (Thu, 03 Jan 2013)
Log Message:
-----------
py-chaco: Update to version 4.2.0. Add maintainer. (#37408)

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

Added Paths:
-----------
    trunk/dports/python/py-chaco/files/
    trunk/dports/python/py-chaco/files/pyqt4_qsize.patch

Modified: trunk/dports/python/py-chaco/Portfile
===================================================================
--- trunk/dports/python/py-chaco/Portfile	2013-01-03 21:15:08 UTC (rev 101063)
+++ trunk/dports/python/py-chaco/Portfile	2013-01-03 21:27:47 UTC (rev 101064)
@@ -1,14 +1,14 @@
 # -*- 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
+PortSystem	        1.0
+PortGroup	        python 1.0
 
 name                py-chaco
-version             4.1.0
+version             4.2.0
 categories-append   devel
 license             BSD PSF
-maintainers         nomaintainer
+maintainers         gmail.com:jjstickel openmaintainer
 platforms           darwin
 description         The Enthought chaco package for 2-D plotting
 long_description    Chaco is a Python plotting application toolkit that\
@@ -23,13 +23,16 @@
 master_sites        http://www.enthought.com/repo/ets/
 distname            chaco-${version}
 
-checksums           sha256 cdc80d77661fa955a4a4466b5b3f55808beedfc48f8f14b33f2ba81ccb360cc7 \
-                    rmd160 4df41bfbeaffdca4e2213a9a210a3e9ca28a616c
-                    
+checksums           rmd160  c2e9a4f35c5d8ad0eacaedae87dc2e3672b4c18c \
+                    sha256  f2021f4d9b788effa4915114e28d4e2fed597b7c0f6254d44b41c6178e63542f
+
 python.versions     25 26 27
 
 if {$subport != $name} {
     depends_build-append    port:py${python.version}-distribute
     depends_lib-append      port:py${python.version}-enable \
                             port:py${python.version}-numpy
+    
+    patchfiles              pyqt4_qsize.patch
+    patch.pre_args          -p1
 }

Added: trunk/dports/python/py-chaco/files/pyqt4_qsize.patch
===================================================================
--- trunk/dports/python/py-chaco/files/pyqt4_qsize.patch	                        (rev 0)
+++ trunk/dports/python/py-chaco/files/pyqt4_qsize.patch	2013-01-03 21:27:47 UTC (rev 101064)
@@ -0,0 +1,47 @@
+From e6249d1b0a13294a4894c0e2c7fce5a5929e7ffe Mon Sep 17 00:00:00 2001
+From: Robert Kern <rkern at enthought.com>
+Date: Tue, 10 Jul 2012 10:34:17 +0100
+Subject: [PATCH] BUG: Be sure to use a QSize instead of a tuple for PyQt4
+ compatibility.
+
+---
+ chaco/shell/plot_window.py |    9 ++++++---
+ 1 file changed, 6 insertions(+), 3 deletions(-)
+
+diff --git a/chaco/shell/plot_window.py b/chaco/shell/plot_window.py
+index db8e5da..32fd969 100644
+--- a/chaco/shell/plot_window.py
++++ b/chaco/shell/plot_window.py
+@@ -125,7 +125,7 @@ def _on_window_close(self, event):
+ 
+ elif ETSConfig.toolkit == "qt4":
+ 
+-    from pyface.qt import QtGui
++    from pyface.qt import QtCore, QtGui
+ 
+     class PlotWindow(QtGui.QFrame):
+         """ A window for holding top-level plot containers.
+@@ -137,6 +137,9 @@ class PlotWindow(QtGui.QFrame):
+         def __init__(self, is_image=False, bgcolor="white",
+                      image_default_origin="top left", *args, **kw):
+ 
++            if 'size' in kw and isinstance(kw['size'], tuple):
++                # Convert to a QSize.
++                kw['size'] = QtCore.QSize(*kw['size'])
+             super(PlotWindow, self).__init__(None, *args, **kw )
+ 
+             # Some defaults which should be overridden by preferences.
+@@ -163,8 +166,8 @@ def __init__(self, is_image=False, bgcolor="white",
+             layout.addWidget(self.plot_window.control)
+             self.setLayout(layout)
+ 
+-            size = kw.setdefault("size", (600,600))
+-            self.set_size(*size)
++            size = kw.get("size", QtCore.QSize(600,600))
++            self.set_size(size.width(), size.height())
+ 
+             self.show()
+ 
+-- 
+1.7.10
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130103/249acc6a/attachment.html>


More information about the macports-changes mailing list