[89186] trunk/dports/python

singingwolfboy at macports.org singingwolfboy at macports.org
Fri Jan 20 07:29:19 PST 2012


Revision: 89186
          http://trac.macports.org/changeset/89186
Author:   singingwolfboy at macports.org
Date:     2012-01-20 07:29:17 -0800 (Fri, 20 Jan 2012)
Log Message:
-----------
unified py*-simplejson ports, updated to 2.3.2

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

Added Paths:
-----------
    trunk/dports/python/py-simplejson/

Removed Paths:
-------------
    trunk/dports/python/py-simplejson/
    trunk/dports/python/py25-simplejson/
    trunk/dports/python/py26-simplejson/
    trunk/dports/python/py27-simplejson/

Modified: trunk/dports/python/py-simplejson/Portfile
===================================================================
--- trunk/dports/python/py27-simplejson/Portfile	2012-01-19 20:26:01 UTC (rev 89123)
+++ trunk/dports/python/py-simplejson/Portfile	2012-01-20 15:29:17 UTC (rev 89186)
@@ -2,37 +2,64 @@
 # $Id$
 
 PortSystem          1.0
-PortGroup           python27 1.0
+PortGroup           python 1.0
 
-name                py27-simplejson
-version             2.1.1
+name                py-simplejson
+set real_name       simplejson
+version             2.3.2
+python.versions     24 25 26 27
 categories-append   www
 license             MIT
-maintainers         nomaintainer
-description         simplejson is a JSON encoder and decoder.
-long_description    ${description}
+maintainers         akitada singingwolfboy openmaintainer
+description         Simple, fast, extensible JSON encoder/decoder for Python
+long_description    \
+    simplejson is a simple, fast, complete, correct and extensible JSON encoder \
+    and decoder for Python 2.4+. It is pure Python code with no dependencies, but \
+    includes an optional C extension for a serious speed boost. \
+    \
+    simplejson is the externally maintained development version of the json \
+    library included with Python 2.6+, but maintains backwards compatibility with \
+    Python 2.5 and 2.4. \
+    \
+    The encoder may be subclassed to provide serialization in any kind of \
+    situation, without any special support by the objects to be serialized \
+    (somewhat like pickle). The decoder can handle incoming JSON strings of any \
+    specified encoding (UTF-8 by default).
 
 platforms           darwin
 
-homepage            http://undefined.org/python/#simplejson
-master_sites        http://cheeseshop.python.org/packages/source/s/simplejson/
-distname            simplejson-${version}
+homepage            http://${real_name}.readthedocs.org/
+master_sites        http://pypi.python.org/packages/source/s/${real_name}/
+distname            ${real_name}-${version}
+checksums           rmd160  bfa3d790e5485b2edf33ebebd6952be90b4db868 \
+                    sha256  276c1837be470a21178f9e70b0688189e1a4e2d09ea85cef35078b929b605428
 
-depends_lib         port:py27-distribute
+if {$name != $subport} {
+    depends_lib         port:py${python.version}-distribute
+}
 
-checksums           md5     0bbe3a2e5e4cac040013733aca159d89 \
-                    sha1    106fe3481c9a3a9488cbe7d212eca7671837783f \
-                    rmd160  7cb7b2b5052bf09ae5010d6d96cba28ebd490aac
+subport py24-simplejson {
+    # simplejson dropped support for Python 2.4 at version 2.1.0
+    version         2.1.0
+    distname        ${real_name}-2.1.0
+    checksums       rmd160  41997ae2e309dc538deda50e056119b01afbf23d \
+                    sha256  11bb12aacb646dcccc0d5a3d0e44e5662caf0e71d2f58c7ace8d2ec03cda903b
+}
 
 post-destroot {
-    xinstall -m 644 -W ${worksrcpath} \
-        LICENSE.txt \
-        ${destroot}${prefix}/share/doc/${name}
-    foreach f [glob -directory ${worksrcpath}/docs *] {
-        copy $f ${destroot}${prefix}/share/doc/${name}/[file tail $f]
+    set docdir ${destroot}${prefix}/share/doc/${subport}
+    xinstall -d ${docdir}
+    if {${python.version} == 24} {
+        foreach f [glob -directory ${worksrcpath}/docs *] {
+            copy $f ${docdir}
+        }
+    } else {
+        xinstall -m 644 -W ${worksrcpath} \
+            CHANGES.txt README.rst index.rst \
+            ${docdir}
     }
 }
 
 livecheck.type      regex
 livecheck.url       ${master_sites}
-livecheck.regex     {simplejson-([0-9.]+)\.tar\.gz}
+livecheck.regex     {${real_name}-([0-9.]+)\.tar\.gz}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120120/dbf8386c/attachment.html>


More information about the macports-changes mailing list