[63842] trunk/dports/python
nox at macports.org
nox at macports.org
Tue Feb 16 17:06:30 PST 2010
Revision: 63842
http://trac.macports.org/changeset/63842
Author: nox at macports.org
Date: 2010-02-16 17:06:28 -0800 (Tue, 16 Feb 2010)
Log Message:
-----------
Create new port py26-pyxb
PyXB is a pure Python package that generates Python code for classes
that correspond to data structures defined by XMLSchema. In concept it
is similar to JAXB for Java and CodeSynthesis XSD for C++.
Added Paths:
-----------
trunk/dports/python/py26-pyxb/
trunk/dports/python/py26-pyxb/Portfile
trunk/dports/python/py26-pyxb/files/
trunk/dports/python/py26-pyxb/files/patch-pyxb-utils-utility.py.diff
Added: trunk/dports/python/py26-pyxb/Portfile
===================================================================
--- trunk/dports/python/py26-pyxb/Portfile (rev 0)
+++ trunk/dports/python/py26-pyxb/Portfile 2010-02-17 01:06:28 UTC (rev 63842)
@@ -0,0 +1,54 @@
+# $Id$
+
+PortSystem 1.0
+PortGroup python26 1.0
+
+name py26-pyxb
+version 1.1.1
+categories python devel textproc
+maintainers nox openmaintainer
+platforms darwin
+license Apache-2.0
+description PyXB: Python XML Schema Bindings
+
+long_description \
+ PyXB is a pure Python package that generates Python code for classes that \
+ correspond to data structures defined by XMLSchema. In concept it is \
+ similar to JAXB for Java and CodeSynthesis XSD for C++.
+
+homepage http://pyxb.sourceforge.net/
+master_sites sourceforge:pyxb
+distname PyXB-full-${version}
+
+checksums md5 58af5134ca6228308d635004bf602c9a \
+ sha1 eda02715333be192e25bacd7cfab5145d94fd1c8 \
+ rmd160 abb50fe95665ca2ec4e1593d1d1c4c2b7961e478
+
+post-extract {
+ delete ${worksrcpath}/tests/bugs/test-200908271556.py
+}
+
+worksrcdir PyXB-${version}
+
+patchfiles patch-pyxb-utils-utility.py.diff
+
+test.run yes
+test.cmd ${python.bin} -u setup.py
+
+post-destroot {
+ set docdir ${prefix}/share/doc/${name}
+ xinstall -d ${destroot}${docdir}
+ xinstall -m 644 -W ${worksrcpath} LICENSE NOTICE README.txt \
+ ${destroot}${docdir}
+ copy ${worksrcpath}/doc/html ${destroot}${docdir}/html
+
+ set examplesdir ${prefix}/share/examples/${name}
+ xinstall -d [file dirname ${destroot}${examplesdir}]
+ copy ${worksrcpath}/examples ${destroot}${examplesdir}
+}
+
+universal_variant no
+
+livecheck.type regex
+livecheck.url ${homepage}
+livecheck.regex {v(\d+(?:\.\d+)*), released}
Property changes on: trunk/dports/python/py26-pyxb/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/python/py26-pyxb/files/patch-pyxb-utils-utility.py.diff
===================================================================
--- trunk/dports/python/py26-pyxb/files/patch-pyxb-utils-utility.py.diff (rev 0)
+++ trunk/dports/python/py26-pyxb/files/patch-pyxb-utils-utility.py.diff 2010-02-17 01:06:28 UTC (rev 63842)
@@ -0,0 +1,10 @@
+--- pyxb/utils/utility.py.orig 2010-02-17 01:39:11.000000000 +0100
++++ pyxb/utils/utility.py 2010-02-17 01:46:47.000000000 +0100
+@@ -569,6 +569,7 @@
+ raise
+ fp = file(file_name, 'r+')
+ if (tag is not None) and (0 < os.fstat(fp.fileno()).st_size):
++ fp.seek(0)
+ text = fp.read(4096)
+ print text
+ print tag
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100216/07c7879e/attachment.html>
More information about the macports-changes
mailing list