# -*- 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-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            https://github.com/rsms/tc

master_sites        pypi:t/tc/
distname            tc-${version}
checksums           rmd160  a8446672796fd882d44c7bb670f0a35e08a974b9 \
                    sha256  aed8ae2b1b20e41b6027c224b4f1150ef48d29b4e749c549b2cb80577e113548 \
                    size    46042

python.versions     27 35 36

if {${name} ne ${subport}} {
    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}
    }

    livecheck.type  none
}
