[85833] trunk/dports/python

snc at macports.org snc at macports.org
Sun Oct 16 13:20:10 PDT 2011


Revision: 85833
          http://trac.macports.org/changeset/85833
Author:   snc at macports.org
Date:     2011-10-16 13:20:05 -0700 (Sun, 16 Oct 2011)
Log Message:
-----------
py-epydoc:
 * unify
 * license
 * add py27-epydoc

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

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

Removed Paths:
-------------
    trunk/dports/python/py25-epydoc/
    trunk/dports/python/py26-epydoc/

Modified: trunk/dports/python/py-epydoc/Portfile
===================================================================
--- trunk/dports/python/py-epydoc/Portfile	2011-10-16 19:06:54 UTC (rev 85832)
+++ trunk/dports/python/py-epydoc/Portfile	2011-10-16 20:20:05 UTC (rev 85833)
@@ -2,14 +2,17 @@
 # $Id$
 
 PortSystem 1.0
-PortGroup python24 1.0
+PortGroup           python 1.0
 
 name			py-epydoc
 version			3.0.1
-revision		2
+revision		    3
+python.versions     24 25 26 27
+# must default to python 24
 categories		python
 platforms		darwin freebsd
-maintainers		dh
+maintainers		    dh snc openmaintainer
+license             MIT
 description		API documentation generator for Python modules
 long_description	Epydoc is a tool for generating API documentation for \
 				Python modules, based on their docstrings. A \
@@ -22,12 +25,23 @@
 homepage		http://epydoc.sourceforge.net/
 master_sites	sourceforge:epydoc
 distname		epydoc-${version}
-checksums		md5 cdd6f6c76dd8bab5e653a343a0544294 \
-			sha1 ccd5cb602cbf8df1a6c61670793d0122fc569523
 
-post-destroot	{
-	file delete -force ${destroot}${prefix}/share/doc/${name}
-	file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
-	xinstall -m 644 -W ${worksrcpath} LICENSE.txt README.txt \
-		${destroot}${prefix}/share/doc/${name}
+if {$subport != $name} {
+    checksums           rmd160  7630a4f6e4ef5f1e2b033f38316ed992306cb951 \
+                        sha256  d4e5c8d90937d01b05170f592c1fa9b29e9ed0498dfe7f0eb2a3af61725b6ad1
+
+    patchfiles              patch-restructuredtext.py.diff
+
+    post-destroot	{
+        if {${python.version} == 25 || ${python.version} == 24} {
+            move ${destroot}${prefix}/bin/apirst2html.py ${destroot}${prefix}/bin/apirst2html.py-${python.branch}
+            move ${destroot}${prefix}/bin/epydoc ${destroot}${prefix}/bin/epydoc-${python.branch}
+            move ${destroot}${prefix}/bin/epydocgui ${destroot}${prefix}/bin/epydocgui-${python.branch}
+        }
+        file delete -force ${destroot}${prefix}/share/doc/${subport}
+        file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${subport}
+        xinstall -m 644 -W ${worksrcpath} LICENSE.txt README.txt \
+            ${destroot}${prefix}/share/doc/${subport}
+    }
+    livecheck.type      none
 }

Copied: trunk/dports/python/py-epydoc/files/patch-restructuredtext.py.diff (from rev 85832, trunk/dports/python/py26-epydoc/files/patch-restructuredtext.py.diff)
===================================================================
--- trunk/dports/python/py-epydoc/files/patch-restructuredtext.py.diff	                        (rev 0)
+++ trunk/dports/python/py-epydoc/files/patch-restructuredtext.py.diff	2011-10-16 20:20:05 UTC (rev 85833)
@@ -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/20111016/3c19d12f/attachment.html>


More information about the macports-changes mailing list