# -*- 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

PortSystem          1.0
PortGroup           python 1.0

name                py-cjson
python.rootname     python-cjson
version             1.2.2
revision            0
license             LGPL
maintainers         nomaintainer

description         Fast JSON encoder/decoder for Python
long_description    This module implements a very fast JSON \
                    encoder/decoder for Python. The module is written \
                    in C and it is up to 250 times faster when \
                    compared to the other python JSON implementations \
                    which are written directly in python. This speed \
                    gain varies with the complexity of the data and \
                    the operation and is the the range of 10-200 times \
                    for encoding operations and in the range of \
                    100-250 times for decoding operations.
homepage            https://github.com/AGProjects/python-cjson

checksums           rmd160  afcd91ac37c5c7d060a782da24ae3bc7d02f4ed8 \
                    sha256  3006c2c218297be3448dc793218e0b15d20fe9839775521bfc294fc6aa24972b \
                    size    12603
python.versions     27

if {${name} ne ${subport}} {
    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} README LICENSE ChangeLog ${destroot}${docdir}
    }

    test.run        yes
    python.test_framework
    test.cmd        ${python.bin} jsontest.py
}
