# -*- 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-cdb
python.rootname     python-cdb
version             0.35
revision            0

platforms           darwin
license             GPL-2+
maintainers         nomaintainer

description         python module for using the constant database package
long_description    The python-cdb extension module is an adaptation of \
                    D. J. Bernstein's constant database package (see \
                    https://cr.yp.to/cdb.html). The cdb files are mappings \
                    of keys to values, designed for wickedly fast lookups \
                    and atomic updates.  This module mimics the normal cdb \
                    utilities, cdb(get|dump|make), via convenient, \
                    high-level Python objects.

homepage            https://github.com/acg/python-cdb
master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}
distname            ${python.rootname}-${version}

checksums           rmd160  c067f06959b59d71846c82f3348c9ca471402f94 \
                    sha256  c6cdc195c30f6ad638267f232d89b491598037910307e8b46ac6e39f622160fe \
                    size    19573

python.versions     27

if {${name} ne ${subport}} {
    post-destroot {
        xinstall -m 0644 -W ${worksrcpath} COPYING ChangeLog README Example\
            ${destroot}${prefix}/share/doc/${subport}
    }
    livecheck.type  none
}
