# -*- 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            lebigot uncertainties 3.1.5
revision                0

name                    py-uncertainties
categories-append       math
license                 BSD
maintainers             {gmail.com:jjstickel @jjstickel} openmaintainer
description             The python uncertainties package.
long_description        The uncertainties package transparently handles\
                        calculations for numbers with uncertainties.
platforms               darwin
supported_archs         noarch

checksums               rmd160  f0ed42646b54bca698419cc94f539cedab6d40ad \
                        sha256  ca47739f37788f0a6aebab70411c6f55b4b4730f283b0a7314a6acdb997f9b57 \
                        size    149780

python.versions         27 35 36 37 38 39

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

    depends_lib-append  port:py${python.version}-future

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

    test.run            yes
    test.target         nosetests
    test.env            PYTHONPATH=${worksrcpath}/build/lib

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

    livecheck.type      none
}
