PortSystem 1.0
PortGroup       python 1.0

name            py-fpconst
version         0.7.2
revision        2
license         Apache-2
platforms       darwin freebsd
supported_archs noarch
maintainers     nomaintainer
description     IEEE 754 floating point special handling for Python
long_description \
    This python module implements constants and functions for working \
    with IEEE754 double-precision special values. It provides \
    constants for Not-a-Number (NaN), Positive Infinity (Inf), and \
    Negative Infinity (-Inf), as well as functions to test for these \
    values.

homepage        http://research.warnes.net/projects/rzope/fpconst/
master_sites    https://cheeseshop.python.org/packages/source/f/fpconst/

distname        fpconst-${version}
checksums       md5 10ba9e04129af23108d24c22c3a698b1

python.versions 27

if {${name} ne ${subport}} {
    post-destroot {
        xinstall -m 644 -W ${worksrcpath} README \
            ${destroot}${prefix}/share/doc/${subport}
    }
    livecheck.type  none
} else {
    livecheck.type  regex
    livecheck.url   https://cheeseshop.python.org/pypi/fpconst/
    livecheck.regex fpconst-(\[0-9\.\]+).tar.gz
}