[117036] trunk/dports/python/py-pydot

hum at macports.org hum at macports.org
Thu Feb 13 08:14:16 PST 2014


Revision: 117036
          https://trac.macports.org/changeset/117036
Author:   hum at macports.org
Date:     2014-02-13 08:14:16 -0800 (Thu, 13 Feb 2014)
Log Message:
-----------
py-pydot: add patch-dot_parser.py.diff to avoid using a private module variable (_noncomma) from pyparsing; see https://code.google.com/p/pydot/issues/detail?id=81#c9

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

Added Paths:
-----------
    trunk/dports/python/py-pydot/files/patch-dot_parser.py.diff

Modified: trunk/dports/python/py-pydot/Portfile
===================================================================
--- trunk/dports/python/py-pydot/Portfile	2014-02-13 15:55:54 UTC (rev 117035)
+++ trunk/dports/python/py-pydot/Portfile	2014-02-13 16:14:16 UTC (rev 117036)
@@ -6,6 +6,7 @@
 name			py-pydot
 python.versions         25 26 27
 version			1.0.28
+revision                1
 categories-append	graphics
 license			MIT
 platforms		darwin
@@ -23,7 +24,8 @@
 checksums           sha1    3945af1765943807d72e773c7ac853f008ebb0b2
 if { ${name} ne ${subport} } {
     depends_run		bin:dot:graphviz
-    patchfiles		patch-setup.py.diff
+    patchfiles		patch-setup.py.diff \
+                        patch-dot_parser.py.diff
     
    post-patch {
        reinplace "s|@@DIRECTORY@@|share/doc/${subport}|g" ${worksrcpath}/setup.py

Added: trunk/dports/python/py-pydot/files/patch-dot_parser.py.diff
===================================================================
--- trunk/dports/python/py-pydot/files/patch-dot_parser.py.diff	                        (rev 0)
+++ trunk/dports/python/py-pydot/files/patch-dot_parser.py.diff	2014-02-13 16:14:16 UTC (rev 117036)
@@ -0,0 +1,13 @@
+--- dot_parser.py.orig	2012-01-03 08:23:26.000000000 +0900
++++ dot_parser.py	2014-02-14 00:39:04.000000000 +0900
+@@ -25,8 +25,9 @@
+ from pyparsing import ( nestedExpr, Literal, CaselessLiteral, Word, Upcase, OneOrMore, ZeroOrMore,
+     Forward, NotAny, delimitedList, oneOf, Group, Optional, Combine, alphas, nums,
+     restOfLine, cStyleComment, nums, alphanums, printables, empty, quotedString,
+-    ParseException, ParseResults, CharsNotIn, _noncomma, dblQuotedString, QuotedString, ParserElement )
++    ParseException, ParseResults, CharsNotIn, dblQuotedString, QuotedString, ParserElement )
+ 
++_noncomma = "".join( [ c for c in printables if c != "," ] )
+ 
+ class P_AttrList:
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140213/84f40d40/attachment-0001.html>


More information about the macports-changes mailing list