# -*- 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
PortGroup           github 1.0

github.setup        scott-griffiths bitstring 3.1.6 bitstring-
name                py-bitstring
revision            0

categories-append   devel
platforms           darwin
supported_archs     noarch
license             MIT
maintainers         nomaintainer

description         Module to simplify handling of binary data
long_description    bitstring is a pure Python module that makes the \
                    creation, manipulation and analysis of binary data \
                    as simple and natural as possible.

checksums           rmd160  d4a271b0c8ab3d2d7199c0ea5aa03f9e8aaa4b0b \
                    sha256  a7cebaf77d8186d8610e2cc96cdda3be6207ce9101606f67817a44bf9057126c \
                    size    751612

python.versions     27 35 36 37 38

if {${name} ne ${subport}} {
    post-destroot {
        xinstall -d ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 0644 -W ${worksrcpath} README.rst release_notes.txt \
            LICENSE ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 0644 ${worksrcpath}/doc/bitstring_manual.pdf \
            ${destroot}${prefix}/share/doc/${subport}
   }

   test.run         yes
   test.env         PYTHONPATH=${worksrcpath}/build/lib
   test.cmd         cd test && ${python.bin} -m unittest discover
   test.target

   livecheck.type   none
}