# $Id: Portfile 102216 2013-01-29 15:07:23Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-crcmod
version             1.7
license             MIT
platforms           darwin

maintainers         phw openmaintainer
description         Python module for creating functions computing the Cyclic Redundancy Check (CRC).
long_description    ${description}
homepage            http://crcmod.sourceforge.net/
master_sites        sourceforge:crcmod
distname            crcmod-${version}
checksums           md5     2d5b92117d958dcead94f9e17f54cd32 \
                    sha1    61d9fea169099b87c2e36ce572d2d25e0fd2de59 \
                    rmd160  503b415394d7c833b22e5a999454c0d67598cd54

python.versions     31

if {$subport != $name} {
    build.args-append -f

    post-destroot {
        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 644 -W ${worksrcpath} README changelog ${destroot}${prefix}/share/doc/${subport}
    }
    livecheck.type  none
} else {
    livecheck.regex	"crcmod-(\\d+(?:\\.\\d+)*)"
}
