# -*- 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-biplist
version             1.0.3
revision            1

platforms           darwin
supported_archs     noarch
license             BSD
maintainers         nomaintainer

homepage            https://bitbucket.org/wooster/biplist
master_sites        pypi:b/${python.rootname}
distname            ${python.rootname}-${version}

description         biplist is a binary plist parser/generator for Python.
long_description \
    Binary Property List (plist) files provide a faster and smaller \
    serialization format for property lists on OS X. This is a library \
    for generating binary plists which can be read by OS X, iOS, or other clients.

checksums           rmd160  c828c249199de7f894bf56d3f4377a76a7e01b76 \
                    sha256  4c0549764c5fe50b28042ec21aa2e14fe1a2224e239a1dae77d9e7f3932aa4c6 \
                    size    21258

python.versions     27 35 36 37 38

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-setuptools

 depends_test-append \
                    port:py${python.version}-coverage \
                    port:py${python.version}-nose

    test.run        yes
    test.env        PYTHONPATH=${worksrcpath}/build/lib

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} AUTHORS LICENSE \
            README.md ${destroot}${docdir}
    }

    livecheck.type  none
}

