[24487] trunk/dports/python/py-traits
source_changes at macosforge.org
source_changes at macosforge.org
Wed Apr 25 17:27:45 PDT 2007
Revision: 24487
http://trac.macosforge.org/projects/macports/changeset/24487
Author: jann at macports.org
Date: 2007-04-25 17:27:45 -0700 (Wed, 25 Apr 2007)
Log Message:
-----------
Added another patch for this crappy package ;)
Modified Paths:
--------------
trunk/dports/python/py-traits/Portfile
Added Paths:
-----------
trunk/dports/python/py-traits/files/color_traits.py.diff
Modified: trunk/dports/python/py-traits/Portfile
===================================================================
--- trunk/dports/python/py-traits/Portfile 2007-04-25 22:42:48 UTC (rev 24486)
+++ trunk/dports/python/py-traits/Portfile 2007-04-26 00:27:45 UTC (rev 24487)
@@ -3,20 +3,21 @@
PortSystem 1.0
PortGroup python24 1.0
-name py-traits
-version 1.1.0
-categories-append devel
-maintainers jann at macports.org openmaintainer at macports.org
-description The Enthought traits package
-long_description manifest typing, and much more
-platforms darwin
-homepage http://code.enthought.com/traits/
+name py-traits
+version 1.1.0
+revision 1
+categories-append devel
+maintainers jann at macports.org openmaintainer at macports.org
+description The Enthought traits package
+long_description manifest typing, and much more
+platforms darwin
+homepage http://code.enthought.com/traits/
master_sites http://code.enthought.com/downloads/traits/
-distname enthought.traits-${version}-src
-extract.suffix .tgz
-checksums rmd160 593773a22da988be9bfe9a35bf4209e2a6b8116e
-worksrcdir enthought.traits-${version}/enthought
-patchfiles enthought.diff
+distname enthought.traits-${version}-src
+extract.suffix .tgz
+checksums rmd160 593773a22da988be9bfe9a35bf4209e2a6b8116e
+worksrcdir enthought.traits-${version}/enthought
+patchfiles enthought.diff color_traits.py.diff
patch.pre_args -p1
-depends_lib-append port:py-scipy port:py-numpy
\ No newline at end of file
+depends_lib-append port:py-scipy port:py-numpy
Added: trunk/dports/python/py-traits/files/color_traits.py.diff
===================================================================
--- trunk/dports/python/py-traits/files/color_traits.py.diff (rev 0)
+++ trunk/dports/python/py-traits/files/color_traits.py.diff 2007-04-26 00:27:45 UTC (rev 24487)
@@ -0,0 +1,13 @@
+--- enthought/traits/ui/wx/color_trait.py.orig 2006-08-17 20:25:30.000000000 -0700
++++ enthought/traits/ui/wx/color_trait.py 2007-04-25 17:24:12.000000000 -0700
+@@ -34,6 +34,8 @@
+ if type( value ) is int:
+ num = int( value )
+ return wx.Colour( num / 0x10000, (num / 0x100) & 0xFF, num & 0xFF )
++ if isinstance( value, str ) and value in standard_colors:
+
++ return wx.NamedColour(value)
+
+ raise TraitError
+
+ convert_to_color.info = ('a wx.Colour instance, an integer which in hex is of '
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070425/bd5c7ec8/attachment.html
More information about the macports-changes
mailing list