# $Id: Portfile 62118 2009-12-29 05:10:55Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           python24 1.0

name                py-cdb
version             0.32
revision            1
categories          python
platforms           darwin freebsd
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 0e303095f8c0ea9f09d7f11faf89805f

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