# $Id: Portfile 68243 2010-05-29 20:35:26Z phw@macports.org $

PortSystem          1.0
PortGroup           python31 1.0

name                py31-crcmod
version             1.5
categories          python 
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     e756b35dd475164099f856ed45f63f1b \
                    sha1    9605f1ba1f3ed20c7d541bf08d2f755271cf7630 \
                    rmd160  cefd4443f2058505249e853cb0698513c1c1db85


build.args-append -f

post-destroot {
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 -W ${worksrcpath} README changelog ${destroot}${prefix}/share/doc/${name}
}

livecheck.regex	"crcmod-(\\d+(?:\\.\\d+)*)"
