[68611] trunk/dports/python/py26-epydoc

dh at macports.org dh at macports.org
Mon Jun 7 20:12:40 PDT 2010


Revision: 68611
          http://trac.macports.org/changeset/68611
Author:   dh at macports.org
Date:     2010-06-07 20:12:37 -0700 (Mon, 07 Jun 2010)
Log Message:
-----------
Patch added to allow epydoc to handle newer restructured text module

Modified Paths:
--------------
    trunk/dports/python/py26-epydoc/Portfile

Added Paths:
-----------
    trunk/dports/python/py26-epydoc/files/
    trunk/dports/python/py26-epydoc/files/patch-restructuredtext.py.diff

Modified: trunk/dports/python/py26-epydoc/Portfile
===================================================================
--- trunk/dports/python/py26-epydoc/Portfile	2010-06-08 01:01:34 UTC (rev 68610)
+++ trunk/dports/python/py26-epydoc/Portfile	2010-06-08 03:12:37 UTC (rev 68611)
@@ -5,6 +5,7 @@
 
 name			py26-epydoc
 version			3.0.1
+revision                1
 categories		python
 platforms		darwin freebsd
 maintainers		nomaintainer
@@ -24,6 +25,8 @@
 			sha1 ccd5cb602cbf8df1a6c61670793d0122fc569523 \
 			rmd160 7630a4f6e4ef5f1e2b033f38316ed992306cb951
 
+patchfiles              patch-restructuredtext.py.diff
+
 post-destroot	{
 	file delete -force ${destroot}${prefix}/share/doc/${name}
 	file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}

Added: trunk/dports/python/py26-epydoc/files/patch-restructuredtext.py.diff
===================================================================
--- trunk/dports/python/py26-epydoc/files/patch-restructuredtext.py.diff	                        (rev 0)
+++ trunk/dports/python/py26-epydoc/files/patch-restructuredtext.py.diff	2010-06-08 03:12:37 UTC (rev 68611)
@@ -0,0 +1,32 @@
+Index: epydoc/markup/restructuredtext.py
+===================================================================
+--- epydoc/markup/restructuredtext.py       (revision 1812)
++++ epydoc/markup/restructuredtext.py       (working copy)
+@@ -304,10 +304,10 @@
+         # Extract the first sentence.
+         for child in node:
+             if isinstance(child, docutils.nodes.Text):
+-                m = self._SUMMARY_RE.match(child.data)
++                m = self._SUMMARY_RE.match(child)
+                 if m:
+                     summary_pieces.append(docutils.nodes.Text(m.group(1)))
+-                    other = child.data[m.end():]
++                    other = child[m.end():]
+                     if other and not other.isspace():
+                         self.other_docs = True
+                     break
+@@ -489,10 +489,10 @@
+             if (len(fbody[0]) > 0 and
+                 isinstance(fbody[0][0], docutils.nodes.Text)):
+                 child = fbody[0][0]
+-                if child.data[:1] in ':-':
+-                    child.data = child.data[1:].lstrip()
+-                elif child.data[:2] in (' -', ' :'):
+-                    child.data = child.data[2:].lstrip()
++                if child[:1] in ':-':
++                    child = child[1:].lstrip()
++                elif child[:2] in (' -', ' :'):
++                    child = child[2:].lstrip()
+
+             # Wrap the field body, and add a new field
+             self._add_field(tagname, arg, fbody)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100607/d230aec0/attachment.html>


More information about the macports-changes mailing list