[140194] trunk/dports/python

petr at macports.org petr at macports.org
Fri Sep 11 09:38:23 PDT 2015


Revision: 140194
          https://trac.macports.org/changeset/140194
Author:   petr at macports.org
Date:     2015-09-11 09:38:23 -0700 (Fri, 11 Sep 2015)
Log Message:
-----------
py-xmltodict: new port

Added Paths:
-----------
    trunk/dports/python/py-xmltodict/
    trunk/dports/python/py-xmltodict/Portfile

Added: trunk/dports/python/py-xmltodict/Portfile
===================================================================
--- trunk/dports/python/py-xmltodict/Portfile	                        (rev 0)
+++ trunk/dports/python/py-xmltodict/Portfile	2015-09-11 16:38:23 UTC (rev 140194)
@@ -0,0 +1,53 @@
+# -*- 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
+
+set _name           xmltodict
+set _n              [string index ${_name} 0]
+
+name                py-${_name}
+version             0.9.2
+categories-append   devel
+platforms           darwin
+supported_archs     noarch
+license             MIT
+
+maintainers         petr openmaintainer
+
+description         Makes working with XML feel like you are working with JSON
+
+long_description    This Python module makes working with XML feel like you \
+                    are working with JSON.
+
+homepage            https://github.com/martinblech/xmltodict
+
+distname            ${_name}-${version}
+master_sites        https://pypi.python.org/packages/source/${_n}/${_name}/
+
+checksums           md5     ab17e53214a8613ad87968e9674d75dd \
+                    rmd160  997dfcb0f843979e9384121b270480bcbef40967 \
+                    sha256  275d1e68c95cd7e3ee703ddc3ea7278e8281f761680d6bdd637bcd00a5c59901
+
+python.versions     27 34
+
+if {${name} ne ${subport}} {
+    depends_build-append    port:py${python.version}-setuptools
+
+    # add documents
+    post-destroot {
+        set dest_doc ${destroot}${prefix}/share/doc/${subport}
+        xinstall -d ${dest_doc}
+        xinstall -m 644 -W ${worksrcpath} \
+            README.md \
+            LICENSE \
+                ${dest_doc}
+    }
+
+    livecheck.type  none
+} else {
+    livecheck.type  regex
+    livecheck.url   https://pypi.python.org/pypi/${_name}/json
+    livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\""
+}


Property changes on: trunk/dports/python/py-xmltodict/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150911/d93af5ff/attachment.html>


More information about the macports-changes mailing list