# $Id: Portfile 102221 2013-01-29 15:16:49Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-tc
version             0.7.2
categories          python databases
license             BSD
platforms           darwin

maintainers         rasmus
description         Python bindings to the tokyocabinet library
long_description    ${description}
homepage            http://github.com/rsms/tc

master_sites        http://pypi.python.org/packages/source/t/tc/
distname            tc-${version}
checksums           md5  4405e1464caf0a0b1e1bc30f0874cd9f \
                    sha1 cf95b3c67ab632b551042b9b75d29036cdece0d8

python.versions     25 26 31

if {$subport != $name} {
    depends_lib-append  port:tokyocabinet

    build.args-append -f

    post-destroot {
        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 644 -W ${worksrcpath} LICENSE README.rst CHANGELOG.rst ${destroot}${prefix}/share/doc/${subport}
    }
}
