# -*- 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 4.3.1 bitstring-
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from archive
name                py-bitstring
revision            0

categories-append   devel
supported_archs     noarch
platforms           {darwin any}
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  3c0fbeb75ca599004a576be900039fccc17f3af7 \
                    sha256  49e0fa2d0f174ca1e40711f8b443e6ba2a2e939f13cfefab508bb4ef4257aff3 \
                    size    443834

python.versions     310 311 312 313 314

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

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

   test.run         yes
}
