[118527] trunk/dports/python
macsforever2000 at macports.org
macsforever2000 at macports.org
Thu Apr 3 15:25:14 PDT 2014
Revision: 118527
https://trac.macports.org/changeset/118527
Author: macsforever2000 at macports.org
Date: 2014-04-03 15:25:14 -0700 (Thu, 03 Apr 2014)
Log Message:
-----------
py-ezodf: New port. (#42972)
Added Paths:
-----------
trunk/dports/python/py-ezodf/
trunk/dports/python/py-ezodf/Portfile
trunk/dports/python/py-ezodf/files/
trunk/dports/python/py-ezodf/files/patch-ezodf-document.py.diff
Added: trunk/dports/python/py-ezodf/Portfile
===================================================================
--- trunk/dports/python/py-ezodf/Portfile (rev 0)
+++ trunk/dports/python/py-ezodf/Portfile 2014-04-03 22:25:14 UTC (rev 118527)
@@ -0,0 +1,35 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+PortGroup python 1.0
+PortGroup bitbucket 1.0
+
+bitbucket.setup mozman ezodf 0.2.5
+name py-ezodf
+version 0.2.5
+python.versions 26 27 32 33
+platforms darwin
+maintainers gmail.com:Mathias.Laurin openmaintainer
+license MIT
+
+supported_archs noarch
+
+description Python package to create or open OpenDocument files.
+long_description ezodf is a Python package to create new or open existing\
+ OpenDocument (ODF) files to extract, add, modify or delete\
+ document data.
+
+homepage http://pythonhosted.org/ezodf/
+distname ezodf-${version}
+master_sites https://bitbucket.org/mozman/ezodf/downloads/
+
+checksums rmd160 add33e930e302f84971099da2db86bca225d468a \
+ sha256 f73f56f38594e596e6ec3ca90f16b317858023ed340e73ce78fcac8010fed535
+
+if {${subport} ne ${name}} {
+ patchfiles patch-ezodf-document.py.diff
+ depends_lib-append port:py${python.version}-lxml
+}
+
+livecheck.type none
Property changes on: trunk/dports/python/py-ezodf/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/python/py-ezodf/files/patch-ezodf-document.py.diff
===================================================================
--- trunk/dports/python/py-ezodf/files/patch-ezodf-document.py.diff (rev 0)
+++ trunk/dports/python/py-ezodf/files/patch-ezodf-document.py.diff 2014-04-03 22:25:14 UTC (rev 118527)
@@ -0,0 +1,11 @@
+--- ezodf/document.py.orig 2014-01-12 21:51:08.000000000 +0100
++++ ezodf/document.py 2014-01-12 21:54:07.000000000 +0100
+@@ -39,7 +39,7 @@
+ fm = ByteStreamManager(filename)
+ else:
+ try:
+- xmlnode = etree.parse(filename)
++ xmlnode = etree.parse(filename).getroot()
+ return FlatXMLDocument(filename=filename, xmlnode=xmlnode)
+ except etree.ParseError:
+ raise IOError("File '%s' is neither a zip-package nor a flat " \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140403/2f2eb344/attachment.html>
More information about the macports-changes
mailing list