[49554] trunk/dports/python

blb at macports.org blb at macports.org
Sat Apr 11 23:59:28 PDT 2009


Revision: 49554
          http://trac.macports.org/changeset/49554
Author:   blb at macports.org
Date:     2009-04-11 23:59:28 -0700 (Sat, 11 Apr 2009)
Log Message:
-----------
New port - py26-xml, XML Tools for Python

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

Added Paths:
-----------
    trunk/dports/python/py26-xml/
    trunk/dports/python/py26-xml/files/
    trunk/dports/python/py26-xml/files/patch-xml_xpath_ParsedAbbreviatedAbsoluteLocationPath.py.diff
    trunk/dports/python/py26-xml/files/patch-xml_xpath_ParsedAbbreviatedRelativeLocationPath.py.diff

Modified: trunk/dports/python/py26-xml/Portfile
===================================================================
--- trunk/dports/python/py25-xml/Portfile	2009-04-11 22:23:44 UTC (rev 49535)
+++ trunk/dports/python/py26-xml/Portfile	2009-04-12 06:59:28 UTC (rev 49554)
@@ -1,28 +1,33 @@
 # $Id$
 
 PortSystem 1.0
-PortGroup python25 1.0
+PortGroup python26 1.0
 
-name            py25-xml
+name            py26-xml
 version         0.8.4
 categories-append   devel textproc
-maintainers     ryanwilcox at mac.com
+maintainers     nomaintainer
 description     XML Tools for Python
 long_description \
     A package of all the tools required for writing basic \
     XML applications in Python.
 
 platforms       darwin
-homepage 		http://pyxml.sourceforge.net/
+homepage        http://pyxml.sourceforge.net/
 master_sites    sourceforge:pyxml
 distname        PyXML-${version}
 checksums       md5 1f7655050cebbb664db976405fdba209
 
 depends_lib-append  port:expat 
 
+# Work with python 2.6
+patchfiles      patch-xml_xpath_ParsedAbbreviatedAbsoluteLocationPath.py.diff \
+                patch-xml_xpath_ParsedAbbreviatedRelativeLocationPath.py.diff
+
 build.args      --with-libexpat=${prefix}
 
 post-destroot {
-	file mkdir ${destroot}${prefix}/share/doc
-	file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
+   file mkdir ${destroot}${prefix}/share/doc
+   file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
 }
+

Added: trunk/dports/python/py26-xml/files/patch-xml_xpath_ParsedAbbreviatedAbsoluteLocationPath.py.diff
===================================================================
--- trunk/dports/python/py26-xml/files/patch-xml_xpath_ParsedAbbreviatedAbsoluteLocationPath.py.diff	                        (rev 0)
+++ trunk/dports/python/py26-xml/files/patch-xml_xpath_ParsedAbbreviatedAbsoluteLocationPath.py.diff	2009-04-12 06:59:28 UTC (rev 49554)
@@ -0,0 +1,13 @@
+--- xml/xpath/ParsedAbbreviatedAbsoluteLocationPath.py.orig	2003-03-11 07:01:34.000000000 -0700
++++ xml/xpath/ParsedAbbreviatedAbsoluteLocationPath.py	2009-04-12 00:53:07.000000000 -0600
+@@ -24,8 +24,8 @@
+         self._rel = rel
+         nt = ParsedNodeTest.ParsedNodeTest('node', '')
+         ppl = ParsedPredicateList.ParsedPredicateList([])
+-        as = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self')
+-        self._step = ParsedStep.ParsedStep(as, nt, ppl)
++        axisspec = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self')
++        self._step = ParsedStep.ParsedStep(axisspec, nt, ppl)
+         return
+ 
+     def evaluate(self, context):

Added: trunk/dports/python/py26-xml/files/patch-xml_xpath_ParsedAbbreviatedRelativeLocationPath.py.diff
===================================================================
--- trunk/dports/python/py26-xml/files/patch-xml_xpath_ParsedAbbreviatedRelativeLocationPath.py.diff	                        (rev 0)
+++ trunk/dports/python/py26-xml/files/patch-xml_xpath_ParsedAbbreviatedRelativeLocationPath.py.diff	2009-04-12 06:59:28 UTC (rev 49554)
@@ -0,0 +1,13 @@
+--- xml/xpath/ParsedAbbreviatedRelativeLocationPath.py.orig	2003-03-11 07:01:34.000000000 -0700
++++ xml/xpath/ParsedAbbreviatedRelativeLocationPath.py	2009-04-12 00:52:11.000000000 -0600
+@@ -28,8 +28,8 @@
+         self._right = right
+         nt = ParsedNodeTest.ParsedNodeTest('node','')
+         ppl = ParsedPredicateList.ParsedPredicateList([])
+-        as = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self')
+-        self._middle = ParsedStep.ParsedStep(as, nt, ppl)
++        axisspec = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self')
++        self._middle = ParsedStep.ParsedStep(axisspec, nt, ppl)
+ 
+     def evaluate(self, context):
+         res = []
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090411/9389225e/attachment.html>


More information about the macports-changes mailing list