# $Id: Portfile 106487 2013-05-28 03:31:37Z jmr@macports.org $

PortSystem 1.0
PortGroup python 1.0

name                py-cdb
version             0.34
license             GPL-2+
platforms           darwin
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 \
                    http://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            http://pilcrow.madison.wi.us/
master_sites        ${homepage}/python-cdb/
distname            python-cdb-${version}
checksums           md5 bda23cd135c9d71bede98929bc18b36f \
                    sha1 6c5ef1f27fe0e5c2e9a4a032435ebf58c82639f2 \
                    rmd160 02519e7c03aae5798823ab4cd0388b6afaf1908a

python.versions     26

if {$subport != $name} {
    post-destroot {
        xinstall -m 644 -W ${worksrcpath} COPYING ChangeLog README \
            ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 644 ${worksrcpath}/Example \
            ${destroot}${prefix}/share/doc/${subport}/examples/example.py
    }
}

# Local Variables:
# mode:tcl
# tab-width: 4
# indent-tabs-mode: nil
# c-basic-offset:4
# indent-tabs-mode:nil
# End:
