# -*- 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

name                py-unum
version             4.1.4
revision            0
platforms           darwin
supported_archs     noarch
license             LGPL-2+
maintainers         nomaintainer
description         Units in Python
long_description    Unum stands for unit-numbers. It is a Python module \
                    that allows defining and manipulating true quantities, \
                    i.e. numbers with units like volts, hours, \
                    meter-per-second. Consistency between units is checked \
                    at each expression evaluation\; unit conversion and \
                    unit output formatting are performed automatically \
                    when needed.

homepage            https://bitbucket.org/kiv/unum/
master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}
distname            Unum-${version}
checksums           rmd160  62143b8d1c57011adc03b8724a6c7d0d56bae535 \
                    sha256  91e66cd971e5203a06b5145d561585f5e46b3bdf3c080041f32244c8bf916f49 \
                    size    11637

python.versions     27 37

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

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

    livecheck.type  none
}
