# -*- 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-demjson
version             2.2.4
revision            0
license             LGPL-3+
platforms           darwin
maintainers         nomaintainer

python.versions     27

description         encoder, decoder, and validator for JSON compliant with RFC 4627
long_description    encoder, decoder, and lint/validator for JSON (JavaScript \
                    Object Notation) compliant with RFC 4627. This module \
                    provides classes and functions for encoding or decoding data \
                    represented in the language-neutral JSON format. This \
                    implementation tries to be as compliant to the JSON \
                    specification (RFC 4627) as possible, while still providing \
                    many optional extensions to allow less restrictive \
                    JavaScript syntax. It includes complete Unicode support, \
                    including UTF-32, BOM, and surrogate pair processing. It can \
                    also support JavaScript's NaN and Infinity numeric types as \
                    well as its 'undefined' type. It also includes a lint-like \
                    JSON syntax validator which tests JSON text for strict \
                    compliance to the standard.

homepage            http://deron.meranda.us/python/demjson/
master_sites        pypi:d/demjson/
distname            demjson-${version}

checksums           rmd160  2d5f60a791671465dc91ab370a8ad7480ed81a26 \
                    sha256  31de2038a0fdd9c4c11f8bf3b13fe77bc2a128307f965c8d5fb4dc6d6f6beb79 \
                    size    131457

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-setuptools

    post-destroot {
        xinstall -m 0755 -d ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 0644 -W ${worksrcpath} README.txt LICENSE.txt \
            ${destroot}${prefix}/share/doc/${subport}
    }

    livecheck.type  none
}
