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

github.setup        ICRAR crc32c 2.3 v
revision            0
name                py-${github.project}
categories-append   devel

license             GPL-2.1
maintainers         nomaintainer
platforms           darwin

description         A python package implementing the crc32c algorithm \
                    in hardware and software.

long_description    This package implements the crc32c checksum \
                    algorithm. It automatically chooses between a \
                    hardware-based implementation (using the CRC32C \
                    SSE 4.2 instruction of Intel CPUs, and the crc32* \
                    instructions on ARMv8 CPUs), or a software-based \
                    one when no hardware support can be found.

checksums           rmd160  e49ca9c1235c3705cac886320ce269fb1ce5eddc \
                    sha256  b7bddb4f33ca00a463f51d1da7cdb34b2720d481b523d33e8b816c178d5f66d9 \
                    size    40752

python.versions     37 38 39 310

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

    depends_test-append \
                    port:py${python.version}-mkl \
                    port:py${python.version}-numpy

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

    test.run        yes

    livecheck.type  none
}
