# -*- 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        gtaylor python-colormath 3.0.0
name                py-colormath
revision            1

categories-append   math
license             BSD
maintainers         {aronnax @lpsinger} openmaintainer
description         Simplify color math operations in python
long_description \
   The python-colormath is a python module that abstracts common color math \
   operations

platforms           darwin
supported_archs     noarch

homepage            https://python-colormath.readthedocs.org/

checksums           rmd160  9967dd7e3011c93d5b73565f905f740e6d6e285f \
                    sha256  e497f89469e9b532d84c0355c9dd8098b2c0f999712e5b7a8a5e9c53ef2cf9e7 \
                    size    74973

python.versions     27 35 36 37 38

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

    depends_lib-append \
                    port:py${python.version}-networkx \
                    port:py${python.version}-numpy

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

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

    post-destroot {
       xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
       xinstall -m 644 -W ${worksrcpath} README.rst LICENSE.txt \
          ${destroot}${prefix}/share/doc/${subport}
    }
    livecheck.type      none
}
