# -*- 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
PortGroup           github 1.0

github.setup        mverleg pyjson_tricks 3.12.2 v
name                py-json-tricks
revision            0
license             BSD
supported_archs     noarch
platforms           darwin

python.versions     27 35 36 37
python.default_version 27

maintainers         {eborisch @eborisch} openmaintainer

description         The json-tricks exentds handling of json files.
long_description    The pyjson-tricks package brings several pieces of \
                    functionality to python handling of json files: \
                    Store and load numpy arrays in human-readable format. \
                    Store and load class instances both generic and \
                    customized.  Store and load date/times as a dictionary \
                    (including timezone).  Preserve map order {} using \
                    OrderedDict.  Allow for comments in json files by \
                    starting lines with #.  Sets, complex numbers, Decimal, \
                    Fraction, enums, compression, duplicate keys, ...

checksums \
    rmd160  4ec544f22302db3a6c5652b1d703f62d3a81dceb \
    sha256  f1696a6afb9b9afc8a71f27f9160a55af88f641e677d30f8ca4d454db6b50104 \
    size    36099

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

    post-destroot {
        set DD      ${destroot}${prefix}/share/doc/${subport}/
        xinstall -d ${DD}
        xinstall -W ${worksrcpath} LICENSE.txt README.rst ${DD}
    }
}